/* ================================================================
   SPDIGEST — AIR Prompter Mode Styles
   Ultra-minimalist, high-contrast, dark — built for broadcast
   ================================================================ */

body.air-mode {
  background: #000;
  overflow: hidden;
  cursor: none;
}

body.air-mode.interactive { cursor: default; }

/* ── Landing Screen ─────────────────────────────────────────── */
.air-landing {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  gap: 48px;
  z-index: 10;
}

.air-date {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.air-play-btn {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: air-idle 3s ease-in-out infinite;
}

.air-play-btn::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.1);
  animation: air-ring 3s ease-in-out infinite;
}

.air-play-btn::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.05);
  animation: air-ring 3s ease-in-out infinite 0.5s;
}

.air-play-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.3), 0 0 120px rgba(245, 158, 11, 0.1);
  transform: scale(1.05);
  animation: none;
}

.air-play-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-left: 8px; /* optical center for triangle */
  user-select: none;
}

@keyframes air-idle {
  0%, 100% { box-shadow: 0 0 30px rgba(245,158,11,0.1); }
  50%       { box-shadow: 0 0 60px rgba(245,158,11,0.2); }
}

@keyframes air-ring {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.2; transform: scale(1.02); }
}

.air-subtitle {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Broadcast Screen ───────────────────────────────────────── */
.air-broadcast {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}

/* Progress bar at top */
.air-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 100;
  transform-origin: left;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  transition: width 1s linear;
}

/* Slide counter */
.air-counter {
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 100;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

/* Full-screen image area */
.air-media {
  position: relative;
  flex: 0 0 30vh;
  overflow: hidden;
}

.air-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.air-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image gallery dots */
.air-media-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.media-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: var(--transition);
}
.media-dot.active { background: #fff; transform: scale(1.3); }

/* Gradient overlay on image */
.air-media::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, #000, transparent);
  pointer-events: none;
}

.air-no-media {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.05);
}

/* Content area */
.air-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 2vh, 24px) clamp(24px, 6vw, 120px);
  padding-bottom: 60px; /* space for controls overlay */
  gap: 8px;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

.air-source {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  opacity: 0.8;
}

.air-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vh, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.air-body {
  font-size: clamp(1rem, 2.5vh, 1.25rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* Timer ring */
.air-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.air-timer-ring {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.air-timer-svg {
  width: 36px; height: 36px;
  transform: rotate(-90deg);
}

.air-timer-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 2; }
.air-timer-fill  {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.air-timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}

.air-nav-hint {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.05em;
}

/* ── Navigation Controls ────────────────────────────────────── */
.air-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
}

.air-broadcast:hover .air-controls { opacity: 1; }

.air-ctrl-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.air-ctrl-btn:hover {
  background: rgba(245,158,11,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.air-ctrl-exit {
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.air-ctrl-exit:hover { color: var(--red); border-color: rgba(239,68,68,0.3); }

/* ── Slide Transitions ──────────────────────────────────────── */
.air-slide-enter { animation: slideFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.air-slide-exit  { animation: slideToLeft   0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.air-slide-back  { animation: slideFromLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideToLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── WS Connection Indicator ────────────────────────────────── */
.air-ws-indicator {
  position: absolute;
  bottom: 16px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.15);
  z-index: 100;
}

.ws-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.ws-dot.disconnected { background: var(--red); box-shadow: 0 0 6px var(--red); }
