/* Ashe Retro Collectibles — public storefront.
   Same identity as the shop app: dark purple, fox orange, cream. Phone-first. */

:root {
  --bg: #191026;
  --panel: #241736;
  --panel-hi: #2E1E45;
  --line: #3B2A57;
  --cream: #F3EDE2;
  --dim: #A796C4;
  --fox: #F59E42;
  --fox-deep: #E07E1F;
  --mint: #4ADE9E;
  --red: #F0616B;
  --blue: #6FA8F5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--fox); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header / nav */
header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(25, 16, 38, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; max-width: 1040px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: var(--cream); line-height: 1.1;
}
.brand:hover { text-decoration: none; }
.brand .fox {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--fox), var(--fox-deep));
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.brand em { color: var(--fox); font-style: normal; }
.nav-links { margin-left: auto; display: flex; gap: 4px; }
.nav-links a {
  color: var(--dim); font-weight: 700; font-size: 14px;
  padding: 8px 12px; border-radius: 9px;
}
.nav-links a.active, .nav-links a:hover {
  color: #191026; background: var(--fox); text-decoration: none;
}

/* Panels & badges */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px;
}
.badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; border-radius: 6px; padding: 2px 7px;
  border: 1px solid var(--line); color: var(--dim);
  font-family: 'JetBrains Mono', monospace;
}
.badge.fox { color: var(--fox); border-color: var(--fox); }
.badge.mint { color: var(--mint); border-color: var(--mint); }
.badge.blue { color: var(--blue); border-color: var(--blue); }
.badge.red { color: var(--red); border-color: var(--red); }

h1 { font-size: 26px; font-weight: 800; margin: 26px 0 6px; }
h2 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin: 28px 0 12px; }
.sub { color: var(--dim); font-size: 14px; margin: 0 0 18px; }

/* Updated-nightly stamp */
.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--dim);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; margin: 4px 0 10px;
}
.stamp .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--mint); }

/* Item grid */
.grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-bottom: 30px;
}
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card img {
  width: 100%; aspect-ratio: 1/1; object-fit: contain;
  background: var(--panel-hi); display: block; padding: 8px;
}
.card .noimg {
  width: 100%; aspect-ratio: 1/1; background: var(--panel-hi);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; opacity: 0.5;
}
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.card .meta { font-size: 11.5px; color: var(--dim); }
.card .price-row {
  margin-top: auto; padding-top: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.card .price { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 16px; color: var(--fox); }
.card .qty { font-size: 10.5px; color: var(--dim); font-family: 'JetBrains Mono', monospace; }

/* Search & filters */
.filters {
  position: sticky; top: 61px; z-index: 30;
  background: rgba(25, 16, 38, 0.94); backdrop-filter: blur(8px);
  padding: 12px 0; margin-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.filters input[type="search"], .filters select {
  background: var(--panel-hi); border: 1px solid var(--line); color: var(--cream);
  border-radius: 10px; padding: 10px 13px; font-size: 15px; font-family: inherit;
}
.filters input[type="search"] { flex: 1 1 200px; min-width: 0; }
.filters select { flex: 0 1 auto; max-width: 46vw; }


/* Featured events — one-off specials (prereleases, tournaments) get a
   bigger, more prominent card than the routine weekly schedule below. */
.featured-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 22px; }
@media (min-width: 720px) { .featured-grid { grid-template-columns: 1fr 1fr; } }
.featured-card {
  background: linear-gradient(160deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--fox); border-radius: 14px; padding: 16px 18px;
  display: flex; gap: 14px;
}
.featured-card .fdate {
  text-align: center; min-width: 54px; flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace; line-height: 1.15;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px;
  height: fit-content;
}
.featured-card .fdate .dow { font-size: 10.5px; color: var(--fox); font-weight: 800; text-transform: uppercase; }
.featured-card .fdate .num { font-size: 24px; font-weight: 800; }
.featured-card .fdate .mon { font-size: 10.5px; color: var(--dim); text-transform: uppercase; }
.featured-card .fbody { flex: 1; min-width: 0; }
.featured-card .ftitle { font-weight: 800; font-size: 16.5px; margin-bottom: 3px; }
.featured-card .fmeta { font-size: 12.5px; color: var(--dim); margin-bottom: 6px; }
.featured-card .fdesc { font-size: 13.5px; color: var(--cream); opacity: 0.9; line-height: 1.5; white-space: pre-line; }
.featured-card .fspots { margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--mint); }
.featured-card .fspots.full { color: var(--red); }

/* Weekly schedule — compact, scannable, one row per recurring slot. */
.schedule-list { display: flex; flex-direction: column; }
.schedule-row {
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row-top { display: flex; align-items: center; gap: 10px; }
.schedule-row .sday { font-weight: 800; color: var(--fox); min-width: 78px; flex-shrink: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.schedule-row .stitle { flex: 1; min-width: 0; font-weight: 700; }
.schedule-row .stime { color: var(--dim); font-family: 'JetBrains Mono', monospace; font-size: 12px; white-space: nowrap; }
.schedule-row .sdesc { margin-top: 5px; font-size: 12.5px; color: var(--dim); line-height: 1.45; }

/* Store info / contact */
.info-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 26px; }
@media (min-width: 720px) { .info-grid { grid-template-columns: 1.2fr 1fr; } }
.hours-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hours-row:last-child { border-bottom: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.contact-links a {
  background: var(--panel-hi); border: 1px solid var(--line); color: var(--cream);
  border-radius: 10px; padding: 9px 14px; font-size: 13.5px; font-weight: 700;
}
.contact-links a:hover { border-color: var(--fox); color: var(--fox); text-decoration: none; }

/* Come-grab-it note */
.grab-note {
  background: var(--panel-hi); border: 1px dashed var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; color: var(--dim); margin-bottom: 18px;
}
.grab-note b { color: var(--fox); }

.empty { padding: 36px 10px; text-align: center; color: var(--dim); }

footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 16px 34px;
  text-align: center; color: var(--dim); font-size: 12.5px;
}

/* Hero (home) */
.hero { padding: 34px 0 8px; }
.hero h1 { font-size: 30px; margin: 0 0 4px; }
.hero .tag { color: var(--dim); font-size: 15px; }

/* Announcement callout — a time-limited highlight (e.g. a new game
   launching), distinct from the dashed/muted grab-note so it reads as
   exciting news rather than a caveat. Hidden entirely (see index.html)
   when store.json has no announcement set. */
.announce {
  background: rgba(245, 158, 66, 0.12); border: 1px solid var(--fox);
  border-radius: 12px; padding: 12px 16px; font-size: 14.5px;
  font-weight: 700; color: var(--cream); margin: 10px 0 14px;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .nav-links a { padding: 8px 9px; font-size: 13px; }
}
