/* =====================================================================
   style.css - Portal Web Rádio Premium
   Design: Dark mode premium, glassmorphism sutil, gradientes suaves
   ===================================================================== */

:root {
  --color-primary: #6c63ff;
  --color-primary-light: #8b83ff;
  --color-secondary: #0f0f1a;
  --color-bg: #0a0a12;
  --color-surface: #14141f;
  --color-surface-2: #1c1c2b;
  --color-border: #2a2a3d;
  --color-text: #f2f2f7;
  --color-text-muted: #9a9ab0;
  --color-accent: #ff6b6b;
  --color-success: #4ecdc4;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 8px 32px rgba(108, 99, 255, 0.25);
  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(circle at top, #171727 0%, var(--color-bg) 60%);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a { color: var(--color-primary-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-primary); }

::selection { background: var(--color-primary); color: #fff; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s ease;
}

.site-header .navbar-brand { display: flex; align-items: center; gap: .75rem; }
.site-header .navbar-brand img { height: 42px; width: 42px; object-fit: contain; border-radius: 10px; }
.site-header .brand-text .name { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.site-header .brand-text .slogan { font-size: .72rem; color: var(--color-text-muted); }

.site-header .nav-link {
  color: var(--color-text) !important;
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem 1rem !important;
  position: relative;
}
.site-header .nav-link::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem; bottom: .1rem;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.site-header .nav-link:hover::after { transform: scaleX(1); }

/* ---------- Player ---------- */
.player-bar {
  background: linear-gradient(90deg, rgba(28,28,43,.95), rgba(20,20,31,.95));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-glow);
}
.player-bar.player-fixed-bottom {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  border-radius: 0;
  border-left: none; border-right: none; border-bottom: none;
}
.player-cover {
  width: 56px; height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--color-surface-2);
  flex-shrink: 0;
}
.player-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
  flex-shrink: 0;
}
.player-btn:hover { background: var(--color-primary-light); transform: scale(1.06); }
.player-meta { min-width: 0; flex: 1 1 auto; }
.player-meta .track-title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta .track-artist { font-size: .8rem; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-listeners {
  font-size: .78rem;
  color: var(--color-success);
  display: flex; align-items: center; gap: .35rem;
  white-space: nowrap;
}
.player-listeners .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.player-actions { display: flex; align-items: center; gap: .5rem; }
.player-actions button {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}
.player-actions button:hover, .player-actions button.active { color: #fff; border-color: var(--color-primary); background: var(--color-primary); }

.player-volume { width: 90px; accent-color: var(--color-primary); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; position: relative; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.section-subtitle { color: var(--color-text-muted); margin-bottom: 2.5rem; }
.section-badge {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-primary-light);
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.35);
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(108,99,255,0.25), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1rem; }
.hero p.lead { color: var(--color-text-muted); font-size: 1.15rem; max-width: 560px; }

/* ---------- Cards ---------- */
.card-glass {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card-glass:hover { transform: translateY(-6px); border-color: var(--color-primary); box-shadow: var(--shadow-glow); }

/* Programação */
.program-card { overflow: hidden; }
.program-card img { height: 200px; width: 100%; object-fit: cover; }
.program-card .badge-time { font-size: .75rem; }
.program-card.is-live { border-color: var(--color-success); box-shadow: 0 0 0 1px var(--color-success); }
.program-card .live-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--color-success); color: #06231f;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  padding: .25rem .6rem; border-radius: 999px;
}

/* Notícias */
.news-card img { height: 190px; object-fit: cover; width: 100%; }
.news-card .category-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }

/* Publicidade */
.ad-banner { border-radius: var(--radius-md); overflow: hidden; display: block; }
.ad-banner img { width: 100%; display: block; }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 90px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 998;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* Footer */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 3.5rem 0 1.5rem; }
.social-icons a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text);
  margin-right: .5rem;
  transition: all .2s ease;
}
.social-icons a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Responsivo */
@media (max-width: 767px) {
  .player-meta .track-artist { display: none; }
  .player-bar { flex-wrap: wrap; }
  .section { padding: 3.5rem 0; }
}

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
