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

:root {
  --accent: #2e7d5e;
  --accent-light: #e8f5ef;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --bg: #f9fafb;
  --radius: 10px;
  --shadow: 0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── Header ───────────────────────────────────────────── */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.3px;
}

.logo span { color: var(--text); }

nav { display: flex; gap: 28px; }

nav a {
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
  transition: color .15s;
}

nav a:hover { color: var(--accent); }

/* ── Hero (homepage) ──────────────────────────────────── */
.hero {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 72px 24px 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}

.hero p {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 520px;
  margin: 0 auto;
}

.hero-disclaimer {
  margin-top: 18px;
  font-size: .78rem;
  opacity: .6;
}

/* ── Page Hero (category pages) ───────────────────────── */
.page-hero {
  background: var(--accent);
  color: #fff;
  padding: 40px 24px 36px;
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  opacity: .75;
  margin-bottom: 14px;
  transition: opacity .15s;
}

.back-link:hover { opacity: 1; }

.page-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 6px;
}

.page-hero p {
  font-size: .95rem;
  opacity: .8;
}

/* ── Section ──────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.section:last-of-type { padding-bottom: 72px; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.section-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.3px;
}

.section-header p {
  font-size: .88rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── See All link ─────────────────────────────────────── */
.see-all {
  margin-top: 20px;
  text-align: right;
}

.see-all a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}

.see-all a:hover { color: #235f47; }

/* ── Grid & Cards ─────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 32px rgba(0,0,0,.08);
}

.card-img {
  background: #f3f4f6;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.card-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.card-stars {
  font-size: .8rem;
  color: #f59e0b;
  margin-bottom: 12px;
}

.btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .15s;
}

.btn:hover { background: #235f47; }

/* ── Divider ──────────────────────────────────────────── */
.divider {
  max-width: 1100px;
  margin: 56px auto 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Tips Banner ──────────────────────────────────────── */
.tips-wrap {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.tips {
  background: var(--accent-light);
  border: 1px solid #c3e0d3;
  border-radius: var(--radius);
  padding: 24px 28px;
}

.tips h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}

.tips ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 24px;
}

.tips ul li {
  font-size: .88rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}

.tips ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px;
  margin-top: 72px;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

footer p {
  font-size: .8rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Best Of ──────────────────────────────────────────── */
.bestof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.bestof-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bestof-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.bestof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bestof-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  line-height: 1.4;
}

.bestof-rank {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.bestof-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bestof-list a:hover { color: #235f47; }

.bestof-note {
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ── Guides ───────────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guide-header {
  background: var(--accent-light);
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.guide-header .guide-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.guide-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.guide-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-body p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}

.guide-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-tips li {
  font-size: .86rem;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
  color: var(--text);
}

.guide-tips li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Guide Links ──────────────────────────────────────── */
.guide-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.guide-links-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  flex-shrink: 0;
}

.guide-links a {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid #c3e0d3;
  border-radius: 4px;
  padding: 2px 8px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.guide-links a:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .page-hero h1 { font-size: 1.4rem; }
  nav { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
}
