/* ─────────────────────────────────────────
   SLUPPIE.COM — Main Stylesheet
   ───────────────────────────────────────── */

/* ── RESET & ROOT ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink:          #0f0e0c;
  --paper:        #faf8f3;
  --accent:       #c8602a;
  --accent-light: #f0e6dc;
  --muted:        #7a7570;
  --border:       #e2ddd6;
  --gold:         #b89a5a;
  --surface:      #f5f0e8;

  /* Score tier colours */
  --elite:     #1a6b1a;
  --excellent: #1a4b8a;
  --good:      #c8602a;
  --average:   #7a5a2a;
  --weak:      #8a1a1a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TOP NAV ── */
.topnav {
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 52px;
  display: flex;
  align-items: center;
}

.topnav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

/* ── HEADER / HERO ── */
header {
  padding: 5rem 1.5rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.6s 0.02s forwards;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.meta-row span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 3rem;
}

/* ── FILTER SECTION ── */
.filter-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-row--top {
  justify-content: space-between;
}

.filter-row--toggles {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  gap: 8px;
}

/* Product tabs */
.product-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px;
}

.product-tab {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.product-tab.active {
  background: var(--ink);
  color: #fff;
}

/* Sort */
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.sort-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 30px 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a7570'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Filter label */
.filter-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

/* Filter toggle buttons */
.filter-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
}

.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
}

/* ── MAIN LIST ── */
main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ── VENDOR CARD ── */
.vcard {
  display: grid;
  grid-template-columns: 56px 1fr 116px;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.45s forwards;
  animation-play-state: paused;
}

.vcard:first-child { border-top: 1px solid var(--border); }

.vcard:hover .card-name  { color: var(--accent); }
.vcard:hover .rank-num   { border-color: var(--accent); color: var(--accent); }
.vcard:hover .visit-btn  { background: var(--accent); color: #fff; }

/* ── RANK CIRCLE ── */
.rank-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
}

.rank-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.rank-num.gold   { border-color: var(--gold);  color: var(--gold); }
.rank-num.silver { border-color: #a0a0a0;       color: #909090; }
.rank-num.bronze { border-color: #c8845a;       color: #c8845a; }

/* ── CARD BODY ── */
.vcard-body { min-width: 0; }

.vcard-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 0.2s;
  line-height: 1.2;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vcard-products {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.55;
}

/* ── CHECKMARKS ── */
.checks-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 10px;
}

.chk {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 400;
}

.chk.pass { color: var(--elite); }
.chk.fail { color: var(--border); }

.chk-icon {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.chk-label { line-height: 1; }

/* ── VCARD META ROW ── */
.vcard-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.price-pill {
  font-size: 11px;
  font-weight: 500;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 9px;
  border-radius: 20px;
}

.purity-pill {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface);
  padding: 2px 9px;
  border-radius: 20px;
}

/* ── SHIPPING TAGS ── */
.ship-tags {
  display: flex;
  gap: 4px;
  margin-left: 4px;
}

.ship-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 10px;
}

.ship-tag.eu  { background: #e8edf8; color: #1a4b8a; }
.ship-tag.us  { background: #e8f5e8; color: #1a6b1a; }
.ship-tag.uk  { background: #f0e8f5; color: #4b1a8a; }
.ship-tag.off { background: var(--border); color: var(--muted); opacity: 0.5; }

/* ── BADGES ── */
.badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-best { background: #e8f5e8; color: #1a6b1a; }
.badge-hot  { background: #fde8e0; color: var(--accent); }
.badge-new  { background: #e8edf8; color: #1a4b8a; }
.badge-bio  { background: #f5e8f5; color: #6b1a6b; }

/* ── CARD RIGHT — SLUPPIE SCORE ── */
.card-right {
  text-align: right;
  flex-shrink: 0;
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.score-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.sluppie-score-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.sluppie-tier {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

.tier-elite     { background: #e8f5e8; color: var(--elite); }
.tier-excellent { background: #e8edf8; color: var(--excellent); }
.tier-good      { background: #fde8e0; color: var(--good); }
.tier-average   { background: #f5f0e5; color: var(--average); }
.tier-weak      { background: #f8e8e8; color: var(--weak); }

.score-bar {
  width: 70px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.visit-btn {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 12px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  margin-top: 4px;
}

/* ── NO RESULTS ── */
.no-results {
  text-align: center;
  padding: 4rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── HOW WE SCORE ── */
.how-we-score {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
}

.hws-inner {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
}

.hws-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  margin: 1rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.hws-sub {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 3rem;
}

.score-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  text-align: left;
  margin-bottom: 3rem;
}

.score-cat {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.cat-pts {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.cat-label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.cat-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Tier legend */
.tier-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 12px;
  color: var(--muted);
}

.tier-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  max-width: 1060px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 12px;
  color: var(--muted);
}

.footer-note {
  max-width: 560px;
  line-height: 1.6;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .vcard {
    grid-template-columns: 46px 1fr 90px;
    gap: 1rem;
  }

  .sluppie-score-num { font-size: 1.7rem; }
  .score-bar { width: 55px; }

  .filter-row--top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .vcard {
    grid-template-columns: 40px 1fr;
  }

  .card-right { display: none; }

  .rank-num {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  h1 { font-size: 2rem; }
  .checks-grid { gap: 3px 8px; }
}
