/* ==========================================================================
   AGI Iconic Glory Awards 2026 - Common Responsive Header Stylesheet
   ========================================================================== */

:root {
  --header-navy: #020d26;
  --header-navy-dark: #01081a;
  --header-gold-1: #f5cf78;
  --header-gold-2: #d9a441;
  --header-gold-3: #8b641f;
  --header-white: #ffffff;
  --header-border: rgba(217, 164, 65, 0.4);
  --header-border-light: rgba(255, 255, 255, 0.08);
  --header-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Default Desktop: Hide bottom strip */
.bottom-strip {
  display: none !important;
}

body {
  padding-bottom: 0;
}

/* --- STICKY TOP EVENT STRIP (DESKTOP VIEW) --- */
.top-strip {
  background: var(--header-navy-dark) !important;
  position: sticky !important;
  top: 0 !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(217, 164, 65, 0.18) !important;
  min-height: 40px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1002 !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Watermark background text "AWARDS 2026" - hidden on screens under 1250px to prevent text collision */
.top-strip-watermark {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-family: 'Cinzel', 'Times New Roman', serif !important;
  font-size: 1.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.38em !important;
  color: rgba(255, 255, 255, 0.035) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  text-transform: uppercase !important;
  user-select: none !important;
  z-index: 1 !important;
}

.top-strip-container {
  width: min(1200px, 92%) !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  z-index: 2 !important;
  padding: 6px 0 !important;
}

.top-strip .event-details {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  text-align: center !important;
}

.top-strip .event-title {
  color: var(--header-gold-1) !important;
  font-weight: 800 !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-right: 2px !important;
}

.top-strip .event-sep {
  color: rgba(255, 255, 255, 0.35) !important;
  font-weight: 300 !important;
  margin: 0 4px !important;
}

.top-strip .event-meta {
  color: var(--header-white) !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.01em !important;
}

/* --- MAIN SITE HEADER (STICKY BELOW TOP STRIP) --- */
header.site-header,
header {
  position: sticky !important;
  top: 40px !important; /* Dynamically adjusted via header.js */
  z-index: 1001 !important;
  background: rgba(2, 13, 38, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--header-border-light) !important;
  transition: box-shadow 0.3s ease !important;
  width: 100% !important;
}

header.site-header .container,
header .container {
  width: min(1200px, 92%) !important;
  margin: 0 auto !important;
}

.header-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 0 !important;
  min-height: 68px !important;
  gap: 20px !important;
}

/* --- BRAND LOGO CREST BADGE --- */
.brand {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

.brand-logo-badge {
  background: var(--header-navy-dark) !important;
  border: 1px solid var(--header-border) !important;
  border-radius: 10px !important;
  padding: 5px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(217, 164, 65, 0.08) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.brand:hover .brand-logo-badge {
  border-color: rgba(245, 207, 120, 0.85) !important;
  box-shadow: 0 6px 20px rgba(217, 164, 65, 0.35), inset 0 0 14px rgba(217, 164, 65, 0.15) !important;
  transform: translateY(-2px) !important;
}

.brand-logo-img {
  height: 48px !important;
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* --- NAVIGATION LINKS --- */
.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 32px !important;
  margin-left: auto !important;
}

.nav-link {
  color: var(--header-white) !important;
  font-size: 0.94rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  position: relative !important;
  padding: 8px 0 !important;
  transition: color 0.25s ease !important;
  white-space: nowrap !important;
  border: none !important;
}

.nav-link:hover {
  color: var(--header-gold-1) !important;
}

/* Active Link State with Solid Golden Bar Underline */
.nav-link.active {
  color: var(--header-white) !important;
  font-weight: 600 !important;
}

.nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0px !important;
  left: 0 !important;
  width: 100% !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--header-gold-2), var(--header-gold-1)) !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 8px rgba(217, 164, 65, 0.6) !important;
  display: block !important;
}

/* Hover line animation for inactive links */
.nav-link:not(.active)::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--header-gold-2), var(--header-gold-1)) !important;
  border-radius: 2px !important;
  transition: width 0.25s ease !important;
  display: block !important;
}

.nav-link:not(.active):hover::after {
  width: 100% !important;
}

/* --- ACTION BUTTON --- */
.nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.btn-nominate {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #f7d27e 0%, #d9a441 100%) !important;
  color: #031337 !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 10px 22px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 16px rgba(217, 164, 65, 0.35) !important;
  transition: all 0.25s ease !important;
  border: none !important;
  cursor: pointer !important;
}

.btn-nominate svg,
.btn-nominate i {
  width: 16px !important;
  height: 16px !important;
  stroke-width: 2.5 !important;
  transition: transform 0.25s ease !important;
}

.btn-nominate:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(245, 207, 120, 0.55) !important;
  background: linear-gradient(135deg, #ffe29a 0%, #e5b04c 100%) !important;
  color: #02091d !important;
}

.btn-nominate:hover svg,
.btn-nominate:hover i {
  transform: translate(2px, -2px) !important;
}

/* --- MOBILE TOGGLE BUTTON --- */
.mobile-toggle {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--header-border) !important;
  border-radius: 10px !important;
  color: var(--header-gold-1) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

.mobile-toggle:hover {
  background: rgba(217, 164, 65, 0.15) !important;
  border-color: var(--header-gold-1) !important;
}

.mobile-toggle svg {
  width: 22px !important;
  height: 22px !important;
}

/* --- MOBILE MENU DRAWER --- */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(2, 12, 35, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  padding: 20px 24px 24px;
  gap: 14px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.mobile-menu.open {
  display: flex !important;
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-menu .nav-link {
  font-size: 1.05rem !important;
  padding: 12px 14px !important;
  border-radius: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.mobile-menu .nav-link.active {
  background: rgba(217, 164, 65, 0.12) !important;
  color: var(--header-gold-1) !important;
  border-left: 3px solid var(--header-gold-2) !important;
}

.mobile-menu .nav-link.active::after {
  display: none !important;
}

.mobile-menu .btn-nominate {
  width: 100% !important;
  margin-top: 10px !important;
  padding: 12px 20px !important;
  font-size: 1rem !important;
}

/* --- FIXED BOTTOM STRIP (MOBILE / TABLET VIEW) --- */
.bottom-strip {
  display: none !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: linear-gradient(90deg, rgba(2, 11, 32, 0.98), rgba(1, 8, 24, 0.98)) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(245, 207, 120, 0.4) !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7) !important;
  padding: 8px 16px !important;
}

.bottom-strip-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  gap: 12px !important;
}

.bottom-strip .event-details {
  display: flex !important;
  gap: 6px 10px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.bottom-strip .event-title {
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  color: var(--header-gold-1) !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  background: rgba(217, 164, 65, 0.16) !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  border: 1px solid rgba(245, 207, 120, 0.3) !important;
  white-space: nowrap !important;
}

.bottom-strip .event-meta {
  color: var(--header-white) !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
}

.btn-bottom-strip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #f7d27e 0%, #d9a441 100%) !important;
  color: #031337 !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  padding: 7px 16px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 12px rgba(217, 164, 65, 0.35) !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.btn-bottom-strip svg {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 2.5 !important;
}

.btn-bottom-strip:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(245, 207, 120, 0.6) !important;
  color: #01081a !important;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1250px) {
  .top-strip-watermark {
    display: none !important;
  }
}

/* MOBILE & TABLET VIEW (< 992px): HIDE TOP STRIP, SHOW STICKY HEADER AT TOP: 0, SHOW FIXED BOTTOM STRIP */
@media (max-width: 991px) {
  .top-strip {
    display: none !important;
  }

  header.site-header,
  header {
    top: 0 !important;
  }

  .bottom-strip {
    display: flex !important;
  }

  body {
    padding-bottom: 64px !important;
  }

  .nav-links {
    display: none !important;
  }

  .nav-actions .btn-nominate {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .brand-logo-img {
    height: 40px !important;
  }

  .brand-logo-badge {
    padding: 4px 10px !important;
  }
}

@media (max-width: 640px) {
  .header-nav {
    min-height: 60px !important;
    padding: 6px 0 !important;
  }

  .brand-logo-img {
    height: 36px !important;
  }

  .bottom-strip {
    padding: 6px 12px !important;
  }

  .bottom-strip .event-meta {
    font-size: 0.74rem !important;
  }

  .btn-bottom-strip {
    padding: 6px 12px !important;
    font-size: 0.74rem !important;
  }
}
