/* =========================================
   GLOBAL RESET & UTILITIES
========================================= */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body { 
  font-family: var(--font-secondary, sans-serif); 
  background: #000000; 
}

/* =========================================
   SITE HEADER BASE & SCROLLED STATES
========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.site-header.scrolled {
  background: #0a0a0a; 
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.header-container {
  max-width: 1400px; 
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

/* =========================================
   DESKTOP NAVIGATION LINKS
========================================= */
.header-nav .nav-list { 
  display: flex; 
  list-style: none; 
  gap: 30px; 
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  padding: 10px 0;
  position: relative;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-link:hover { 
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* =========================================
   MEGA MENU (Fixed Contrast, Alignment & Image)
========================================= */
.has-mega-menu { 
  position: static; /* Crucial for full-width dropdown */
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  /* Solid dark background to fix unreadable text issues */
  background: #0a0a0a; 
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Perfectly balanced 3-column layout */
.mega-menu-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr; 
  gap: 40px;
  align-items: start;
}

/* Column Headings */
.mega-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #888888 !important; /* Visible light grey */
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mega-menu-list { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

/* High Contrast Links - Forced with !important to override global bugs */
.mega-menu-link {
  text-decoration: none !important;
  color: #ffffff !important; 
  font-size: 14px !important;
  font-weight: 400 !important;
  opacity: 0.7;
  display: inline-block;
  transition: all 0.2s ease;
}

.mega-menu-link:hover {
  opacity: 1;
  transform: translateX(5px);
}

/* Featured Image / Spotlight - Fixed aspect ratio to prevent distortion */
.spotlight-card {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* Perfect wide rectangle */
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  text-decoration: none !important;
  background: #1a1a1a;
}

.spotlight-card img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; /* Ensures image fills the box without stretching */
  transition: transform 0.6s ease;
}

.spotlight-card::after {
  content: ''; 
  position: absolute; 
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
}

.spotlight-meta {
  position: absolute; 
  bottom: 0; 
  left: 0; 
  width: 100%;
  padding: 20px;
  z-index: 2;
}

.spotlight-meta .tag { 
  display: block;
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  color: #aaaaaa !important; 
  margin-bottom: 5px;
}

.spotlight-meta .title { 
  font-size: 18px; 
  font-weight: 600;
  color: #ffffff !important;
  margin: 0;
}

.spotlight-card:hover img {
  transform: scale(1.05);
}

/* =========================================
   HEADER UTILITY ACTIONS
========================================= */
.header-actions { 
  display: flex; 
  align-items: center; 
  gap: 15px; 
}

.action-btn { 
  background: none; 
  border: none; 
  color: #ffffff; 
  cursor: pointer; 
  position: relative; 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.action-btn .badge {
  position: absolute; 
  top: 4px; 
  right: 4px;
  background: #ffffff; 
  color: #000000;
  font-size: 10px; 
  font-weight: 700; 
  width: 16px; 
  height: 16px;
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.menu-toggle { 
  display: none; 
  background: none; 
  border: none; 
  color: #ffffff; 
  cursor: pointer; 
  padding: 5px;
}

/* =========================================
   MOBILE BOTTOM APP-STYLE NAV (Restored)
========================================= */
.mobile-bottom-nav {
  display: none; 
  position: fixed; 
  bottom: 0; 
  left: 0; 
  width: 100%;
  background: #0a0a0a; 
  border-top: 1px solid rgba(255, 255, 255, 0.1); 
  z-index: 2000;
  justify-content: space-around; 
  padding: 10px 0;
  padding-bottom: env(safe-area-inset-bottom, 10px); /* For iPhones */
}

.app-nav-item {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  color: rgba(255, 255, 255, 0.5); 
  text-decoration: none; 
  font-size: 10px; 
  text-transform: uppercase;
  letter-spacing: 0.5px;
  gap: 5px;
  width: 60px; 
  transition: color 0.3s ease; 
  position: relative;
}

.app-nav-item.active, 
.app-nav-item:hover { 
  color: #ffffff; 
}

.app-nav-item .badge { 
  top: -4px; 
  right: 12px; 
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}

/* =========================================
   MOBILE SIDE DRAWER MENU (Restored)
========================================= */
.mobile-drawer {
  position: fixed; 
  top: 0; 
  left: -300px; 
  width: 300px; 
  height: 100vh;
  background: #0a0a0a; 
  z-index: 3000;
  transition: transform 0.4s ease;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8); 
  display: flex; 
  flex-direction: column;
}

.mobile-drawer.open { 
  transform: translateX(300px); 
}

.drawer-header {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 20px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.drawer-logo { 
  width: 40px; 
  height: 40px; 
  object-fit: contain;
}

.close-drawer { 
  background: none; 
  border: none; 
  color: #ffffff; 
  cursor: pointer; 
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.close-drawer:hover {
  background: rgba(255, 255, 255, 0.1);
}

.drawer-links { 
  list-style: none; 
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
  overflow-y: auto;
}

.drawer-links a {
  text-decoration: none; 
  font-size: 16px; 
  font-weight: 600;
  color: #ffffff;
  display: block; 
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.drawer-overlay {
  position: fixed; 
  inset: 0; 
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(3px);
  z-index: 2500;
  opacity: 0; 
  visibility: hidden; 
  transition: all 0.4s ease;
}

.drawer-overlay.visible { 
  opacity: 1; 
  visibility: visible; 
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 1024px) {
  .header-nav, 
  .desktop-actions { 
    display: none; 
  }
  .menu-toggle { 
    display: block; 
  }
  .mobile-bottom-nav { 
    display: flex; 
  }
  .site-header { 
    padding: 15px 0; 
  }
}