/* ================================================================
   Soulful Science — Blog & Quote of the Day CSS
   /public_html/assets/css/blog.css
   ================================================================ */

/* ── Shared tokens (mirror site.css) ────────────────────────────────────── */
:root {
  --sage:        #3f6b52;
  --sage-mid:    #4f8a5e;
  --sage-light:  #e3f0e6;
  --cream:       #faf8f4;
  --warm-gray:   #f4f2ee;
  --text:        #1f2d24;
  --text-muted:  #7a7a7a;
  --border:      #e0ddd7;
  --white:       #ffffff;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', sans-serif;
  --radius:      10px;
  --shadow:      0 2px 12px rgba(0,0,0,.07);
}

/* ── Blog Header ─────────────────────────────────────────────────────────── */
.blog-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
  margin-top: 72px; /* navbar height */
}

.blog-header-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: .5rem;
}

.blog-header-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Shell Layout ────────────────────────────────────────────────────────── */
.blog-shell {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

@media (max-width: 900px) {
  .blog-shell { grid-template-columns: 1fr; }
  .blog-sidebar-col { order: -1; }
}

/* ── Featured Post ───────────────────────────────────────────────────────── */
.blog-featured {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
}

.blog-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage), var(--sage-mid));
}

.blog-featured-inner {
  padding: 2.5rem;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.blog-tag {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sage);
  background: var(--sage-light);
  padding: .25em .7em;
  border-radius: 4px;
}

.blog-date {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--text-muted);
}

.blog-author {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--text-muted);
}

.blog-featured-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.blog-featured-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.blog-featured-title a:hover { color: var(--sage); }

.blog-featured-excerpt {
  font-family: var(--font-sans);
  font-size: .975rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.blog-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

.blog-read-more {
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  transition: color .2s;
}
.blog-read-more:hover { color: var(--sage-mid); }

/* ── Divider Label ───────────────────────────────────────────────────────── */
.blog-divider-label {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

/* ── Post Grid ───────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.blog-card-meta { margin-bottom: .6rem; }

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .75rem;
  flex: 1;
}

.blog-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.blog-card-title a:hover { color: var(--sage); }

.blog-card-excerpt {
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-card-link {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
}
.blog-card-link:hover { color: var(--sage-mid); }

.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.sidebar-widget-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-widget-text {
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.sidebar-cta {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
}
.sidebar-cta:hover { color: var(--sage-mid); }

/* Sidebar quote widget */
.sidebar-quote { background: var(--sage-light); border-color: var(--sage-mid); }
.sidebar-quote-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: .5rem;
  border: none;
  padding: 0;
}
.sidebar-quote-mark {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: .5;
  color: var(--sage);
  opacity: .4;
  display: block;
  margin-bottom: .25rem;
}
.sidebar-quote-author {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: .75rem;
}
.sidebar-quote-link {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
}

/* Sidebar post list */
.sidebar-post-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .85rem;
}
.sidebar-post-list li { border-bottom: 1px solid var(--border); padding-bottom: .85rem; }
.sidebar-post-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post-list a {
  font-family: var(--font-sans);
  font-size: .875rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: .2rem;
  line-height: 1.4;
}
.sidebar-post-list a:hover { color: var(--sage); }
.sidebar-post-date {
  font-size: .75rem;
  color: var(--text-muted);
}

/* Sidebar CTA widget */
.sidebar-cta-widget { background: var(--sage); border-color: var(--sage); }
.sidebar-cta-widget .sidebar-widget-title { color: #fff; border-color: rgba(255,255,255,.2); }
.sidebar-cta-widget .sidebar-widget-text  { color: rgba(255,255,255,.85); }

.btn-sage {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--sage);
  background: var(--white);
  border: 1px solid var(--white);
  padding: .6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
}
.btn-sage:hover { background: var(--sage-light); border-color: var(--sage-light); }

/* ── Post Header ─────────────────────────────────────────────────────────── */
.post-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem 3rem;
  margin-top: 72px;
}

.post-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.post-back {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  transition: color .2s;
}
.post-back:hover { color: var(--sage); }

.post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: .75rem;
}

.post-excerpt {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* ── Post Body ───────────────────────────────────────────────────────────── */
.post-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.post-body h1, .post-body h2, .post-body h3,
.post-body h4, .post-body h5, .post-body h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 .75rem;
  line-height: 1.3;
}
.post-body h2 { font-size: 1.75rem; }
.post-body h3 { font-size: 1.4rem; }

.post-body p { margin-bottom: 1.25rem; }

.post-body a { color: var(--sage); text-decoration: underline; }
.post-body a:hover { color: var(--sage-mid); }

.post-body blockquote {
  border-left: 3px solid var(--sage);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--sage-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
}

.post-body ul, .post-body ol {
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
}
.post-body li { margin-bottom: .4rem; }

.post-body pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: .875rem;
}
.post-body code {
  background: var(--warm-gray);
  padding: .15em .4em;
  border-radius: 4px;
  font-size: .875em;
}
.post-body pre code { background: none; padding: 0; }

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.post-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* ── Post Footer ─────────────────────────────────────────────────────────── */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-bottom: 2rem;
}

/* ── Quote of the Day Hero ───────────────────────────────────────────────── */
.qotd-hero {
  background: var(--cream);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  margin-top: 72px;
  text-align: center;
}

.qotd-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.qotd-icon { margin-bottom: 1.5rem; }

.qotd-label {
  font-family: var(--font-sans);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.qotd-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  margin-bottom: 2rem;
  position: relative;
}

.qotd-mark {
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: .6;
  color: var(--sage);
  opacity: .15;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
}

.qotd-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.qotd-author {
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--text-muted);
  display: block;
  letter-spacing: .04em;
}

.qotd-blog-link {
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--sage);
  text-decoration: none;
  display: inline-block;
  margin-top: .5rem;
  transition: color .2s;
}
.qotd-blog-link:hover { color: var(--sage-mid); }

/* ── More Quotes Grid ────────────────────────────────────────────────────── */
.qotd-more {
  background: var(--warm-gray);
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.qotd-more-inner { max-width: 1100px; margin: 0 auto; }

.qotd-more-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 2.5rem;
}

.qotd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.qotd-grid-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.qotd-grid-mark {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: .8;
  color: var(--sage);
  opacity: .3;
  margin-bottom: .5rem;
}

.qotd-grid-body {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: .75rem;
}

.qotd-grid-author {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── Quote CTA ───────────────────────────────────────────────────────────── */
.qotd-cta {
  background: var(--sage);
  padding: 4rem 1.5rem;
  text-align: center;
}

.qotd-cta-inner { max-width: 560px; margin: 0 auto; }

.qotd-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: .75rem;
}

.qotd-cta p {
  font-family: var(--font-sans);
  font-size: .975rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.qotd-empty {
  font-family: var(--font-sans);
  color: var(--text-muted);
  padding: 2rem;
}

/* ── Additional button variants ─────────────────────────────────────────── */
.btn-sage-white {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--sage);
  background: var(--white);
  border: 1px solid var(--white);
  padding: .6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
}
.btn-sage-white:hover { background: var(--sage-light); border-color: var(--sage-light); }

.btn-sage-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--sage);
  background: transparent;
  border: 1px solid var(--sage);
  padding: .6rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s;
}
.btn-sage-outline:hover { background: var(--sage-light); }
