/* ════════════════════════════════════════════════════════
   LOCOMARKET — Shared Design System
   Liquid Glass aesthetic, consistent across all pages.
   ════════════════════════════════════════════════════════ */

/* === Tokens === */
:root {
  --blue:      #0A84FF;
  --green:     #30D158;
  --amber:     #FF9F0A;
  --red:       #FF453A;
  --purple:    #BF5AF2;

  --glass-bg:        rgba(255,255,255,0.04);
  --glass-bg-h:      rgba(255,255,255,0.07);
  --glass-border:    rgba(255,255,255,0.10);
  --glass-bh:        rgba(255,255,255,0.18);
  --glass-blur:      blur(60px) saturate(220%) brightness(1.05);
  --glass-shadow:    0 8px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.28);
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.20),
                     inset 1px 0 0 rgba(255,255,255,0.05),
                     inset 0 -1px 0 rgba(0,0,0,0.18);

  --text:  #FFFFFF;
  --text2: rgba(235,235,245,0.88);
  --text3: rgba(235,235,245,0.52);

  --topbar-h: 60px;
  --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --pill:     999px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }
body {
  min-height: 100vh;
  background: #06010f;
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* === Background Scene (orbs) === */
.bg-scene {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.bg-scene::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10,50,200,0.28) 0%, transparent 65%);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: 1;
  animation: orbFloat var(--dur,24s) ease-in-out infinite;
  animation-delay: var(--delay,0s);
  will-change: transform;
}
.orb-1 {
  width: 700px; height: 700px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(124,58,237,0.72) 0%, transparent 65%);
  opacity: 0.22; --dur: 28s;
}
.orb-2 {
  width: 540px; height: 540px; top: 8%; right: -90px;
  background: radial-gradient(circle, rgba(67,56,202,0.68) 0%, transparent 65%);
  opacity: 0.18; --dur: 22s; --delay: -9s;
}
.orb-3 {
  width: 460px; height: 460px; bottom: -60px; left: 18%;
  background: radial-gradient(circle, rgba(29,78,216,0.62) 0%, transparent 65%);
  opacity: 0.14; --dur: 32s; --delay: -16s;
}
.orb-4 {
  width: 340px; height: 340px; bottom: 14%; right: 8%;
  background: radial-gradient(circle, rgba(109,40,217,0.60) 0%, transparent 65%);
  opacity: 0.18; --dur: 20s; --delay: -5s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -40px) scale(1.04); }
  66%  { transform: translate(-20px, 24px) scale(0.97); }
}

/* Make all page content sit above bg-scene — exclude fixed/overlay elements */
body > *:not(.bg-scene):not(.site-topbar):not(.site-mob-drawer):not(.site-mob-overlay):not(.modal-overlay) { position: relative; z-index: 1; }

/* === Shared Topbar (public pages) === */
.site-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--topbar-h);
  backdrop-filter: blur(56px) saturate(200%) brightness(0.92);
  -webkit-backdrop-filter: blur(56px) saturate(200%) brightness(0.92);
  background: rgba(4,10,40,0.32);
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
  display: flex; align-items: center;
}
.site-topbar-inner {
  width: 100%; max-width: 1360px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* Brand */
.site-brand-link {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none; color: inherit;
}
.site-logo-img {
  height: 38px; width: auto;
  filter: drop-shadow(0 0 8px rgba(80,180,255,0.5));
  transition: filter 0.22s ease;
}
.site-logo-img:hover {
  filter: drop-shadow(0 0 16px rgba(80,200,255,0.82));
}
.site-brand-name {
  font-size: 15px; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; line-height: 1.2;
}
.site-brand-sub {
  font-size: 10px; color: var(--text3); font-weight: 500; letter-spacing: -0.01em;
}

/* Center nav links */
.site-nav-links {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(16px);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 4px;
}
.site-nav-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--text2);
  background: none; border: none; cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}
.site-nav-pill:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}
.site-nav-pill.active {
  color: var(--text);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15),
              inset 0 -1px 0 rgba(0,0,0,0.14),
              0 2px 10px rgba(0,0,0,0.22);
}
.site-nav-pill svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Right actions */
.site-nav-right { display: flex; align-items: center; gap: 10px; }

.site-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: rgba(10,132,255,0.2);
  border: 0.5px solid rgba(10,132,255,0.4);
  border-radius: var(--pill);
  font-size: 13px; font-weight: 700; letter-spacing: -0.02em;
  color: #60b8ff;
  text-decoration: none;
  transition: all 0.22s var(--spring);
  box-shadow: 0 0 16px rgba(10,132,255,0.14);
}
.site-cta-btn:hover {
  background: rgba(10,132,255,0.35);
  border-color: rgba(10,132,255,0.6);
  color: #fff;
  box-shadow: 0 0 28px rgba(10,132,255,0.32);
  transform: scale(1.03);
}

/* Topbar spacer so content doesn't hide under fixed topbar */
.topbar-spacer { height: var(--topbar-h); }

/* === Glass Card utility === */
.glass-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow), var(--glass-highlight);
  transition: border-color 0.24s ease;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 55%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.glass-card > * { position: relative; z-index: 1; }
.glass-card:hover { border-color: var(--glass-bh); }

/* === Scrollbar === */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

/* === Mobile hamburger (public pages) === */
.site-mob-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  cursor: pointer; flex-shrink: 0;
  color: rgba(235,235,245,0.88);
  transition: background 0.18s;
}
.site-mob-btn:hover { background: rgba(255,255,255,0.12); }

.site-mob-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.site-mob-overlay.open { display: block; }

.site-mob-drawer {
  position: fixed; top: 0; left: -100%; z-index: 2000;
  width: min(280px, 82vw); height: 100vh;
  background: rgba(6,8,20,0.98);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-right: 0.5px solid rgba(255,255,255,0.1);
  box-shadow: 4px 0 40px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  transition: left 0.26s cubic-bezier(0.22,1,0.36,1);
  overflow-y: auto;
}
.site-mob-drawer.open { left: 0; }

.site-mob-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.site-mob-drawer-head .brand { display: flex; align-items: center; gap: 8px; }
.site-mob-drawer-head img { height: 28px; filter: drop-shadow(0 0 6px rgba(80,180,255,0.5)); }
.site-mob-drawer-head .bname { font-size: 14px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.site-mob-close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; cursor: pointer; color: rgba(235,235,245,0.7);
  transition: background 0.15s;
}
.site-mob-close:hover { background: rgba(255,255,255,0.12); }

.site-mob-nav {
  display: flex; flex-direction: column;
  padding: 10px;
  gap: 2px;
}
.site-mob-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  color: rgba(235,235,245,0.82);
  text-decoration: none;
  transition: background 0.16s, color 0.16s;
}
.site-mob-link:hover, .site-mob-link.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.site-mob-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.65; }
.site-mob-sep { height: 0.5px; background: rgba(255,255,255,0.07); margin: 6px 4px; }
.site-mob-cta {
  margin: 12px 10px 16px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px;
  background: rgba(10,132,255,0.18); border: 0.5px solid rgba(10,132,255,0.38);
  border-radius: var(--pill);
  font-size: 14px; font-weight: 700; letter-spacing: -0.02em;
  color: #60b8ff; text-decoration: none;
  transition: background 0.2s;
}
.site-mob-cta:hover { background: rgba(10,132,255,0.32); color: #fff; }

/* === Mobile === */
@media (max-width: 768px) {
  .site-topbar-inner { padding: 0 16px; }
  .site-nav-links { display: none; }
  .site-brand-sub { display: none; }
  .site-mob-btn { display: flex; }
}

/* === Progress Bar === */
.progress-track {
  height: 2.5px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(139,92,246,0.9), rgba(167,139,250,0.6));
  border-radius: var(--pill);
  box-shadow: 0 0 8px rgba(139,92,246,0.45);
  transition: width 0.5s var(--spring);
}

/* === Typography utilities === */
.num { font-variant-numeric: tabular-nums; }
.label-xs {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  opacity: 0.45;
  font-weight: 600;
}
.player-name { font-weight: 500; font-size: 13.5px; }
