/* =============================================
   MY SCREEN SIZE — components.css
   ============================================= */

/* ---- Toast notification ---- */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon { color: var(--accent-3); font-size: 1rem; }

/* ---- Live indicator ---- */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent-3);
}
.live-dot {
  width: 6px; height: 6px;
  background: var(--accent-3);
  border-radius: 50%;
  animation: live-pulse 1.5s ease infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,229,195,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 4px rgba(0,229,195,0); }
}

/* ---- Section divider ---- */
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ---- Badge variants ---- */
.badge-yes {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-3);
  background: rgba(0,229,195,0.1);
  border: 1px solid rgba(0,229,195,0.25);
  padding: 2px 9px;
  border-radius: 100px;
}
.badge-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ff6b6b;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.25);
  padding: 2px 9px;
  border-radius: 100px;
}
.badge-info {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(61,108,255,0.1);
  border: 1px solid rgba(61,108,255,0.25);
  padding: 2px 9px;
  border-radius: 100px;
}

/* ---- Orientation icon ---- */
.orient-portrait  { display: inline-block; width: 14px; height: 20px; border: 1.5px solid currentColor; border-radius: 3px; vertical-align: middle; margin-right: 5px; }
.orient-landscape { display: inline-block; width: 20px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; vertical-align: middle; margin-right: 5px; }

/* ---- Progress bar ---- */
.prog-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 8px;
}
.prog-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* ---- Number flip animation ---- */
.num-flip {
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.num-flip.changing {
  transform: translateY(-6px);
  opacity: 0;
}

/* ---- Fullscreen readout overlay ---- */
.readout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,8,16,0.92);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.readout-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.readout-box {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 600px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.readout-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}
.readout-close:hover { background: var(--bg-3); color: var(--accent); }

/* ---- Mobile compact cards ---- */
@media (max-width: 540px) {
  .detector-card { padding: 18px 16px; }
  .card-value { font-size: 1.1rem; }
  .primary-card .card-value { font-size: 1.4rem; }
  .device-info-panel { padding: 20px 16px; }
  .feature-card { padding: 24px 20px; }
  .faq-question { padding: 16px 18px; }
  .faq-answer-inner { padding: 0 18px 16px; }
}
