/* ═══════════════════════════════════════════════════════════
   StackHK Design System — Shared Styles
   Version: v2.0 Light Theme
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg: #F7F6F2;
  --bg-card: #FFFFFF;
  --bg-surface: #EFEDE7;
  --bg-ink: #1A1916;
  --accent: #2563EB;
  --accent-light: #EFF4FF;
  --accent-hover: #1D4ED8;
  --green: #059669;
  --green-light: #ECFDF5;
  --amber: #D97706;
  --amber-light: #FFFBEB;
  --red: #DC2626;
  --red-light: #FEF2F2;
  --teal: #0D9488;
  --teal-light: #F0FDFA;
  --text-1: #1A1916;
  --text-2: #57534E;
  --text-3: #A8A29E;
  --border: rgba(0,0,0,0.08);
  --border-md: rgba(0,0,0,0.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 100px;
  --max-w: 1200px;
  --font-body: 'Sora', sans-serif;
  --font-serif: 'Lora', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─── */
.display { font-family: var(--font-serif); font-size: 52px; font-weight: 600; line-height: 1.15; letter-spacing: -1px; }
h1, .h1 { font-family: var(--font-serif); font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; }
h2, .h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 600; line-height: 1.25; letter-spacing: -0.3px; }
h3, .h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.body-lg { font-size: 16px; line-height: 1.7; }
.body { font-size: 15px; line-height: 1.6; }
.body-sm { font-size: 13px; line-height: 1.5; }
.caption { font-size: 12px; line-height: 1.4; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.mono { font-family: var(--font-mono); }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,246,242,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 0; height: 60px;
}
.nav-logo {
  font-family: var(--font-serif); font-weight: 600; font-size: 20px;
  color: var(--text-1); text-decoration: none; margin-right: 40px;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--text-2);
  text-decoration: none; padding: 6px 12px; border-radius: var(--r-sm);
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--bg-surface); color: var(--text-1); }
.nav-links a.active { color: var(--accent); background: var(--accent-light); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-mobile-toggle {
  display: none; background: none; border: none; padding: 8px;
  color: var(--text-1); font-size: 20px;
}

/* ─── BUTTONS ─── */
.btn-ghost {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--text-2); background: none; border: 1px solid var(--border-md);
  border-radius: var(--r-sm); padding: 6px 14px; cursor: pointer;
  transition: all 0.15s; text-decoration: none; display: inline-flex; align-items: center;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.btn-primary {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: #fff; background: var(--accent);
  border: 1px solid var(--accent); border-radius: var(--r-sm);
  padding: 6px 16px; cursor: pointer; transition: all 0.15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

.btn-hero {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: #fff; background: var(--accent);
  border: none; border-radius: var(--r-md); padding: 12px 24px;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.35); }

.btn-hero-ghost {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--text-2); background: var(--bg-card);
  border: 1px solid var(--border-md); border-radius: var(--r-md); padding: 12px 24px;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-hero-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-subscribe {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--bg-ink); background: #fff; border: none;
  border-radius: var(--r-md); padding: 12px 20px; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.btn-subscribe:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }

/* ─── BADGES ─── */
.verdict-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-light); color: var(--green);
  border: 1px solid rgba(5,150,105,0.25);
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill);
}
.verdict-badge.caveat { background: var(--amber-light); color: var(--amber); border-color: rgba(217,119,6,0.25); }
.verdict-badge.skip { background: var(--red-light); color: var(--red); border-color: rgba(220,38,38,0.25); }

.category-tag {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.3px;
  color: var(--accent); background: var(--accent-light);
  border-radius: var(--r-pill); padding: 2px 10px;
  border: 1px solid rgba(37,99,235,0.15);
}

/* ─── FILTER PILLS ─── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-pill {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border-md);
  border-radius: var(--r-pill); padding: 6px 16px;
  cursor: pointer; transition: all 0.15s; color: var(--text-2);
}
.filter-pill:hover, .filter-pill.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ─── SCORE COMPONENTS ─── */
.score-pill {
  font-family: var(--font-mono); font-size: 14px; font-weight: 500;
  background: var(--bg-surface); color: var(--text-1);
  border-radius: var(--r-sm); padding: 4px 10px;
  display: inline-flex; align-items: center; gap: 3px;
}
.score-pill .star { color: #F59E0B; font-size: 12px; }

.score-main { display: flex; align-items: baseline; gap: 6px; }
.score-big {
  font-family: var(--font-mono); font-size: 48px; font-weight: 500;
  color: var(--text-1); line-height: 1;
}
.score-denom { font-size: 20px; color: var(--text-3); font-family: var(--font-mono); }

.bar-track { height: 5px; background: var(--bg-surface); border-radius: var(--r-pill); overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: var(--r-pill); background: var(--accent);
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.bar-fill.green { background: var(--green); }
.bar-fill.amber { background: var(--amber); }

/* ─── TOOL ICONS ─── */
.tool-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.tool-icon-sm {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.icon-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.icon-green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.icon-pink { background: linear-gradient(135deg, #f093fb, #f5576c); }
.icon-blue { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.icon-amber { background: linear-gradient(135deg, #f6d365, #fda085); }
.icon-orange { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.icon-teal { background: linear-gradient(135deg, #10b981, #3b82f6); }
.icon-indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

/* ─── CARDS ─── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-md); }

.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; transition: all 0.2s;
  cursor: pointer; text-decoration: none; display: flex; flex-direction: column; gap: 14px;
}
.review-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-md); transform: translateY(-2px); }

.cat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 20px;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: flex; flex-direction: column; gap: 12px;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ─── SECTION STYLES ─── */
section { padding: 72px 24px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { margin-bottom: 40px; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; display: block;
}
.section-title {
  font-family: var(--font-serif); font-size: 32px; font-weight: 600;
  color: var(--text-1); letter-spacing: -0.5px; line-height: 1.2;
}
.section-desc { font-size: 15px; color: var(--text-2); margin-top: 8px; }

/* ─── NEWSLETTER ─── */
.newsletter-section { background: var(--bg-ink); }
.newsletter-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.newsletter-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 16px; display: block;
}
.newsletter-title {
  font-family: var(--font-serif); font-size: 36px; font-weight: 600;
  color: #fff; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.5px;
}
.newsletter-desc { font-size: 15px; color: rgba(255,255,255,0.55); margin-bottom: 32px; }
.newsletter-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto 16px; }
.newsletter-input {
  flex: 1; font-family: var(--font-body); font-size: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md); padding: 12px 16px;
  color: #fff; outline: none; transition: all 0.15s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); }
.newsletter-note { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ─── FOOTER ─── */
footer {
  background: #EDECEA; border-top: 1px solid var(--border);
  padding: 48px 24px 28px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 200px 1fr; gap: 60px; margin-bottom: 40px;
}
.footer-logo {
  font-family: var(--font-serif); font-size: 22px; font-weight: 600;
  color: var(--text-1); text-decoration: none;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.footer-address { font-size: 12px; color: var(--text-3); margin-top: 12px; line-height: 1.7; }
.footer-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.footer-col-links li { margin-bottom: 6px; }
.footer-col-links a { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color 0.15s; }
.footer-col-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-top: 20px; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--text-3); }
.affiliate-notice {
  font-size: 11px; color: var(--text-3);
  background: var(--bg-surface); border-radius: var(--r-sm);
  padding: 4px 10px; border: 1px solid var(--border);
}

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); max-width: var(--max-w); margin: 0 auto; }

/* ─── PAGE HEADER ─── */
.page-header {
  background: var(--bg-surface);
  padding: 48px 24px;
  text-align: center;
}
.page-header-inner { max-width: var(--max-w); margin: 0 auto; }
.page-header h1 {
  font-family: var(--font-serif); font-size: 36px; font-weight: 600;
  color: var(--text-1); margin-bottom: 12px;
}
.page-header p { font-size: 16px; color: var(--text-2); max-width: 600px; margin: 0 auto; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3); margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-3); }

/* ─── SIDEBAR ─── */
.content-with-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px;
  max-width: var(--max-w); margin: 0 auto; padding: 48px 24px;
}
.sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px;
}
.sidebar-card-title {
  font-size: 14px; font-weight: 600; color: var(--text-1);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* ─── PAGINATION ─── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  font-size: 13px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: all 0.15s; text-decoration: none;
}
.pagination a { color: var(--text-2); }
.pagination a:hover { background: var(--bg-surface); color: var(--text-1); }
.pagination .active { background: var(--accent); color: #fff; }
.pagination .dots { color: var(--text-3); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 20px; }
  .hero-card { display: none; }
  .hero h1 { font-size: 36px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .compare-card { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .review-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  section { padding: 48px 16px; }
  .page-header { padding: 32px 16px; }
  .page-header h1 { font-size: 28px; }
}
