/* v20: production unified topbar on the frozen v19 landing body.
   Header geometry comes from sv-header.css. This file is last. */

/* Plus Jakarta for the prod topbar only (landing body keeps Mona Sans). */
@font-face{
  font-family:"Plus Jakarta Sans";
  src:url("/assets/fonts/plus-jakarta-sans-latin-400-800.woff2") format("woff2");
  font-style:normal;
  font-weight:400 800;
  font-display:optional;
}

/* Tokens the extracted topbar CSS expects, without restyling landing cards. */
:root{
  --sv-bg:#110F0C;
  --sv-bg-elevated:#17140F;
  --sv-bg-2:#161411;
  --sv-card:#1D1A14;
  --sv-text:#FBF6EA;
  --sv-text-muted:#BDB19B;
  --sv-text-dim:#948873;
  --sv-gold:#D4AF37;
  --sv-gold-hover:#E2C158;
  --sv-gold-light:#F0D27A;
  --sv-gold-border:rgba(212,175,55,0.32);
  --topbar-h:60px;
  --bg-surface:#17140F;
  --bg-card:#1D1A14;
  --text-muted:#BDB19B;
  --text-primary:#FBF6EA;
  --accent:#D4AF37;
  --border:rgba(240,205,130,0.11);
  --shadow:0 16px 40px rgba(0,0,0,.45);
  --transition:.16s ease;
}

/* Fixed 60px prod topbar is out of flow. Keep landing content below it. */
html{scroll-padding-top:72px;}
body{padding-top:60px;}

/* Match www landing topbar surface (gg-landing-page.css). */
html body #sv-topbar{
  background: rgba(22,20,17,0.98) !important;
}

/* Landing global `a`/`img` must not restyle the prod header. */
#sv-topbar a,
#sv-topbar button,
#sv-topbar input,
#sv-topbar summary,
#mobile-nav a{
  font-family:"Plus Jakarta Sans","Segoe UI",system-ui,sans-serif !important;
  text-decoration:none;
}
#sv-topbar img.sv-logo-image{max-width:none;}

/* Motion control: not inside .site-topbar. Fixed under the bar, right side. */
.v20-motion{
  position:fixed;
  top:68px;
  right:16px;
  z-index:80;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  pointer-events:none;
}
.v20-motion .motion-tg{
  pointer-events:auto;
  background:rgba(23,20,15,.92);
  border:1px solid rgba(212,175,55,.28);
}
@media(max-width:720px){
  .v20-motion{top:68px;right:10px;}
}
/* When the mobile search overlay or menu is open, keep the toggle out of the way. */
body.mobile-search-open .v20-motion,
body.v20-menu-open .v20-motion{visibility:hidden;}

/* Mobile menu: match live www computed styles (opaque anthracite panel under the bar). */
#mobile-nav{
  display:none;
  position:fixed;
  top:64px;
  left:0;
  right:0;
  z-index:95;
  margin:0;
  padding:14.5px;
  background:#17140F;
  color:#FBF6EA;
  font-family:"Plus Jakarta Sans","Segoe UI",system-ui,sans-serif;
  font-size:14.5px;
  line-height:1.35;
  gap:4.35px;
  opacity:1;
  box-shadow:0 18px 40px rgba(0,0,0,.5);
  border-bottom:1px solid rgba(212,175,55,.22);
}
#mobile-nav[data-open="1"]{
  display:grid !important;
}
#mobile-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  color:#FBF6EA;
  padding:.65rem .85rem;
  border-radius:8px;
  font-weight:500;
  text-decoration:none;
}
#mobile-nav a:hover{background:rgba(255,255,255,.05);}
#mobile-nav a span[aria-hidden]{opacity:.8; min-width:1.25em;}
@media(min-width:721px){
  #mobile-nav{display:none !important;}
}

/* Sign in looks like prod even without football-app JS. */
#sv-topbar .account-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:40px;
  height:40px;
  padding:0 .85rem;
  border-radius:12px;
  border:1px solid rgba(196,191,181,.28);
  background:rgba(23,20,15,.6);
  color:#FBF6EA;
  font-size:.78rem;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
  text-decoration:none;
}
#sv-topbar .account-trigger:hover{border-color:rgba(196,191,181,.38);}
#sv-topbar .topbar-account-mobile a.gg-topbar-boot-avatar{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  color:#FBF6EA;
}

/* Search field: icon sits inside the 42px input, same metrics as www. */
#sv-topbar .topbar-search-shell,
#sv-topbar .topbar-search-form{
  position: relative;
  display: flex;
  align-items: center;
}
#sv-topbar .topbar-search-icon{
  position: absolute !important;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex !important;
  width: auto !important;
  height: auto !important;
  color: rgb(148, 147, 144);
  pointer-events: none;
  line-height: 1;
}
#sv-topbar .topbar-search-form input[type="search"]{
  display: block;
  width: 100%;
  background: rgba(244, 214, 140, 0.04) !important;
  border: 1px solid rgba(244, 214, 140, 0.08) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  padding: 13px 14.5px 13px 34.8px !important;
  color: #f7f7f7 !important;
  font-weight: 400 !important;
  font-size: 14.5px !important;
}

/* Account slots must match www: Sign in on desktop, avatar only on the phone. */
@media (min-width: 721px){
  html body #sv-topbar{
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(22,20,17,0.98) !important;
  }
  #sv-topbar .topbar-account-mobile{ display: none !important; }
  #sv-topbar .topbar-account-slot.account-desktop-only{ display: flex !important; }
  #sv-topbar .account-trigger{
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    height: 40px;
    padding: 6px 9.5px !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(164, 156, 141, 0.12)) !important;
    border: 1px solid rgba(244, 214, 140, 0.12) !important;
    border-radius: 12px !important;
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif !important;
    font-weight: 800 !important;
    font-size: 11.3px !important;
    color: rgb(247, 247, 246) !important;
  }
}
@media (max-width: 720px){
  #sv-topbar .topbar-account-slot.account-desktop-only,
  #sv-topbar .account-desktop-only{ display: none !important; }
  #sv-topbar .topbar-account-mobile{
    display: flex !important;
    align-items: center;
  }
  #sv-topbar .topbar-account-mobile a.gg-topbar-boot-avatar{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(214, 176, 52, 0.28);
    color: #FBF6EA;
    overflow: hidden;
  }
  #sv-topbar .topbar-account-mobile a.gg-topbar-boot-avatar svg{ width: 22px; height: 22px; }
  /* Keep the motion toggle off the phone hero kicker. */
  .v20-motion{ top: auto; bottom: 16px; right: 12px; }
}
