/* ════════════════════════════════════════════════════════════════════
   12-radio.css — Standalone CSS para radio.html
   NÃO incluído no build-css.sh (standalone — carregado apenas pela rádio)
   Usa tokens do 00-tokens.css via var(--w-*)
   SPEC-038 Sprint 001
   ════════════════════════════════════════════════════════════════════ */

/* ── Base Reset (mirrors 01-reset.css) ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--w-black);
  color: var(--w-white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(rgba(8,8,8,0.9), rgba(8,8,8,0.9)),
    url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="0.5"/></svg>');
  background-size: 200px 200px;
}

a { color: inherit; text-decoration: none; }

/* text-transform uppercase on nav (mirrors 01-reset.css line 14) */
.architectural-nav, .nav-links { text-transform: uppercase; }

/* ══════════════════════════════════════════════════════════════════
   NAVIGATION — Exact copy from 01-reset.css + 02-layout.css + 11-responsive.css
   Ensures pixel-identical nav between TV and Radio
   ══════════════════════════════════════════════════════════════════ */

.architectural-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--w-red-blood);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-logotype {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 38px;
  width: auto;
  filter: brightness(1);
  transition: filter 0.3s;
}

.nav-logo:hover {
  filter: brightness(1.2);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--w-ash);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  transition: all 0.3s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--w-white);
  border-bottom: 2px solid var(--w-red-neon);
  text-shadow: 0 0 10px var(--w-red-neon);
}

/* Smooth nav link underline (from 02-layout.css) */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--w-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Hamburger Menu (from 11-responsive.css) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 10000;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Responsive Nav (from 11-responsive.css) ── */
@media (max-width: 1024px) {
  .architectural-nav { padding: 0 2rem; }
  .nav-links { gap: 1.5rem; }
}

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 80px 2rem 2rem;
    gap: 0;
    transition: right 0.35s ease;
    z-index: 9998;
    box-shadow: -8px 0 30px rgba(0,0,0,0.5);
  }
  .nav-links.open { right: 0; }
  .nav-links li { display: block !important; }
  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .architectural-nav { padding: 0 1rem; }
}

@media (min-width: 901px) {
  .nav-hamburger { display: none !important; }
}

/* Touch optimization */
button, [role="button"], a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Main Content ── */
.radio-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height, 60px) + 40px) 5% 40px;
  min-height: 100vh;
}

/* ── Radio Card ── */
.radio-card {
  width: 100%;
  max-width: 560px;
  background: var(--w-dark-gray);
  border: 1px solid var(--w-border);
  border-radius: 20px;
  padding: 48px 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.radio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--w-red), transparent);
}

/* ── Live Badge ── */
.radio-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--w-red-10);
  border: 1px solid var(--w-red-30);
  border-radius: 24px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--w-red);
  margin-bottom: 32px;
}

.radio-live-dot {
  width: 8px;
  height: 8px;
  background: var(--w-red);
  border-radius: 50%;
  animation: radio-pulse 1.5s ease-in-out infinite;
}

@keyframes radio-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── Now Playing Info ── */
.radio-artwork {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  background: var(--w-hud-bg);
  border: 1px solid var(--w-border);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.radio-artwork svg {
  color: var(--w-red-30);
}

.radio-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radio-track-title {
  font-size: 1.4rem;
  font-weight: var(--font-weight-black);
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--w-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-track-artist {
  font-size: 1rem;
  color: var(--w-ash);
  font-weight: var(--font-weight-normal);
  margin-bottom: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Player Controls ── */
.radio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.radio-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--w-red);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--motion-fast);
  color: var(--w-white);
  box-shadow: 0 4px 24px rgba(230, 0, 0, 0.3);
}

.radio-play-btn:hover {
  background: var(--w-red-neon);
  transform: scale(1.06);
  box-shadow: 0 6px 32px rgba(230, 0, 0, 0.45);
}

.radio-play-btn:active {
  transform: scale(0.95);
}

.radio-play-btn svg {
  width: 28px;
  height: 28px;
}

/* ── Volume ── */
.radio-volume {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.radio-volume-btn {
  background: none;
  border: none;
  color: var(--w-ash);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.radio-volume-btn:hover {
  color: var(--w-white);
}

.radio-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  background: var(--w-slate);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.radio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--w-red);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.radio-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.radio-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--w-red);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* ── Visualizer Bars ── */
.radio-visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 32px;
  margin-bottom: 28px;
}

.radio-visualizer .bar {
  width: 4px;
  background: var(--w-red);
  border-radius: 2px;
  animation: radio-bar 1.2s ease-in-out infinite;
  opacity: 0.3;
}

.radio-visualizer.active .bar {
  opacity: 1;
}

.radio-visualizer .bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.radio-visualizer .bar:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.radio-visualizer .bar:nth-child(3) { height: 24px; animation-delay: 0.3s; }
.radio-visualizer .bar:nth-child(4) { height: 12px; animation-delay: 0.45s; }
.radio-visualizer .bar:nth-child(5) { height: 20px; animation-delay: 0.6s; }
.radio-visualizer .bar:nth-child(6) { height: 8px; animation-delay: 0.75s; }
.radio-visualizer .bar:nth-child(7) { height: 28px; animation-delay: 0.9s; }
.radio-visualizer .bar:nth-child(8) { height: 14px; animation-delay: 1.05s; }

@keyframes radio-bar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ── Status Text ── */
.radio-status {
  font-size: 0.75rem;
  color: var(--w-ash);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.radio-status.connected {
  color: var(--w-success);
}

.radio-status.error {
  color: var(--w-red);
}

/* ── Back to TV ── */
.radio-back-tv {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--w-ash);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  padding: 10px 24px;
  border: 1px solid var(--w-border);
  border-radius: 8px;
  background: transparent;
}

.radio-back-tv:hover {
  color: var(--w-white);
  border-color: var(--w-red-30);
  background: var(--w-red-5);
}

.radio-back-tv svg {
  width: 16px;
  height: 16px;
}

/* ── Footer ── */
.radio-footer {
  padding: 20px var(--w-page-padding);
  text-align: center;
  font-size: 0.72rem;
  color: var(--w-ash);
  border-top: 1px solid var(--w-border);
  letter-spacing: 0.03em;
}

.radio-footer a {
  color: var(--w-red);
  transition: color var(--transition-fast);
}

.radio-footer a:hover {
  color: var(--w-red-neon);
}

/* ═══ Responsive (player components only — nav handled above) ═══ */

@media (max-width: 768px) {
  .radio-card {
    padding: 36px 24px 32px;
    border-radius: 16px;
  }

  .radio-artwork {
    width: 120px;
    height: 120px;
    border-radius: 12px;
  }

  .radio-track-title {
    font-size: 1.15rem;
  }

  .radio-track-artist {
    font-size: 0.9rem;
  }

  .radio-play-btn {
    width: 56px;
    height: 56px;
  }

  .radio-volume-slider {
    width: 100px;
  }
}

@media (max-width: 360px) {
  .radio-card {
    padding: 28px 16px 24px;
    margin: 0 8px;
  }

  .radio-artwork {
    width: 100px;
    height: 100px;
  }
}
