/* ═══════════════════════════════════════════════
   JERSEYSCOUT — style.css
   Fonts: Bebas Neue (headings) + Outfit (body)
   Theme: dark space + electric green
═══════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────── */
:root {
  --bg:        #06081A;
  --bg2:       #080B24;
  --green:     #00FF87;
  --green-dim: #00CC6A;
  --green-glow:rgba(0,255,135,0.15);
  --orange:    #FF6B35;
  --gold:      #FFD166;
  --text:      #E8EDF8;
  --text2:     #8896B3;
  --text3:     #4A5578;
  --glass:     rgba(255,255,255,0.04);
  --glass2:    rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --gborder:   rgba(0,255,135,0.22);
  --nav-h:     66px;
  --r:         14px;
  --r-sm:      8px;
  --r-lg:      20px;
  --r-full:    9999px;
  --t:         250ms ease;
  --max-w:     1180px;
  --font-d:    'Bebas Neue', sans-serif;
  --font-b:    'Outfit', sans-serif;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-g:  0 0 30px rgba(0,255,135,0.18);
}

/* ── Reset ─────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }
body { font-family:var(--font-b); background:var(--bg); color:var(--text); line-height:1.6; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
button { cursor:pointer; font-family:var(--font-b); border:none; background:none; }
ul,ol { list-style:none; }

/* ── Star canvas ───────────────────────────── */
#stars {
  position:fixed; inset:0; width:100%; height:100%;
  z-index:0; pointer-events:none;
}
body > *:not(#stars) { position:relative; z-index:1; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:var(--border2); border-radius:var(--r-full); }

/* ── Container ─────────────────────────────── */
.container { width:100%; max-width:var(--max-w); margin:0 auto; padding:0 2rem; }
@media(max-width:768px){ .container { padding:0 1rem; } }

/* ── Skeleton loading ──────────────────────── */
@keyframes shimmer {
  0%  { background-position:-600px 0; }
  100%{ background-position: 600px 0; }
}
.skeleton {
  background:linear-gradient(90deg, var(--glass) 25%, var(--glass2) 50%, var(--glass) 75%);
  background-size:600px 100%;
  animation:shimmer 1.5s infinite linear;
  border:1px solid var(--border);
  border-radius:var(--r);
}

/* ── Focus ─────────────────────────────────── */
:focus-visible { outline:2px solid var(--green); outline-offset:2px; border-radius:4px; }


/* ═══════════ NAVBAR ═══════════════════════ */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:var(--nav-h);
  transition:background var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  background:rgba(6,8,26,0.92);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 1px 0 var(--border);
}
.nav-inner {
  max-width:var(--max-w); margin:0 auto; padding:0 2rem;
  height:100%; display:flex; align-items:center; gap:2rem;
}
.logo {
  font-family:var(--font-d); font-size:1.7rem; letter-spacing:0.04em;
  display:flex; align-items:center; gap:0.35rem; flex-shrink:0;
  transition:opacity var(--t);
}
.logo:hover { opacity:0.85; }
.logo span { color:var(--green); }

.nav-links { display:flex; align-items:center; gap:0.2rem; margin-left:auto; }
.nav-link {
  font-size:0.88rem; font-weight:500; color:var(--text2);
  padding:0.4rem 0.75rem; border-radius:var(--r-sm);
  transition:color var(--t), background var(--t);
}
.nav-link:hover, .nav-link.active { color:var(--text); background:var(--glass2); }

.nav-right { display:flex; align-items:center; gap:0.5rem; }
.icon-btn {
  width:38px; height:38px; border-radius:var(--r-sm); color:var(--text2);
  display:flex; align-items:center; justify-content:center;
  transition:all var(--t);
}
.icon-btn:hover { color:var(--text); background:var(--glass2); }

.hamburger { display:none; flex-direction:column; gap:5px; padding:8px; border-radius:var(--r-sm); }
.hamburger span { display:block; width:22px; height:2px; background:var(--text2); border-radius:2px; transition:all var(--t); }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; transform:scaleX(0); }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display:none; flex-direction:column;
  background:rgba(6,8,26,0.97); backdrop-filter:blur(20px);
  border-top:1px solid var(--border); padding:0.75rem 0;
}
.mobile-menu.open { display:flex; }
.mobile-link {
  font-size:1rem; font-weight:500; color:var(--text2);
  padding:0.75rem 2rem; border-bottom:1px solid var(--border);
  transition:color var(--t), background var(--t);
}
.mobile-link:last-child { border-bottom:none; }
.mobile-link:hover { color:var(--text); background:var(--glass); }

@media(max-width:880px){
  .nav-links { display:none; }
  .hamburger { display:flex; }
  .nav-inner  { padding:0 1rem; }
}

/* ── Search overlay ────────────────────────── */
.search-overlay {
  position:fixed; inset:0; z-index:200;
  background:rgba(6,8,26,0.96); backdrop-filter:blur(24px);
  display:flex; flex-direction:column; align-items:center;
  padding-top:100px; padding-left:1rem; padding-right:1rem;
  opacity:0; pointer-events:none; transition:opacity var(--t);
}
.search-overlay.open { opacity:1; pointer-events:all; }

.search-box {
  width:100%; max-width:560px;
  display:flex; align-items:center; gap:1rem;
  background:var(--glass2); border:1.5px solid var(--border2);
  border-radius:var(--r-lg); padding:1rem 1.25rem;
}
.search-box svg { color:var(--text2); flex-shrink:0; }
.search-box input {
  flex:1; background:none; border:none; outline:none;
  font-family:var(--font-b); font-size:1.1rem; color:var(--text);
  caret-color:var(--green);
}
.search-box input::placeholder { color:var(--text3); }
.close-btn { color:var(--text3); font-size:1.1rem; padding:4px; transition:color var(--t); }
.close-btn:hover { color:var(--text); }

.search-results {
  width:100%; max-width:560px; margin-top:0.75rem;
  display:flex; flex-direction:column; gap:6px;
}
.sr-item {
  display:flex; align-items:center; gap:1rem; padding:0.85rem 1rem;
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--r); cursor:pointer; transition:all var(--t);
}
.sr-item:hover { background:var(--glass2); border-color:var(--gborder); }
.sr-icon { font-size:1.4rem; width:34px; text-align:center; flex-shrink:0; }
.sr-name { font-weight:600; font-size:0.92rem; }
.sr-sub  { font-size:0.76rem; color:var(--text2); margin-top:1px; }
.sr-price{ margin-left:auto; font-family:var(--font-d); font-size:1.05rem; color:var(--green); }


/* ═══════════ HERO ══════════════════════════ */
.hero {
  min-height:100vh; display:flex; flex-direction:column;
  padding-top:var(--nav-h);
}
.hero-inner {
  flex:1; display:grid; grid-template-columns:1fr 1fr;
  gap:3rem; align-items:center;
  max-width:var(--max-w); margin:0 auto;
  padding:4rem 2rem; width:100%;
}

/* Live badge */
.live-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--glass2); border:1px solid var(--gborder);
  border-radius:var(--r-full); padding:6px 14px;
  font-size:0.75rem; font-weight:700; color:var(--green);
  text-transform:uppercase; letter-spacing:0.06em;
  margin-bottom:1.25rem; width:fit-content;
}
.dot {
  width:7px; height:7px; background:var(--green);
  border-radius:50%; animation:pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

/* Hero heading */
.hero-content h1 {
  font-family:var(--font-d);
  font-size:clamp(3.2rem,6.5vw,5.8rem);
  line-height:0.95; letter-spacing:0.01em;
  color:var(--text); margin-bottom:1.25rem;
}
.hero-content h1 .green {
  color:var(--green); text-shadow:0 0 40px rgba(0,255,135,0.35);
}
.hero-sub {
  font-size:1rem; color:var(--text2); line-height:1.7;
  max-width:420px; margin-bottom:2rem;
}

/* Hero search */
.hero-search { position:relative; margin-bottom:1.25rem; }
.hs-inner {
  display:flex; align-items:center; gap:0.75rem;
  background:var(--glass2); border:1.5px solid var(--border2);
  border-radius:var(--r); padding:10px 10px 10px 18px;
  transition:border-color var(--t), box-shadow var(--t);
}
.hs-inner:focus-within {
  border-color:var(--gborder);
  box-shadow:0 0 0 3px rgba(0,255,135,0.07);
}
.hs-inner svg { color:var(--text2); flex-shrink:0; }
.hs-inner input {
  flex:1; background:none; border:none; outline:none;
  font-family:var(--font-b); font-size:0.95rem; color:var(--text);
  caret-color:var(--green);
}
.hs-inner input::placeholder { color:var(--text3); }
.hs-inner button {
  background:var(--green); color:#06081A;
  font-weight:700; font-size:0.85rem;
  border-radius:var(--r-sm); padding:8px 16px; flex-shrink:0;
  transition:all var(--t);
}
.hs-inner button:hover { background:var(--green-dim); transform:scale(1.04); }

.hs-results {
  position:absolute; top:calc(100% + 8px); left:0; right:0;
  background:rgba(8,11,34,0.97); backdrop-filter:blur(20px);
  border:1px solid var(--border2); border-radius:var(--r);
  overflow:hidden; z-index:50; box-shadow:var(--shadow); display:none;
}
.hs-results.open { display:block; }
.hsr-item {
  display:flex; align-items:center; gap:0.75rem;
  padding:11px 16px; border-bottom:1px solid var(--border);
  cursor:pointer; transition:background var(--t); text-decoration:none; color:var(--text);
}
.hsr-item:last-child { border-bottom:none; }
.hsr-item:hover { background:var(--glass2); }
.hsr-icon { font-size:1.2rem; width:28px; text-align:center; }
.hsr-name { font-weight:600; font-size:0.88rem; }
.hsr-sub  { font-size:0.74rem; color:var(--text2); }
.hsr-price{ margin-left:auto; font-family:var(--font-d); color:var(--green); font-size:1rem; }

/* Quick links */
.quick-links {
  display:flex; align-items:center; flex-wrap:wrap;
  gap:8px; margin-bottom:2rem;
}
.ql-label { font-size:0.78rem; color:var(--text3); font-weight:500; }
.ql-tag {
  font-size:0.78rem; font-weight:500; color:var(--text2);
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--r-full); padding:4px 12px;
  transition:all var(--t); white-space:nowrap;
}
.ql-tag:hover { color:var(--green); border-color:var(--gborder); }

/* Hero stats */
.hero-stats { display:flex; align-items:center; gap:2rem; }
.stat-n { display:block; font-family:var(--font-d); font-size:2rem; color:var(--text); letter-spacing:0.03em; }
.stat-l { font-size:0.72rem; color:var(--text3); text-transform:uppercase; letter-spacing:0.08em; font-weight:500; }
.stat-div { width:1px; height:32px; background:var(--border); }

/* Hero visual */
.hero-visual {
  position:relative; height:440px;
  display:flex; align-items:center; justify-content:center;
}
.ring {
  position:absolute; border-radius:50%;
  border:1px solid var(--border); animation:spin 30s linear infinite;
}
.r1 { width:180px; height:180px; border-color:var(--gborder); animation-duration:18s; }
.r2 { width:300px; height:300px; animation-duration:32s; animation-direction:reverse; }
.r3 { width:410px; height:410px; animation-duration:48s; }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.ball-wrap { position:relative; z-index:2; display:flex; align-items:center; justify-content:center; }
.glow {
  position:absolute; width:130px; height:130px;
  background:radial-gradient(circle, rgba(0,255,135,0.22) 0%, transparent 70%);
  border-radius:50%; animation:glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100%{transform:scale(1);opacity:0.8} 50%{transform:scale(1.3);opacity:0.4} }
.ball { font-size:4.5rem; animation:float 4s ease-in-out infinite; filter:drop-shadow(0 0 18px rgba(0,255,135,0.28)); }
@keyframes float { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-14px) rotate(8deg)} }

/* Floating price tags */
.price-tag {
  position:absolute; background:var(--glass2); border:1px solid var(--border2);
  border-radius:var(--r); padding:9px 13px; backdrop-filter:blur(12px);
  display:flex; flex-direction:column; gap:3px; z-index:3;
  animation:float-tag 5s ease-in-out infinite;
}
.tag1 { top:18%; left:0; animation-delay:0s; }
.tag2 { bottom:16%; left:6%; animation-delay:1.5s; }
.tag3 { top:28%; right:0; animation-delay:0.8s; }
.tag-best { border-color:var(--gborder); background:rgba(0,255,135,0.07); }
@keyframes float-tag { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.tag-shop  { font-size:0.7rem; color:var(--text2); font-weight:500; }
.tag-label { font-size:0.62rem; color:var(--green); font-weight:800; text-transform:uppercase; letter-spacing:0.05em; }
.tag-price { font-family:var(--font-d); font-size:1.15rem; color:var(--text); }
.tag-best .tag-price { color:var(--green); }

/* Scroll hint */
.scroll-hint {
  display:flex; justify-content:center; padding:1.25rem;
  color:var(--text3); animation:bounce 2s ease-in-out infinite;
  transition:color var(--t);
}
.scroll-hint:hover { color:var(--text2); }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* Hero responsive */
@media(max-width:900px){
  .hero-inner { grid-template-columns:1fr; padding:2.5rem 1rem; gap:2rem; }
  .hero-visual { height:300px; }
  .r3{width:280px;height:280px} .r2{width:200px;height:200px} .r1{width:130px;height:130px}
  .ball{font-size:3rem}
}
@media(max-width:560px){ .hero-visual{display:none} }


/* ═══════════ SECTIONS ══════════════════════ */
.section { padding:5rem 0; }
.section-alt { background:rgba(0,0,0,0.22); }

.section-head { text-align:center; margin-bottom:3rem; }
.section-tag { font-size:0.73rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--green); margin-bottom:0.5rem; }
.section-head h2 { font-family:var(--font-d); font-size:clamp(2rem,5vw,3.2rem); letter-spacing:0.02em; line-height:1; margin-bottom:0.5rem; }
.section-head p  { font-size:0.95rem; color:var(--text2); }


/* ═══════════ CAROUSEL ══════════════════════ */
.carousel-wrap { display:flex; align-items:center; gap:1rem; }
.carousel { flex:1; overflow:hidden; border-radius:var(--r); }
.carousel-track { display:flex; gap:16px; transition:transform 400ms cubic-bezier(0.25,0.46,0.45,0.94); will-change:transform; }

/* Jersey card */
.jersey-card {
  flex:0 0 calc(20% - 13px); min-width:185px;
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--r); overflow:hidden;
  cursor:pointer; transition:all var(--t); text-decoration:none; color:var(--text);
  display:block;
}
.jersey-card:hover { transform:translateY(-6px); border-color:var(--gborder); box-shadow:var(--shadow-g); }
.jersey-card.skeleton { min-height:260px; }

.jc-img {
  width:100%; aspect-ratio:1; background:var(--glass2);
  display:flex; align-items:center; justify-content:center;
  font-size:3.5rem; position:relative; overflow:hidden;
}
.jc-img img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.jc-img::after {
  content:''; position:absolute; bottom:0; left:0; right:0;
  height:40%; background:linear-gradient(to top, rgba(8,11,34,0.7) 0%, transparent 100%);
}
.jc-badge {
  position:absolute; top:9px; left:9px; z-index:2;
  background:var(--orange); color:#fff; font-size:0.62rem;
  font-weight:700; text-transform:uppercase; letter-spacing:0.06em;
  padding:3px 8px; border-radius:var(--r-full);
}
.jc-body { padding:11px 13px 13px; }
.jc-club { font-size:0.68rem; color:var(--text2); text-transform:uppercase; letter-spacing:0.06em; font-weight:600; margin-bottom:3px; }
.jc-name { font-size:0.86rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:6px; }
.jc-row  { display:flex; align-items:center; justify-content:space-between; }
.jc-from { font-size:0.67rem; color:var(--text3); }
.jc-price{ font-family:var(--font-d); font-size:1.1rem; color:var(--green); }
.jc-shops{ font-size:0.67rem; color:var(--text3); margin-top:2px; }

/* Arrows */
.arrow {
  width:42px; height:42px; border-radius:50%;
  background:var(--glass2); border:1px solid var(--border2);
  color:var(--text2); display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:all var(--t);
}
.arrow:hover:not(:disabled) { color:var(--text); border-color:var(--gborder); }
.arrow:disabled { opacity:0.3; cursor:default; }

/* Dots */
.carousel-dots { display:flex; justify-content:center; gap:8px; margin-top:1.25rem; }
.cdot {
  width:6px; height:6px; border-radius:50%;
  background:var(--border2); border:none; cursor:pointer; transition:all var(--t);
}
.cdot.active { background:var(--green); width:20px; border-radius:3px; }

@media(max-width:768px){ .jersey-card{flex:0 0 calc(50% - 8px)} .arrow{display:none} }


/* ═══════════ LEAGUES GRID ══════════════════ */
.leagues-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:14px;
}
.league-card {
  position:relative; background:var(--glass); border:1px solid var(--border);
  border-radius:var(--r); padding:1.25rem;
  display:flex; flex-direction:column; gap:5px;
  overflow:hidden; transition:all var(--t); cursor:pointer;
}
.league-card:hover { transform:translateY(-4px); border-color:var(--gborder); }
.lc-flag  { font-size:2rem; }
.lc-name  { font-weight:700; font-size:0.92rem; color:var(--text); }
.lc-count { font-size:0.75rem; color:var(--text2); }
.lc-all .lc-name { color:var(--green); }

@media(max-width:860px){ .leagues-grid{grid-template-columns:repeat(2,1fr)} }


/* ═══════════ CLUBS GRID ════════════════════ */
.clubs-grid {
  display:grid; grid-template-columns:repeat(5,1fr); gap:14px;
}
.club-card {
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--r); padding:1.25rem 1rem;
  display:flex; flex-direction:column; align-items:center;
  gap:0.5rem; text-align:center; cursor:pointer;
  transition:all var(--t); text-decoration:none; color:var(--text);
}
.club-card:hover { transform:translateY(-5px); border-color:var(--gborder); box-shadow:var(--shadow-g); }
.club-card.skeleton { min-height:155px; }
.cc-badge {
  width:60px; height:60px; border-radius:50%;
  background:var(--glass2); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:2.5rem; overflow:hidden;
}
.cc-badge img { width:44px; height:44px; object-fit:contain; }
.cc-name   { font-weight:700; font-size:0.88rem; width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cc-league { font-size:0.7rem; color:var(--text2); }
.cc-price  { font-family:var(--font-d); font-size:0.92rem; color:var(--green); }

@media(max-width:860px){ .clubs-grid{grid-template-columns:repeat(3,1fr)} }
@media(max-width:500px){ .clubs-grid{grid-template-columns:repeat(2,1fr)} }


/* ═══════════ HOW IT WORKS ══════════════════ */
.steps {
  display:grid; grid-template-columns:1fr auto 1fr auto 1fr;
  gap:1rem; align-items:center;
}
.step {
  background:var(--glass); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:2rem 1.5rem; text-align:center;
  transition:all var(--t);
}
.step:hover { border-color:var(--gborder); transform:translateY(-4px); }
.step-num  { font-family:var(--font-d); font-size:3rem; color:var(--gborder); line-height:1; margin-bottom:0.5rem; }
.step-icon { font-size:2.2rem; margin-bottom:0.75rem; }
.step h3   { font-size:1.05rem; font-weight:700; margin-bottom:0.5rem; }
.step p    { font-size:0.85rem; color:var(--text2); line-height:1.6; }
.step-line { width:32px; height:2px; background:linear-gradient(to right,var(--gborder),transparent); flex-shrink:0; }

@media(max-width:700px){
  .steps { grid-template-columns:1fr; max-width:340px; margin:0 auto; }
  .step-line { width:2px; height:28px; margin:0 auto; background:linear-gradient(to bottom,var(--gborder),transparent); }
}


/* ═══════════ FOOTER ════════════════════════ */
.footer { background:rgba(0,0,0,0.35); border-top:1px solid var(--border); padding:4rem 0 1.5rem; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; margin-bottom:3rem; }
.footer-logo { font-family:var(--font-d); font-size:1.7rem; letter-spacing:0.04em; margin-bottom:0.75rem; }
.footer-logo span { color:var(--green); }
.footer-brand p { font-size:0.85rem; color:var(--text2); line-height:1.6; }
.footer-col h4 { font-size:0.75rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--text2); margin-bottom:0.85rem; }
.footer-col { display:flex; flex-direction:column; gap:0.5rem; }
.footer-col a { font-size:0.85rem; color:var(--text3); transition:color var(--t); }
.footer-col a:hover { color:var(--green); }
.footer-bottom { border-top:1px solid var(--border); padding-top:1.25rem; font-size:0.75rem; color:var(--text3); line-height:1.6; }

@media(max-width:860px){ .footer-grid{grid-template-columns:1fr 1fr;gap:2rem} }
@media(max-width:500px){ .footer-grid{grid-template-columns:1fr} }


/* ═══════════ ANIMATIONS ════════════════════ */
@keyframes fade-up {
  from{opacity:0;transform:translateY(20px)}
  to  {opacity:1;transform:translateY(0)}
}
.fade-up { animation:fade-up 0.5s ease forwards; }
.fade-up:nth-child(1){animation-delay:0ms}
.fade-up:nth-child(2){animation-delay:70ms}
.fade-up:nth-child(3){animation-delay:140ms}
.fade-up:nth-child(4){animation-delay:210ms}
.fade-up:nth-child(5){animation-delay:280ms}
.fade-up:nth-child(6){animation-delay:350ms}
.fade-up:nth-child(7){animation-delay:420ms}
.fade-up:nth-child(8){animation-delay:490ms}
.fade-up:nth-child(9){animation-delay:560ms}
.fade-up:nth-child(10){animation-delay:630ms}
