/* ============================================================
   Rádio Maquiné da Web — custom.css
   Apenas o que o Tailwind NÃO cobre:
   - Glassmorphism (backdrop-filter)
   - Keyframes dos orbes animados
   - Equalizer do player
   - Pulse do logo e do badge "Ao Vivo"
   - Ajustes específicos do range de volume
   ============================================================ */

/* ---------- Base de tipografia ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background-color: #050a08;
  color: #f5f7f6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.glass-strong {
  background: rgba(12, 22, 18, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.glass-hover:hover {
  border-color: rgba(0, 217, 126, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

/* ---------- Orbes animados de fundo ---------- */
.orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}
.orb--verde   { width: 520px; height: 520px; background: #00d97e; top: -120px;  left: -120px;  animation: float-a 22s ease-in-out infinite; }
.orb--dourado { width: 460px; height: 460px; background: #ffb800; bottom: -140px; right: -120px; animation: float-b 26s ease-in-out infinite; }
.orb--rosa    { width: 420px; height: 420px; background: #ff3b8b; top: 40%;     left: 55%;    animation: float-c 28s ease-in-out infinite; }

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-100px, -60px) scale(1.15); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-60px, 80px) scale(0.9); }
}

/* ---------- Pulse do logo ---------- */
.logo-pulse {
  animation: logo-pulse 2.4s ease-in-out infinite;
  display: inline-flex;
}
@keyframes logo-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 217, 126, 0.6); }
  50%      { box-shadow: 0 0 0 14px rgba(0, 217, 126, 0); }
}

/* ---------- Badge AO VIVO ---------- */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00d97e;
  box-shadow: 0 0 0 0 rgba(0, 217, 126, 0.7);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(0, 217, 126, 0.7); transform: scale(1); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 217, 126, 0);   transform: scale(1.1); }
  100% { box-shadow: 0 0 0 0   rgba(0, 217, 126, 0);   transform: scale(1); }
}

/* ---------- Equalizer animado ---------- */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}
.equalizer span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #00d97e 0%, #ffb800 100%);
  animation: eq 1s ease-in-out infinite;
}
.equalizer span:nth-child(1) { animation-duration: 0.9s;  height: 60%; }
.equalizer span:nth-child(2) { animation-duration: 1.2s;  height: 90%; }
.equalizer span:nth-child(3) { animation-duration: 0.7s;  height: 50%; }
.equalizer span:nth-child(4) { animation-duration: 1.1s;  height: 80%; }
.equalizer span:nth-child(5) { animation-duration: 0.85s; height: 65%; }
.equalizer.is-paused span { animation-play-state: paused; height: 30%; opacity: 0.4; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}

/* ---------- Range de volume customizado ---------- */
.volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}
.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #00d97e;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 217, 126, 0.6);
  border: 2px solid #050a08;
}
.volume-range::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #00d97e;
  cursor: pointer;
  border: 2px solid #050a08;
}

/* ---------- Carrossel — transição de slides ---------- */
.slide {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* ---------- Marca d'água global (atrás dos painéis, na frente dos orbes) ---------- */
.watermark-logo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.watermark-logo img {
  width: min(520px, 80vw);
  opacity: 0.07;
  user-select: none;
  -webkit-user-drag: none;
  filter: saturate(0.6);
}

/* ---------- Card "Anuncie aqui" ---------- */
.dashed-card {
  border: 1.5px dashed rgba(255, 184, 0, 0.55);
  background: rgba(255, 184, 0, 0.04);
}
.dashed-card:hover {
  border-color: #ffb800;
  background: rgba(255, 184, 0, 0.08);
}

/* ---------- Banner de alerta retrátil ---------- */
.alert-banner {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease;
}
.alert-banner.is-open {
  max-height: 200px;
}

/* ---------- Menu mobile ---------- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease;
}
.mobile-menu.is-open {
  max-height: 480px;
}

/* ---------- Acessibilidade — reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb,
  .logo-pulse,
  .live-dot,
  .equalizer span {
    animation: none !important;
  }
  .slide { transition: opacity 200ms ease; }
}

/* ---------- Foco visível ---------- */
:focus-visible {
  outline: 2px solid #00d97e;
  outline-offset: 2px;
  border-radius: 4px;
}
