/* ========== Blog Styles for Remi ========== */
/* Shares design tokens with main site */

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

:root {
  --blue: #93B5C6;
  --blue-dark: #7A9DB0;
  --blue-soft: #E4EEF3;
  --peach: #F2C4A4;
  --peach-soft: #FEF0E6;
  --rose: #D4B5C0;
  --navy: #2C3E50;
  --cream: #FEFAF7;
  --beige: #FEF6EE;
  --text: #2C3E50;
  --text-muted: #5a6978;
  --text-light: #8a9baa;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Nunito', 'Plus Jakarta Sans', sans-serif; line-height: 1.3; }

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ========== Blog Header ========== */
.blog-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 16px 0;
}

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

.blog-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.blog-header-logo img {
  height: 36px;
}

.blog-header-logo span {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
}

.blog-header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.blog-header-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-header-nav a:hover { color: var(--navy); text-decoration: none; }

.blog-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--blue-dark);
  color: var(--white) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-header-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(122,157,176,0.35);
  text-decoration: none !important;
}

/* ========== Blog Index ========== */
.blog-hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--blue-soft) 100%);
  padding: 60px 0 50px;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Category filters */
.blog-categories {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 24px 0;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.cat-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--blue-soft);
  color: var(--blue-dark);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
}

/* Post grid */
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.post-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--blue-soft);
}

.post-card-body {
  padding: 20px 22px 24px;
}

.post-card-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--peach-soft);
  color: #c48a5c;
  margin-bottom: 10px;
}

.post-card-cat.sleep { background: var(--blue-soft); color: var(--blue-dark); }
.post-card-cat.feeding { background: var(--peach-soft); color: #c48a5c; }
.post-card-cat.milestones { background: #f0e6f6; color: #8b5ca0; }
.post-card-cat.diapers { background: #e6f6ee; color: #4a9b6e; }
.post-card-cat.tips { background: #fef3e2; color: #b8860b; }

.post-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.post-card-meta {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ========== Individual Post ========== */
.post-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.82rem;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.breadcrumbs a { color: var(--blue-dark); }
.breadcrumbs span { margin: 0 6px; }

/* Post header */
.post-head {
  padding: 30px 0 20px;
}

.post-head .post-card-cat {
  margin-bottom: 14px;
}

.post-head h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Post content */
.post-content {
  padding: 10px 0 40px;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 14px;
}

.post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 10px;
}

.post-content p {
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.post-content ul, .post-content ol {
  margin: 0 0 18px 24px;
  color: var(--text-muted);
  line-height: 1.75;
}

.post-content li {
  margin-bottom: 6px;
  list-style: disc;
}

.post-content ol li { list-style: decimal; }

.post-content strong { color: var(--navy); }

.post-content blockquote {
  border-left: 4px solid var(--peach);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Disclaimer box */
.disclaimer {
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 30px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--blue-dark);
}

/* CTA box */
.post-cta {
  background: linear-gradient(135deg, var(--cream) 0%, var(--blue-soft) 100%);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 36px 0;
  text-align: center;
}

.post-cta h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.post-cta p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.post-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-cta .cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(122,157,176,0.35);
  text-decoration: none;
}

/* FAQ section */
.faq-section {
  margin: 36px 0;
}

.faq-section h2 {
  margin-bottom: 18px;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.faq-a {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Related posts */
.related-posts {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.related-posts h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--navy);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* ========== Blog Footer ========== */
.blog-footer {
  background: var(--cream);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 32px 0;
  text-align: center;
}

.blog-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-footer p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-footer a {
  color: var(--blue-dark);
  font-weight: 600;
}

.blog-footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 12px;
}

.blog-footer-links a {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ========== Table of Contents ========== */
.toc {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0 30px;
}

.toc-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.toc ul {
  margin: 0;
  padding: 0;
}

.toc li {
  list-style: none;
  margin-bottom: 6px;
}

.toc a {
  font-size: 0.9rem;
  color: var(--blue-dark);
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-header-nav { display: none; }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .post-head h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .blog-categories {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .cat-pill { white-space: nowrap; }
}
