/* ==========================================================================
   PARTIAL: HEADER & LETREIRO DIGITAL ROTATIVO (TICKER BAR)
   Arquivo: static/css/partials/header.css
   ========================================================================== */

/* Letreiro Digital Rotativo (Ticker) */
.news-ticker-bar {
  background: #04070E;
  border-bottom: 1px solid rgba(223, 171, 54, 0.2);
  height: 38px;
  overflow: hidden;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.ticker-container {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.ticker-wrapper {
  flex: 1;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-slide 35s linear infinite;
  will-change: transform;
}

.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 0.8rem;
  color: var(--silver-accent);
}

.ticker-item i {
  color: var(--gold-primary);
  font-size: 0.72rem;
}

.ticker-item a {
  color: var(--silver-accent);
  transition: color 0.2s ease;
}

.ticker-item a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.ticker-highlight strong {
  color: var(--gold-light);
  font-weight: 700;
}

/* Header Principal / Navegação */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7, 11, 22, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: none;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
  background: rgba(6, 10, 20, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
}

header.scrolled .header-content {
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img,
.brand-img {
  height: 58px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
}

header.scrolled .brand-img {
  height: 46px;
}

.brand-logo:hover img {
  transform: scale(1.03);
}

.brand-logo svg {
  height: 48px;
  width: auto;
  filter: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text .title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-text .subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-top: 3px;
}

nav {
  height: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 2px solid var(--border-subtle);
  padding: 0 16px;
}



nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

nav a {
  color: var(--silver-accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

nav a:hover,
nav a.active {
  color: var(--gold-light);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)), opacity 0.3s ease;
  opacity: 0;
}

nav a:hover::after {
  transform: scaleX(0.5);
  opacity: 0.65;
}

nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Barra de Progresso de Rolagem no Topo (Scroll Progress Indicator) */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-gradient);
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  transition: transform 0.08s linear;
  pointer-events: none;
  z-index: 1001;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radio-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 22, 43, 0.9);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
}

.radio-status-pill .live-indicator {
  width: 8px;
  height: 8px;
  background: var(--live-red);
  border-radius: 50%;
  box-shadow: none;
  animation: pulse-red 1.4s infinite;
}

@keyframes pulse-red {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

/* Responsividade do Header */
@media (max-width: 992px) {
  .btn-advertise {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 768px) {
  .ticker-item {
    font-size: 0.74rem;
    padding: 0 16px;
  }
  nav {
    display: none;
  }
  .btn-advertise {
    display: none;
  }
  .radio-status-pill {
    display: none;
  }
}

/* ==========================================================================
   LOGO OFICIAL DA MARCA NO HEADER (SVG)
   ========================================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo svg,
.brand-svg {
  height: 52px;
  width: auto;
  display: block;
  filter: none;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
}

header.scrolled .brand-logo svg,
header.scrolled .brand-svg {
  height: 42px;
}

.brand-logo:hover .brand-svg {
  transform: scale(1.02);
}

@media (max-width: 480px) {
  .brand-logo svg,
  .brand-svg {
    height: 42px;
    max-width: 215px;
  }
}
