/* KickFinder — static sneaker directory styles. Light/dark aware. */
:root {
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --bg-elev-2: #f0f2f8;
  --text: #14161c;
  --text-muted: #5a6072;
  --border: #e2e5ee;
  --brand: #ef4444;
  --brand-2: #f97316;
  --accent: #10b981;
  --shadow: 0 1px 3px rgba(16, 22, 40, 0.08), 0 6px 20px rgba(16, 22, 40, 0.06);
  --radius: 14px;
  --maxw: 1180px;
}
:root[data-theme='dark'] {
  --bg: #0c0e14;
  --bg-elev: #151824;
  --bg-elev-2: #1d2130;
  --text: #eef0f6;
  --text-muted: #a2a9bd;
  --border: #262b3a;
  --brand: #f87171;
  --brand-2: #fb923c;
  --accent: #34d399;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c0e14;
    --bg-elev: #151824;
    --bg-elev-2: #1d2130;
    --text: #eef0f6;
    --text-muted: #a2a9bd;
    --border: #262b3a;
    --brand: #f87171;
    --brand-2: #fb923c;
    --accent: #34d399;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 18px; max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo .mark { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 1rem; }
.header-search { flex: 1 1 260px; min-width: 180px; }
.header-search input {
  width: 100%; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev-2); color: var(--text); font-size: 0.95rem;
}
.header-search input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: var(--text-muted); padding: 6px 10px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; }
.main-nav a:hover { background: var(--bg-elev-2); color: var(--text); text-decoration: none; }
.theme-toggle { background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; width: 36px; height: 34px; cursor: pointer; font-size: 1rem; }

/* Hero */
.hero { padding: 54px 0 30px; text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 12px; letter-spacing: -0.03em; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 660px; margin: 0 auto 22px; }
.hero-search { max-width: 560px; margin: 0 auto; display: flex; gap: 8px; }
.hero-search input { flex: 1; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); font-size: 1rem; box-shadow: var(--shadow); }
.hero-search button { padding: 13px 22px; border-radius: 12px; border: none; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; cursor: pointer; font-size: 1rem; }

/* Sections */
section { padding: 26px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-head h2 { font-size: 1.4rem; margin: 0; letter-spacing: -0.02em; }
.section-head a { font-size: 0.9rem; font-weight: 600; }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16,22,40,0.14); }
.card a.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card a.card-link:hover { text-decoration: none; }
.card .thumb { aspect-ratio: 3 / 4; background: var(--bg-elev-2); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 700; font-size: 0.95rem; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card-meta .cw { font-style: italic; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.price { font-weight: 800; color: var(--accent); font-size: 0.98rem; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-elev-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge.brand { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); border-color: transparent; }
.badge.category { background: color-mix(in srgb, #3b82f6 16%, transparent); color: #2563eb; border-color: transparent; }
:root[data-theme='dark'] .badge.category { color: #93c5fd; }
.badge.collab { background: color-mix(in srgb, #a855f7 18%, transparent); color: #7c3aed; border-color: transparent; }
:root[data-theme='dark'] .badge.collab { color: #d8b4fe; }

/* Sneaker page hero */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); padding: 18px 0 6px; }
.breadcrumb a { color: var(--text-muted); }
.game-hero { display: grid; grid-template-columns: 320px 1fr; gap: 34px; padding: 14px 0 8px; }
@media (max-width: 720px) { .game-hero { grid-template-columns: 1fr; } .game-cover { max-width: 320px; } }
.game-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-elev-2); aspect-ratio: 3/4; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 800; color: var(--brand); margin: 6px 0 2px; }
.game-info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 2px 0 12px; letter-spacing: -0.02em; }
.game-info h1 .cw-title { color: var(--text-muted); font-weight: 700; }
.game-attrs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.game-attrs .badge { font-size: 0.8rem; padding: 4px 11px; }
.game-desc { color: var(--text); font-size: 1.02rem; margin: 10px 0 14px; max-width: 62ch; }
.retail-pill { display: inline-block; background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.retail-pill strong { color: var(--text); }
.quick-cta { margin-top: 4px; }

/* Where to buy */
.stores { margin: 30px 0; }
.stores h2 { font-size: 1.3rem; margin-bottom: 4px; }
.stores .as-of { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; max-width: 70ch; }
.store-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.store-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow);
}
.store-row .store-meta { min-width: 0; }
.store-row .store-name { font-weight: 800; font-size: 1rem; }
.store-row .store-sub { font-size: 0.8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.store-cta {
  display: inline-block; padding: 10px 16px; border-radius: 10px; font-weight: 800; color: #fff !important;
  white-space: nowrap; text-align: center; margin-left: auto; font-size: 0.9rem;
}
.store-cta:hover { text-decoration: none; filter: brightness(1.08); }
.store-cta.primary { padding: 13px 22px; font-size: 1rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.store-logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 0.9rem; flex-shrink: 0; }

/* Video reviews */
.videos { margin: 30px 0; }
.videos h2 { font-size: 1.3rem; margin-bottom: 14px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-facade {
  position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: flex-end; padding: 14px;
  background: linear-gradient(135deg, #1a1d29, #2a2f42);
  color: #fff;
}
.video-facade:hover { text-decoration: none; filter: brightness(1.08); }
.video-facade .yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 40px; border-radius: 10px; background: #ff0000;
}
.video-facade .yt-play::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%);
  border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.video-facade .yt-label { position: relative; font-weight: 800; font-size: 0.95rem; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* Facts table */
.facts { margin: 30px 0; }
.facts h2 { font-size: 1.3rem; margin-bottom: 12px; }
.fact-table { border-collapse: collapse; width: 100%; max-width: 560px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.fact-table th, .fact-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: none; }
.fact-table th { color: var(--text-muted); font-weight: 600; width: 40%; }
.fact-table td { font-weight: 700; }

/* Category / list pages */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); font-weight: 600; box-shadow: var(--shadow);
}
.chip:hover { text-decoration: none; border-color: var(--brand); }
.chip .count { color: var(--text-muted); font-size: 0.82rem; font-weight: 600; }
.browse-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.browse-card { padding: 20px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow); }
.browse-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.browse-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.intro { color: var(--text-muted); max-width: 75ch; margin: 0 0 18px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text); font-weight: 600; font-size: 0.9rem;
}
.pagination .current { background: var(--brand); color: #fff; border-color: transparent; }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* Page title */
.page-title { padding: 22px 0 6px; }
.page-title h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.page-title p { color: var(--text-muted); margin: 0; }

/* Search */
#search-status { color: var(--text-muted); margin: 10px 0; }

/* Prose */
.prose { max-width: 720px; }
.prose p { margin: 0 0 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg-elev); }
.footer-inner { padding: 30px 18px; max-width: var(--maxw); margin: 0 auto; display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.disclosure { color: var(--text-muted); font-size: 0.85rem; max-width: 820px; }
.copyright { color: var(--text-muted); font-size: 0.82rem; }

/* Utility */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.empty { padding: 40px; text-align: center; color: var(--text-muted); }
.notice { background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-size: 0.88rem; color: var(--text-muted); margin: 16px 0; }
.notice-wrap { padding-top: 0; }
