/* closet.lat — minimal modern stylesheet */

:root {
  --bg: #f6f5fb;
  --bg2: #ecebf6;
  --surface: #ffffff;
  --text: #14121f;
  --text2: #3a3548;
  --text3: #6b6577;
  --border: rgba(124,92,191,0.16);
  --accent: #7c5cbf;
  --accent2: #a085d8;
  --gold: #d4a843;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
}
[data-theme="dark"] {
  --bg: #0c0a14;
  --bg2: #14111c;
  --surface: #1a1620;
  --text: #e8e6f0;
  --text2: #c8c4d0;
  --text3: #8a8595;
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Space Grotesk', system-ui, sans-serif; }

/* ── Top bar ───────────────────────────────────────── */
.top-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 1.4rem; }
.brand-tld { color: var(--text3); font-weight: 400; }
.top-nav { display: flex; gap: 22px; }
.top-nav a {
  color: var(--text2); font-size: 0.92rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: all .15s;
}
.top-nav a:hover { color: var(--text); text-decoration: none; }
.top-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.theme-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px;
}

/* ── Page wrapper ──────────────────────────────────── */
.page { max-width: 1100px; margin: 0 auto; padding: 32px 24px 80px; }

/* ── Hero ──────────────────────────────────────────── */
.hero { padding: 28px 0 48px; }
.hero-eyebrow {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.1; font-weight: 700;
  margin-bottom: 14px;
}
.hero-title .hl { color: var(--accent); }
.hero-sub { font-size: 1.08rem; color: var(--text2); max-width: 650px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 100px; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); text-decoration: none; }
.btn-secondary {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 700px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; text-align: center;
}
.stat-num {
  font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 700;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); }

/* ── Features ──────────────────────────────────────── */
.section-title { font-size: 1.6rem; font-weight: 700; margin: 40px 0 20px; }
.features { padding: 20px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.feature-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--accent); color: #fff;
  border-radius: 50%; font-weight: 700; margin-bottom: 10px;
}
.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { font-size: 0.9rem; color: var(--text2); }

.why { padding: 30px 0; }
.why p { color: var(--text2); margin-bottom: 14px; max-width: 720px; }

/* ── Swipe page ─────────────────────────────────────── */
.swipe-page { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.swipe-header { width: 100%; max-width: 360px; margin-bottom: 18px; }
.swipe-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.swipe-count { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text3); }
.swipe-bar { flex: 1; height: 4px; background: var(--bg2); border-radius: 100px; overflow: hidden; }
.swipe-bar-fill { height: 100%; background: var(--accent); transition: width .3s; }
.swipe-instructions { font-size: 0.78rem; color: var(--text3); text-align: center; }

.swipe-card {
  width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .35s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.swipe-svg { background: var(--bg2); display: flex; align-items: center; justify-content: center; }
.swipe-svg svg { width: 100%; height: auto; max-height: 480px; }
.swipe-photo { width: 100%; display: block; }
.swipe-meta { padding: 16px 18px; }
.swipe-meta h3 { font-size: 1.1rem; margin-bottom: 8px; }
.swipe-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.7rem;
  background: var(--bg2); color: var(--text2); text-transform: uppercase; letter-spacing: 0.04em;
}

.swipe-actions { display: flex; gap: 18px; margin-top: 22px; }
.swipe-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 22px; transition: all .15s;
}
.swipe-btn:hover { transform: scale(1.08); }
.swipe-btn-no { color: var(--red); border-color: rgba(239,68,68,0.4); }
.swipe-btn-yes { color: var(--green); border-color: rgba(34,197,94,0.4); }
.swipe-btn-skip { color: var(--text3); }
.swipe-empty { text-align: center; padding: 60px 0; }

/* ── Armario ───────────────────────────────────────── */
.armario-header { margin-bottom: 24px; }
.armario-header h1 { font-size: 1.8rem; margin-bottom: 6px; }
.armario-header p { color: var(--text2); }
.armario-stats { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.stat-pill {
  display: inline-flex; align-items: center; padding: 8px 14px;
  background: var(--bg2); border-radius: 100px; font-size: 0.85rem; font-weight: 600;
}

.layer-section { margin-bottom: 32px; }
.layer-title {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text3); margin-bottom: 10px; font-weight: 600;
}
.prenda-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.prenda-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: left; cursor: pointer; transition: all .15s; font-family: inherit;
}
.prenda-card:hover { border-color: var(--accent); }
.prenda-card.owned {
  border-color: var(--accent); background: rgba(124,92,191,0.06);
}
.prenda-color { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.prenda-info { flex: 1; min-width: 0; }
.prenda-emoji { font-size: 0.85rem; margin-right: 4px; }
.prenda-name { font-size: 0.85rem; font-weight: 600; color: var(--text); display: inline; }
.prenda-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.prenda-formality { font-size: 0.6rem; color: var(--text3); letter-spacing: 1px; }
.prenda-check {
  width: 24px; height: 24px; border-radius: 50%; background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--text3); font-size: 14px; flex-shrink: 0;
}
.prenda-card.owned .prenda-check { background: var(--accent); color: #fff; }

/* ── Outfits ───────────────────────────────────────── */
.outfits-header { margin-bottom: 24px; }
.outfits-header h1 { font-size: 1.8rem; margin-bottom: 6px; }
.outfits-header p { color: var(--text2); }
.outfits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.outfit-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; position: relative; transition: all .15s;
}
.outfit-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,92,191,0.12); }
.outfit-score {
  position: absolute; top: 12px; right: 12px;
  background: var(--bg2); padding: 4px 10px; border-radius: 100px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; color: var(--accent);
}
.outfit-vibe {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text3); font-weight: 600; margin-bottom: 12px;
}
.outfit-prendas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.outfit-row { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.prenda-color-dot {
  width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0;
}
.prenda-label { color: var(--text); }
.outfit-reason {
  font-size: 0.75rem; color: var(--text3); padding-top: 10px; border-top: 1px solid var(--border);
}
.outfits-empty { text-align: center; padding: 60px 20px; color: var(--text2); }
.outfits-empty ul { display: inline-block; text-align: left; margin: 14px 0; }

/* ── Footer ────────────────────────────────────────── */
.footer { margin-top: 60px; padding: 30px 24px; border-top: 1px solid var(--border); background: var(--bg2); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-block strong { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 6px; font-family: 'Space Grotesk', sans-serif; }
.footer-block p { font-size: 0.78rem; color: var(--text3); }

/* ── Mobile ────────────────────────────────────────── */
@media (max-width: 640px) {
  .top-bar { padding: 12px 16px; }
  .top-nav { gap: 14px; }
  .top-nav a { font-size: 0.85rem; }
  .page { padding: 20px 16px 80px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
}
