/* === SITE NAV === */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--bg-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.nav-brand {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-deep) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

/* === BLOG HERO === */
.blog-hero {
  padding: 72px 0 60px;
  background: linear-gradient(175deg, var(--bg) 0%, var(--bg-warm) 60%, var(--lavender-light) 100%);
}
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--fg);
  margin-bottom: 16px;
}
.blog-hero h1 em { font-style: italic; color: var(--accent-deep); }
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
  font-weight: 500;
}
.blog-hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.8;
}

/* === BLOG BODY LAYOUT === */
.blog-body { padding: 48px 0 80px; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* === CATEGORY PILLS === */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.pill {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--bg-accent);
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.pill:hover, .pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* === POST GRID === */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.post-card {
  border: 1.5px solid var(--bg-accent);
  border-radius: var(--radius);
  background: white;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
.post-card-inner { padding: 28px; }
.post-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.post-category-tag.anxiety  { background: var(--lavender-light); color: #6b5c8a; }
.post-category-tag.depression { background: var(--sage-light); color: #4a6e4a; }
.post-category-tag.stress   { background: var(--accent-soft); color: var(--accent-deep); }
.post-category-tag.selfcare, .post-category-tag.self-care { background: #fde8c8; color: #8a5a00; }
.post-card-title {
  font-size: 1.05rem;
  font-family: 'Lora', serif;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
}
.post-card-title a {
  color: var(--fg);
  text-decoration: none;
}
.post-card-title a:hover { color: var(--accent-deep); }
.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.post-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--fg-light);
  margin-bottom: 16px;
}
.post-read-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}
.post-read-link:hover { color: var(--accent); }

/* === SIDEBAR === */
.blog-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card {
  background: white;
  border: 1.5px solid var(--bg-accent);
  border-radius: var(--radius);
  padding: 24px;
}
.worksheet-cta { background: var(--bg-warm); border-color: var(--accent-soft); }
.worksheet-icon { font-size: 2rem; margin-bottom: 12px; }
.sidebar-card h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--fg);
}
.sidebar-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-full { display: block; text-align: center; }
.btn-large { padding: 14px 32px; font-size: 1rem; }
.sidebar-topics { list-style: none; }
.sidebar-topics li { border-bottom: 1px solid var(--bg-accent); }
.sidebar-topics li:last-child { border-bottom: none; }
.sidebar-topics a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.sidebar-topics a:hover { color: var(--accent-deep); }
.topic-arrow { opacity: 0.5; }

/* === POST HERO === */
.post-hero {
  padding: 60px 0 48px;
  background: linear-gradient(175deg, var(--bg) 0%, var(--bg-warm) 70%);
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--fg-light);
  margin-bottom: 16px;
}
.post-breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
}
.post-breadcrumb a:hover { color: var(--accent-deep); }
.post-hero-inner { max-width: 780px; }
.post-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--fg);
  margin: 12px 0 20px;
  line-height: 1.25;
}
.post-meta {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--fg-light);
  align-items: center;
}

/* === POST BODY === */
.post-body-wrap { padding: 48px 0 80px; }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--fg);
  max-width: 680px;
}
.post-content h2 {
  font-size: 1.35rem;
  margin: 40px 0 16px;
  color: var(--fg);
}
.post-content h3 {
  font-size: 1.1rem;
  margin: 30px 0 12px;
  color: var(--fg);
}
.post-content p { margin-bottom: 20px; }
.post-content .post-lead {
  font-size: 1.15rem;
  color: var(--fg-muted);
  font-style: italic;
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--accent-soft);
}
.post-content ul, .post-content ol {
  margin: 0 0 20px 20px;
}
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--accent-deep); }
.post-content a:hover { color: var(--accent); }
.post-cta {
  background: var(--bg-warm);
  border: 1.5px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--fg-muted);
}
.post-cta a { color: var(--accent-deep); font-weight: 600; }
.sticky-sidebar { position: sticky; top: 84px; }
.related-posts { display: flex; flex-direction: column; gap: 12px; }
.related-post {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-accent);
  text-decoration: none;
}
.related-post:last-child { border-bottom: none; }
.related-title {
  font-size: 0.875rem;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 4px;
  font-weight: 500;
}
.related-meta { font-size: 0.775rem; color: var(--fg-light); }

/* === WORKSHEET PAGE === */
.worksheet-hero {
  padding: 72px 0 60px;
  background: linear-gradient(175deg, var(--bg) 0%, var(--lavender-light) 60%, var(--bg-warm) 100%);
}
.worksheet-hero-inner { max-width: 600px; }
.worksheet-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--fg);
  margin-bottom: 16px;
}
.worksheet-hero h1 em { font-style: italic; color: var(--accent-deep); }
.worksheet-body { padding: 60px 0 80px; }
.worksheet-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.worksheet-card-preview {
  background: white;
  border: 1.5px solid var(--bg-accent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent-soft);
}
.preview-logo {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--accent-deep);
  font-weight: 600;
}
.preview-title {
  font-size: 0.8rem;
  color: var(--fg-light);
  font-weight: 500;
}
.preview-sections { display: flex; flex-direction: column; gap: 20px; }
.preview-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.preview-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.preview-label { font-size: 0.75rem; color: var(--fg-muted); white-space: nowrap; }
.preview-blank {
  flex: 1;
  height: 1px;
  background: var(--bg-accent);
  border-bottom: 1px dotted var(--bg-accent);
}
.preview-blank-lg {
  height: 40px;
  border: 1px dotted var(--bg-accent);
  border-radius: 6px;
}
.preview-mood-scale {
  display: flex;
  gap: 8px;
}
.mood-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.mood-1 { background: #fde8e8; color: #a00; }
.mood-2 { background: #fdf0e0; color: #845000; }
.mood-3 { background: var(--sage-light); color: #3a5e3a; }
.mood-4 { background: var(--lavender-light); color: #5a4a7a; }
.mood-5 { background: #d4edda; color: #1a5c2a; }
.preview-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-light);
  margin-top: 16px;
}
.worksheet-form-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--fg);
}
.worksheet-features { list-style: none; margin-bottom: 40px; }
.worksheet-features li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.feature-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.worksheet-features strong { display: block; margin-bottom: 4px; color: var(--fg); }
.worksheet-features p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; margin: 0; }
.download-box { text-align: center; }
.download-note {
  font-size: 0.8rem;
  color: var(--fg-light);
  margin-top: 12px;
}
.blog-promo {
  padding: 60px 0;
  background: var(--bg-warm);
  text-align: center;
}
.blog-promo h2 { font-size: 1.5rem; margin-bottom: 8px; }
.blog-promo p { color: var(--fg-muted); margin-bottom: 24px; }
.blog-promo-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.promo-link {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 0;
}
.promo-link:hover { color: var(--accent); }

/* === EMPTY STATE === */
.empty-state {
  padding: 60px 0;
  color: var(--fg-muted);
  font-size: 1rem;
}

/* === 404 === */
.not-found {
  padding: 120px 0;
  text-align: center;
}
.not-found h1 { font-size: 3rem; margin-bottom: 16px; }
.not-found p { color: var(--fg-muted); margin-bottom: 32px; }

/* === LANDING PAGE NAV INTEGRATION === */
/* Override: landing page no longer uses sticky nav separately */
.hero { padding-top: 80px; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .blog-layout, .post-layout, .worksheet-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar, .post-sidebar { order: -1; }
  .sticky-sidebar { position: static; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--bg-accent); padding: 16px 24px; gap: 16px; z-index: 99; }
  .nav-open .nav-links { display: flex; }
  .nav-hamburger { display: flex; }
  .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .blog-hero, .post-hero, .worksheet-hero { padding: 48px 0 40px; }
  .worksheet-layout { gap: 40px; }
}
