/* ═══════════════════════════════════════════════════════════════════
   GARBHSANSKAAR.COM — Blog Content Styles
   File: assets/css/blog-content.css
   Link in <head>: <link rel="stylesheet" href="assets/css/blog-content.css"/>
   All classes are applied automatically by beautify_blog() in PHP.
   Uses CSS variables from common.css — no conflicts.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Outer wrapper ─────────────────────────────────────────────── */
.blog-content {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body, #4A1A2C);
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── Headings ──────────────────────────────────────────────────── */
.blog-content .blog-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--rose-dark, #7D0036);
  line-height: 1.2;
  margin: 2.4rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--rose-light, #FFD6E7);
}

.blog-content .blog-h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--rose-dark, #7D0036);
  line-height: 1.3;
  margin: 2.6rem 0 0.9rem;
  padding-left: 16px;
  border-left: 4px solid var(--rose, #B5004E);
  position: relative;
}

.blog-content .blog-h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--rose-dark, #7D0036);
  line-height: 1.35;
  margin: 2rem 0 0.7rem;
  padding-left: 14px;
  border-left: 3px solid var(--gold, #C9973A);
}

.blog-content .blog-h4 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--rose-dark, #7D0036);
  margin: 1.8rem 0 0.6rem;
}

.blog-content .blog-h5,
.blog-content .blog-h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rose, #B5004E);
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

/* Prevent double margin when heading immediately follows another heading */
.blog-content .blog-h2 + .blog-h3,
.blog-content .blog-h3 + .blog-h4 {
  margin-top: 0.8rem;
}

/* ── Paragraphs ────────────────────────────────────────────────── */
.blog-content .blog-p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text-body, #4A1A2C);
  margin: 0 0 1.3rem;
}

/* Drop-cap on the first paragraph */
.blog-content .blog-p--dropcap::first-letter {
  font-family: 'Playfair Display', 'Poppins', serif;
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--rose, #B5004E);
  float: left;
  line-height: 0.75;
  margin: 0.12em 0.12em 0 0;
  padding: 0.05em 0.08em;
  background: var(--rose-pale, #FFF0F5);
  border-radius: 6px;
}

/* ── Lists ─────────────────────────────────────────────────────── */
.blog-content .blog-ul,
.blog-content .blog-ol {
  margin: 0 0 1.4rem 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-content .blog-li {
  font-size: 0.93rem;
  color: var(--text-body, #4A1A2C);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--rose-pale, #FFF0F5);
  border-radius: 10px;
  border-left: 3px solid var(--rose-light, #FFD6E7);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.blog-content .blog-li:hover {
  border-left-color: var(--rose, #B5004E);
  background: var(--rose-light, #FFD6E7);
}

/* Bullet for ul */
.blog-content .blog-ul > .blog-li::before {
  content: '🌸';
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 3px;
  line-height: 1;
}

/* Number for ol — use CSS counter */
.blog-content .blog-ol {
  counter-reset: blog-ol-counter;
}
.blog-content .blog-ol > .blog-li {
  counter-increment: blog-ol-counter;
}
.blog-content .blog-ol > .blog-li::before {
  content: counter(blog-ol-counter);
  background: var(--rose, #B5004E);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Nested lists */
.blog-content .blog-li > .blog-ul,
.blog-content .blog-li > .blog-ol {
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 16px;
}

/* ── Links ─────────────────────────────────────────────────────── */
.blog-content .blog-link {
  color: var(--rose, #B5004E);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--rose-light, #FFD6E7);
  transition: border-color 0.2s ease, color 0.2s ease;
  padding-bottom: 1px;
}
.blog-content .blog-link:hover {
  color: var(--rose-dark, #7D0036);
  border-bottom-color: var(--rose, #B5004E);
}

/* ── Inline elements ───────────────────────────────────────────── */
.blog-content .blog-strong {
  font-weight: 700;
  color: var(--rose-dark, #7D0036);
}

.blog-content .blog-em {
  font-style: italic;
  color: var(--text-muted, #8B5870);
}

.blog-content .blog-code {
  background: var(--rose-pale, #FFF0F5);
  color: var(--rose-dark, #7D0036);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--rose-light, #FFD6E7);
}

.blog-content .blog-pre {
  background: var(--text-dark, #1E0A14);
  color: #f8f8f2;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.88rem;
  padding: 20px 22px;
  border-radius: 14px;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.6;
}
.blog-content .blog-pre .blog-code {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* ── Blockquote ────────────────────────────────────────────────── */
.blog-content .blog-blockquote {
  margin: 1.8rem 0;
  padding: 22px 24px 22px 28px;
  background: linear-gradient(135deg, var(--rose-pale, #FFF0F5), #fff);
  border-left: 5px solid var(--rose, #B5004E);
  border-radius: 0 14px 14px 0;
  position: relative;
  box-shadow: 0 3px 16px rgba(181, 0, 78, 0.08);
}
.blog-content .blog-blockquote::before {
  content: '\201C';            /* left double quotation mark */
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--rose-light, #FFD6E7);
  position: absolute;
  top: -12px;
  left: 16px;
  line-height: 1;
  pointer-events: none;
}
.blog-content .blog-blockquote p,
.blog-content .blog-blockquote .blog-p {
  font-style: italic;
  font-size: 1rem;
  color: var(--rose-dark, #7D0036);
  line-height: 1.8;
  margin: 0;
  position: relative;
  z-index: 1;
}
.blog-content .blog-blockquote cite,
.blog-content .blog-blockquote footer {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #8B5870);
  font-style: normal;
}
.blog-content .blog-blockquote cite::before { content: '— '; }

/* ── HR / divider ──────────────────────────────────────────────── */
.blog-content .blog-hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose-light, #FFD6E7) 20%, var(--rose-light, #FFD6E7) 80%, transparent);
  margin: 2.5rem 0;
  border-radius: 2px;
}

/* ── Images ────────────────────────────────────────────────────── */
.blog-content .blog-figure {
  margin: 1.8rem 0;
  text-align: center;
}

.blog-content .blog-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-content .blog-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(181, 0, 78, 0.18);
}

.blog-content .blog-figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted, #8B5870);
  font-style: italic;
  line-height: 1.5;
}

/* ── Tables ────────────────────────────────────────────────────── */
.blog-content .blog-table-wrap {
  overflow-x: auto;
  margin: 1.8rem 0;
  border-radius: 14px;
  box-shadow: 0 3px 16px rgba(181, 0, 78, 0.08);
}
.blog-content .blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 400px;
}
.blog-content .blog-table th {
  background: linear-gradient(135deg, var(--rose-dark, #7D0036), var(--rose, #B5004E));
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.blog-content .blog-table th:first-child { border-radius: 14px 0 0 0; }
.blog-content .blog-table th:last-child  { border-radius: 0 14px 0 0; }
.blog-content .blog-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--rose-pale, #FFF0F5);
  color: var(--text-body, #4A1A2C);
  line-height: 1.6;
}
.blog-content .blog-table tr:nth-child(even) td {
  background: var(--rose-pale, #FFF0F5);
}
.blog-content .blog-table tr:last-child td:first-child { border-radius: 0 0 0 14px; }
.blog-content .blog-table tr:last-child td:last-child  { border-radius: 0 0 14px 0; }
.blog-content .blog-table tr:hover td {
  background: var(--rose-light, #FFD6E7);
}

/* ── Callout Boxes (auto-detected from NOTE: TIP: etc.) ─────────── */
.blog-content .blog-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 14px;
  margin: 1.6rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
  border: 1.5px solid transparent;
}
.blog-content .blog-callout__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.blog-content .blog-callout__body {
  flex: 1;
  color: inherit;
}
.blog-content .blog-callout__body p,
.blog-content .blog-callout__body .blog-p {
  margin: 0;
  color: inherit;
  background: none;
  padding: 0;
}

/* NOTE — blue */
.blog-content .blog-callout--note {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1E40AF;
}
/* TIP — green */
.blog-content .blog-callout--tip {
  background: #F0FDF4;
  border-color: #86EFAC;
  color: #166534;
}
/* IMPORTANT — rose/red */
.blog-content .blog-callout--important {
  background: var(--rose-pale, #FFF0F5);
  border-color: var(--rose-light, #FFD6E7);
  color: var(--rose-dark, #7D0036);
}
/* WARNING — amber */
.blog-content .blog-callout--warning {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: #92400E;
}
/* DID YOU KNOW — rose pale */
.blog-content .blog-callout--fact {
  background: linear-gradient(135deg, var(--rose-pale, #FFF0F5), var(--gold-light, #F5E0B0));
  border-color: var(--gold, #C9973A);
  color: var(--rose-dark, #7D0036);
}
/* REMEMBER — gold */
.blog-content .blog-callout--remember {
  background: var(--gold-light, #F5E0B0);
  border-color: var(--gold, #C9973A);
  color: #5D4E00;
}
/* HEALTH TIP — teal */
.blog-content .blog-callout--health {
  background: #F0FDF4;
  border-color: #6EE7B7;
  color: #065F46;
}
/* VEDIC WISDOM — purple-rose */
.blog-content .blog-callout--vedic {
  background: linear-gradient(135deg, #FDF4FF, #FAF5FF);
  border-color: #D8B4FE;
  color: #581C87;
}

/* ── Responsive tweaks ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .blog-content .blog-h1 { font-size: 1.6rem; }
  .blog-content .blog-h2 { font-size: 1.25rem; }
  .blog-content .blog-h3 { font-size: 1.05rem; }
  .blog-content .blog-p  { font-size: 0.93rem; }
  .blog-content .blog-p--dropcap::first-letter { font-size: 2.8rem; }
  .blog-content .blog-blockquote { padding: 16px 16px 16px 20px; }
  .blog-content .blog-li { padding: 9px 12px; }
}
