/*
 * Radio FM - Estilos de Navegacao e Header
 * Copyright (c) 2024 Radio FM - Todos os direitos reservados
 */

/* ============================================================
   PLAYER BAR (fixo no rodape)
   ============================================================ */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: var(--bg-player);
  border-top: 2px solid var(--accent);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.player-album {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-strong);
  background: var(--bg-secondary);
  position: relative;
}

.player-album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-album-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--accent);
  font-size: 1.3rem;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-song {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-btn:hover { color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }

.player-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.4);
}

.player-play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.player-play-btn.loading {
  animation: spin 0.8s linear infinite;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.player-volume-icon {
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
}

.volume-slider {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.player-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.live { background: #4CAF50; animation: pulse-live 2s infinite; }

.player-frequency {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  z-index: 800;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s, background 0.3s;
  backdrop-filter: blur(12px);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.logo-slogan {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 3px;
}

/* Nav Menu */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 28px); }

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-social a {
  color: var(--text-muted);
  font-size: 0.95rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.navbar-social a:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar-toggle.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
.navbar-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.navbar-mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 790;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}

.navbar-mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  display: block;
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.mobile-social {
  display: flex;
  gap: 12px;
  padding: 12px 16px 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.mobile-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.mobile-social a:hover { color: var(--accent); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(var(--accent-rgb), 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Sound bars animation */
.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.sound-bar {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: soundBar 1.2s ease-in-out infinite;
}

.sound-bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.sound-bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.sound-bar:nth-child(3) { height: 60%; animation-delay: 0.4s; }
.sound-bar:nth-child(4) { height: 100%; animation-delay: 0.1s; }
.sound-bar:nth-child(5) { height: 50%; animation-delay: 0.3s; }

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

.sound-bars.paused .sound-bar { animation-play-state: paused; transform: scaleY(0.4); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding-bottom: var(--player-height);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 48px;
}

.footer-brand .logo-name {
  font-size: 1.5rem;
}

.footer-brand .logo-slogan {
  font-size: 0.7rem;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-contact-item i {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--accent); }

/* ============================================================
   PAGE HEADER (interno de paginas)
   ============================================================ */
.page-header {
  padding-top: var(--nav-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 48px;
}

.page-header-inner {
  padding-top: 48px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* Conteudo principal */
.main-content {
  padding-top: var(--nav-height);
  min-height: calc(100vh - var(--player-height));
}

/* ============================================================
   RESPONSIVO NAVBAR/FOOTER
   ============================================================ */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .navbar-social { display: none; }
  .navbar-toggle { display: flex; }

  .footer-main { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 40px); padding-bottom: 80px; }
  .hero-stats { gap: 24px; }

  .player-bar { gap: 12px; padding: 0 12px; }
  .player-volume { display: none; }
  .player-frequency { display: none; }
  .player-status { display: none; }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat-number { font-size: 1.6rem; }
}
