/* ==========================================================================
   LAVIX SPORTS - Navigation & Brand Header Styles
   Matches Laptop & Mobile layouts from official mockups
   ========================================================================== */

:root {
  --header-bg: #071830;
  --header-text: #ffffff;
  --header-accent-yellow: #ffc107;
  --header-accent-blue: #38bdf8;
  --header-border: #132b4f;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 2px solid var(--header-accent-yellow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.site-header .shell {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header .header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo Image */
.site-header .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header .brand img {
  display: block;
  width: clamp(170px, 20vw, 240px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

/* Desktop Navigation */
.site-header nav#site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-start;
  margin-left: 12px;
}

.site-header nav a,
.site-header nav details summary {
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.site-header nav a:hover,
.site-header nav details summary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header nav a.nav-home-pill,
.site-header nav a.active {
  background: var(--header-accent-yellow) !important;
  color: #000000 !important;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.35);
}

.site-header nav a.active::after {
  display: none !important;
}

/* Dropdown Menu */
.site-header nav details {
  position: relative;
  display: inline-block;
}

.site-header nav details summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-header nav details summary::-webkit-details-marker {
  display: none;
}

.site-header nav details summary::after {
  content: "▾";
  font-size: 9px;
  opacity: 0.8;
}

.site-header nav details>div {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  background: #0b1e38;
  border: 1px solid var(--header-border);
  border-top: 3px solid var(--header-accent-yellow);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
  padding: 6px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-header nav details>div a {
  padding: 8px 12px;
  color: #e2e8f0;
  font-size: 12px;
  border-radius: 4px;
}

.site-header nav details>div a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--header-accent-yellow);
}

/* Header Right Actions (Search, Socials, Theme) */
.site-header .header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-header .social-quick-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header .social-quick-links a {
  color: #94a3b8;
  font-size: 13px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}

.site-header .social-quick-links a:hover {
  color: var(--header-accent-yellow);
  background: rgba(255, 255, 255, 0.12);
}

.site-header .search-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.site-header .search-button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--header-accent-yellow);
}

.site-header .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.site-header .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* Category Sub-Navigation Bar (Mobile & Tablet) */
.category-subnav {
  display: none;
  background: #051329;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-subnav::-webkit-scrollbar {
  display: none;
}

.category-subnav .category-scroll-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  white-space: nowrap;
}

.category-subnav a {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 4px;
  text-decoration: none;
  flex-shrink: 0;
}

.category-subnav a.active {
  background: var(--header-accent-yellow);
  color: #000;
  font-weight: 800;
}

/* Mobile Breakpoint */
@media (max-width: 900px) {
  .site-header .header-inner {
    height: 60px;
    justify-content: space-between;
  }

  .site-header .menu-toggle {
    display: block;
    order: 1;
  }

  .site-header .brand {
    order: 2;
    margin: 0 auto;
  }

  .site-header .header-tools {
    order: 3;
    gap: 8px;
  }

  .site-header .social-quick-links,
  .site-header .search-button span {
    display: none;
  }

  .site-header .search-button {
    padding: 7px 10px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    justify-content: center;
  }

  .site-header nav#site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #071830;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 2px solid var(--header-accent-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }

  .site-header nav#site-nav.is-open {
    display: flex;
  }

  .site-header nav a,
  .site-header nav details summary {
    padding: 10px 14px;
    font-size: 14px;
  }

  .site-header nav details>div {
    position: static;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 4px 12px;
  }

  .category-subnav {
    display: block;
  }
}
