@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --bg: #0a0f1e;
  --surface: #111827;
  --surface-raised: #1c2740;
  --surface-glass: rgba(28, 39, 64, 0.6);
  --border: rgba(148, 163, 184, 0.12);
  --border-hover: rgba(74, 222, 128, 0.3);
  --accent: #4ade80;
  --accent-dim: #22c55e;
  --accent-glow: rgba(74, 222, 128, 0.15);
  --gold: #fbbf24;
  --gold-dim: #f59e0b;
  --tier-s: #ff6b6b;
  --tier-a: #ffa06b;
  --tier-b: #ffd96b;
  --tier-c: #6bffa0;
  --tier-d: #6bcfff;
  --tier-f: #b06bff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dim); }

img { max-width: 100%; display: block; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: var(--text-primary);
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

/* ── Utility Classes ── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge--visited { background: var(--accent-glow); color: var(--accent); }
.badge--unvisited { background: rgba(148,163,184,0.1); color: var(--text-muted); }
.badge--wishlist { background: rgba(251,191,36,0.15); color: var(--gold); }

.tier-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
}
.tier-badge[data-tier="S"] { background: var(--tier-s); color: #fff; }
.tier-badge[data-tier="A"] { background: var(--tier-a); color: #1a1a1a; }
.tier-badge[data-tier="B"] { background: var(--tier-b); color: #1a1a1a; }
.tier-badge[data-tier="C"] { background: var(--tier-c); color: #1a1a1a; }
.tier-badge[data-tier="D"] { background: var(--tier-d); color: #1a1a1a; }
.tier-badge[data-tier="F"] { background: var(--tier-f); color: #fff; }

.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600;
  transition: all var(--transition);
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #0a0f1e;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn--secondary {
  background: var(--surface-raised);
  border: 1px solid var(--border);
}
.btn--secondary:hover { border-color: var(--border-hover); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-raised); }
.btn--outline {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}
.btn--outline:hover { border-color: #f87171; background: rgba(248, 113, 113, 0.1); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-raised); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Stars ── */
.stars { display: inline-flex; gap: 2px; }
.stars .star { color: var(--text-muted); font-size: 1rem; cursor: pointer; transition: color var(--transition); }
.stars .star.active { color: var(--gold); }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-in { animation: fadeIn 0.5s ease-out forwards; }
.skeleton { animation: pulse 1.5s ease-in-out infinite; background: var(--surface-raised); border-radius: var(--radius-sm); }
