/* ─────────────────────────────────────────────────────────
   ideas-lf.css — longform design system for naviplus.io/ideas
   Ported from longform.naviplus.io/assets/css/style.css
   ───────────────────────────────────────────────────────── */
:root {
  --ink: #15171c;
  --ink-soft: #51566177;
  --muted: #5b616e;
  --line: #e7e8ee;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --brand: #2f7d5b;
  --brand-2: #6d5cf0;
  --hero: #6d5cf0;
  --radius: 18px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(16,17,23,.05), 0 12px 32px -12px rgba(16,17,23,.12);
}

.lf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Hero ──────────────────────────────────────────────── */
.lf-hero { padding: 78px 0 38px; text-align: center;
  background:
    radial-gradient(60% 120% at 50% -10%, #eef0ff 0%, transparent 60%),
    radial-gradient(40% 90% at 90% 0%, #eafaf2 0%, transparent 55%);
}
.lf-hero-badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand);
  background: #eef6f1; border: 1px solid #d6eade; border-radius: 999px;
  padding: 5px 14px; margin-bottom: 20px;
}
.lf-hero-title {
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 auto 18px; max-width: 16ch;
  color: #0f1117;
}
.lf-hero-sub { font-size: clamp(16px,2.1vw,20px); color: var(--muted); max-width: 60ch; margin: 0 auto; }

/* ── Guide grid ────────────────────────────────────────── */
.lf-guides { padding: 30px 0 80px; }

/* ── Category Sections ─────────────────────────────────── */
.lf-category-section {
  background: var(--bg); border-radius: 16px;
  padding: 32px 32px 28px;
  margin-bottom: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid color-mix(in srgb, var(--cat-color) 12%, var(--line));
}
.lf-category-section:last-of-type { margin-bottom: 80px; }

.lf-category-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; gap: 24px;
}

.lf-category-name {
  font-weight: 700;
  font-size: 28px; line-height: 1.2; letter-spacing: -.01em;
  color: var(--ink); margin: 0;
}

.lf-category-desc {
  font-size: 15.5px; color: var(--muted);
  margin: 6px 0 0; max-width: 52ch;
}

.lf-view-more {
  display: inline-block; font-weight: 600; font-size: 14.5px;
  color: var(--brand); white-space: nowrap; text-decoration: none;
  padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all .18s ease;
}
.lf-view-more:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

@media (max-width: 640px) {
  .lf-category-header { flex-direction: column; gap: 12px; }
  .lf-view-more { align-self: flex-start; }
}

/* ── Category Page ─────────────────────────────────────── */
.lf-category-page { padding: 40px 0 80px; }
.lf-category-title {
  font-weight: 700;
  font-size: 42px; line-height: 1.1; margin: 12px 0 10px;
}
.lf-category-lead {
  font-size: 19px; color: var(--muted);
  margin: 0 0 40px; max-width: 64ch;
}

.lf-section-label {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 4px;
}
.lf-guide-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--cat-color) 15%, var(--line));
}
.lf-guide-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius);
  padding: 20px 20px 18px; overflow: hidden;
  transition: background .18s ease;
  color: var(--ink);
  text-decoration: none;
}
.lf-guide-card:hover { background: color-mix(in srgb, var(--cat-color) 5%, transparent); }
.lf-guide-arrow {
  position: absolute; top: 14px; right: 14px;
  font-size: 16px; font-weight: 700; color: var(--cat-color, var(--brand));
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .18s ease, transform .18s ease;
}
.lf-guide-card:hover .lf-guide-arrow { opacity: 1; transform: translate(0, 0); }
.lf-guide-read { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; margin-bottom: 10px; }
.lf-guide-title {
  font-weight: 700; font-size: 21px; line-height: 1.25;
  letter-spacing: -.01em; margin: 0 0 8px; color: var(--ink);
}
.lf-guide-desc { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin: 0; flex: 1; }

/* ── Featured Card ─────────────────────────────────────── */
.lf-featured-card {
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden; color: var(--ink); margin-bottom: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration: none;
}
.lf-featured-card:hover { background: color-mix(in srgb, var(--cat-color) 4%, transparent); }
.lf-featured-card:hover .lf-guide-arrow { opacity: 1; transform: translate(0, 0); }

.lf-featured-image {
  background: color-mix(in srgb, var(--cat-color) 8%, var(--bg-soft));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; min-height: 240px;
}
.lf-featured-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

.lf-featured-content {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 28px 24px;
}
.lf-featured-title {
  font-weight: 700; font-size: 28px; line-height: 1.2;
  letter-spacing: -.01em; margin: 0 0 12px; color: var(--ink);
}
.lf-featured-desc { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; flex: 1; }

@media (max-width: 720px) {
  .lf-featured-card { grid-template-columns: 1fr; min-height: auto; }
  .lf-featured-image { min-height: 220px; }
  .lf-featured-content { padding: 22px 20px 18px; }
  .lf-featured-title { font-size: 23px; }
  .lf-featured-desc { font-size: 15px; }
}

.lf-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--hero);
  background: color-mix(in srgb, var(--hero) 12%, #fff);
  padding: 4px 10px; border-radius: 999px;
}

/* ── Article prose ─────────────────────────────────────── */
.lf-prose { max-width: 720px; margin: 0 auto; }
.lf-prose > * { margin-left: auto; margin-right: auto; max-width: 720px; }
.lf-prose h2 {
  font-weight: 700; font-size: 30px; line-height: 1.18;
  letter-spacing: -.01em; margin: 56px 0 14px; padding-top: 24px;
  color: #0f1117;
}
.lf-prose h3 { font-weight: 700; font-size: 21px; margin: 32px 0 10px; }
.lf-prose p { margin: 0 0 18px; }
.lf-prose ul, .lf-prose ol { margin: 0 0 18px; padding-left: 22px; }
.lf-prose li { margin: 6px 0; }
.lf-prose strong { color: var(--ink); font-weight: 750; }
.lf-prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.lf-prose a:hover { text-decoration-color: var(--brand); }
.lf-prose blockquote {
  margin: 26px 0; padding: 14px 22px; border-left: 4px solid var(--hero);
  background: var(--bg-soft); border-radius: 0 12px 12px 0; color: var(--ink); font-size: 17px;
}
.lf-prose img { border-radius: 12px; max-width: 100%; }
.lf-prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

/* ── CTA ───────────────────────────────────────────────── */
.lf-cta {
  margin-top: 80px; padding: 64px 0; text-align: center;
  background: linear-gradient(180deg, #0f1117, #1a1d27); color: #fff;
}
.lf-cta h2 { font-weight: 700; font-size: clamp(26px,3.6vw,38px); margin: 0 0 10px; color: #fff; }
.lf-cta p { color: #b9bdc9; max-width: 52ch; margin: 0 auto 26px; }
.lf-cta-btn { display: inline-block; background: #fff; color: var(--ink); font-weight: 700; padding: 13px 26px; border-radius: 12px; text-decoration: none; }
.lf-cta-btn:hover { transform: translateY(-2px); }

/* ── Explore (related articles) ────────────────────────── */
.lf-explore { max-width: 920px; margin: 60px auto 0; }
.lf-explore h2 { font-weight: 700; font-size: 27px; margin: 0 0 6px; }
.lf-explore-sub { color: var(--muted); margin: 0 0 22px; }
.lf-explore-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
.lf-explore-card {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 18px 44px;
  position: relative; color: var(--ink); transition: border-color .15s, background .15s;
  text-decoration: none;
}
.lf-explore-card:hover { border-color: var(--hero); background: var(--bg-soft); }
.lf-explore-arrow { position: absolute; left: 18px; top: 18px; color: var(--hero); font-weight: 700; }
.lf-explore-title { font-weight: 600; font-size: 16px; }
.lf-explore-desc { font-size: 14px; color: var(--muted); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
  .lf-category-section { padding: 20px 16px 18px; }
  .lf-hero { padding: 48px 0 28px; }
  .lf-prose h2 { font-size: 25px; }
}
