/* ShoeRack - 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; }

/* Live eBay listings */
.stores.ebay .lst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.lst-card { display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); color: inherit; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.lst-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16,22,40,0.14); }
.lst-thumb { aspect-ratio: 1 / 1; background: var(--bg-elev-2); }
.lst-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lst-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lst-badge { align-self: flex-start; font-size: 0.68rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.lst-badge.auction { background: color-mix(in srgb, #f59e0b 20%, transparent); color: #b45309; }
:root[data-theme='dark'] .lst-badge.auction { color: #fbbf24; }
.lst-badge.bin { background: color-mix(in srgb, var(--accent) 18%, transparent); color: #0f766e; }
:root[data-theme='dark'] .lst-badge.bin { color: #34d399; }
.lst-title { font-size: 0.85rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lst-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lst-price { font-weight: 800; color: var(--accent); font-size: 1rem; }
.lst-cond { font-size: 0.72rem; color: var(--text-muted); }

/* Price history & comparison */
.price-tiles { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.price-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow); min-width: 120px; }
.price-tile.hi { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.pt-label { font-size: 0.76rem; color: var(--text-muted); font-weight: 600; }
.pt-val { font-size: 1.25rem; font-weight: 800; }
.pt-val.over { color: #dc2626; }
.pt-val.under { color: var(--accent); }
:root[data-theme='dark'] .pt-val.over { color: #f87171; }
.price-chart { width: 100%; max-width: 720px; height: auto; display: block; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 0.82rem; color: var(--text-muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .lg { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-legend .lg.accent { background: var(--accent); }
.chart-legend .lg.brand { background: var(--brand); }
.chart-legend .lg.muted { background: var(--text-muted); }
.chart-legend .lg.dash { background: repeating-linear-gradient(90deg, var(--text-muted) 0 4px, transparent 4px 8px); }

/* 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-embed.primary { max-width: 760px; margin-bottom: 14px; }

/* 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; }

/* Model story */
.story h2 { font-size: 1.3rem; margin-bottom: 10px; }
.story-prose { max-width: 72ch; }
.story-prose p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--text); }

/* Sizing votes */
.sizing h2 { font-size: 1.3rem; margin-bottom: 4px; }
.sizing-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 14px; }
.size-btn {
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font-weight: 700; font-size: 0.92rem; cursor: pointer;
  box-shadow: var(--shadow);
}
.size-btn:hover:not(:disabled) { border-color: var(--brand); }
.size-btn:disabled { opacity: 0.55; cursor: default; }
.sizing.voted .size-btn { opacity: 0.55; }
.sizing-bars { display: flex; flex-direction: column; gap: 8px; max-width: 460px; }
.sz-bar { display: grid; grid-template-columns: 52px 1fr 76px; align-items: center; gap: 10px; font-size: 0.85rem; }
.sz-label { color: var(--text-muted); font-weight: 600; }
.sz-track { height: 10px; border-radius: 999px; background: var(--bg-elev-2); border: 1px solid var(--border); overflow: hidden; }
.sz-fill { height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width 0.4s ease; }
.sz-fill.true { background: var(--accent); }
.sz-pct { color: var(--text-muted); text-align: right; }

/* News / blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow); color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.post-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16,22,40,0.14); }
.post-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.post-title { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.post-excerpt { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.post-date { margin-top: auto; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.post-body { max-width: 72ch; font-size: 1.02rem; line-height: 1.75; }
.post-body h2 { font-size: 1.25rem; margin: 26px 0 10px; letter-spacing: -0.01em; }
.post-body p { margin: 0 0 16px; }
.post-body ul { margin: 0 0 16px; padding-left: 22px; }

/* Release calendar */
.rel-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.rel-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow); }
.rel-date { min-width: 150px; font-weight: 700; color: var(--brand); font-size: 0.9rem; }
.rel-main { flex: 1; min-width: 0; }
.rel-name { font-weight: 800; }
.rel-sub { font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 560px) { .rel-row { flex-wrap: wrap; } .rel-date { min-width: 0; width: 100%; } }

/* Contact form embed */
.form-embed { max-width: 720px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-elev); box-shadow: var(--shadow); }
.form-embed iframe { display: block; width: 100%; border: 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; }
