/* ============================================================
   LUMIA WELLNESS BGC — Blog System Styles
   Add this block to the bottom of style.css
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   BLOG ARCHIVE — Two-column layout with sidebar
───────────────────────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Updated blog-grid to be single column inside layout */
.blog-layout .blog-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ─────────────────────────────────────────────────────────────
   BLOG SIDEBAR
───────────────────────────────────────────────────────────── */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(229,144,143,0.15);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid rgba(229,144,143,0.25);
  position: relative;
}
.sidebar-widget__title::after {
  content: '';
  position: absolute;
  bottom: -1.5px; left: 0;
  width: 40px; height: 1.5px;
  background: var(--deep-rose);
}

/* Search */
.sidebar-search {
  display: flex;
  border: 1.5px solid rgba(229,144,143,0.35);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.sidebar-search:focus-within { border-color: var(--deep-rose); }
.sidebar-search input {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: none;
  outline: none;
  background: var(--white);
  color: var(--text-dark);
}
.sidebar-search input::placeholder { color: var(--text-light); }
.sidebar-search button {
  background: var(--deep-rose);
  color: var(--white);
  border: none;
  padding: 0 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.sidebar-search button:hover { background: var(--rose); }

/* Recent Posts */
.sidebar-recent { display: flex; flex-direction: column; gap: 16px; }
.sidebar-recent__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-recent__item:hover { transform: translateX(4px); }
.sidebar-recent__img {
  width: 66px; height: 66px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-recent__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sidebar-recent__item:hover .sidebar-recent__img img { transform: scale(1.07); }
.sidebar-recent__date {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 4px;
  margin-top: 2px;
}
.sidebar-recent__title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  transition: color var(--transition);
}
.sidebar-recent__item:hover .sidebar-recent__title { color: var(--deep-rose); }

/* Categories */
.sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-cats li { border-bottom: 1px solid rgba(229,144,143,0.12); }
.sidebar-cats li:first-child { border-top: 1px solid rgba(229,144,143,0.12); }
.sidebar-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 4px;
  font-size: 0.875rem;
  color: var(--text-mid);
  transition: color var(--transition), padding-left var(--transition);
}
.sidebar-cats a:hover { color: var(--deep-rose); padding-left: 6px; }
.sidebar-cats__count {
  background: rgba(229,144,143,0.15);
  color: var(--deep-rose);
  border-radius: 50px;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* Tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tag {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(229,144,143,0.1);
  border: 1px solid rgba(229,144,143,0.25);
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-tag:hover {
  background: var(--deep-rose);
  border-color: var(--deep-rose);
  color: var(--white);
}

/* CTA widget */
.sidebar-cta { background: var(--cream); }
.sidebar-cta__inner { text-align: center; }
.sidebar-cta__icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}
.sidebar-cta h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.sidebar-cta p {
  font-size: 0.84rem;
  margin-bottom: 16px;
  color: var(--text-mid);
}

/* ─────────────────────────────────────────────────────────────
   SINGLE POST PAGE
───────────────────────────────────────────────────────────── */
.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.single-post {
  background: var(--white);
}

.post-hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  display: block;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(229,144,143,0.2);
}
.post-meta-bar .meta-cat {
  display: inline-block;
  background: rgba(229,144,143,0.15);
  color: var(--deep-rose);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-meta-bar .meta-dot { width: 3px; height: 3px; background: var(--text-light); border-radius: 50%; }
.post-meta-bar .meta-item {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-meta-bar svg { flex-shrink: 0; }

.post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 32px;
}
.post-title em { font-style: italic; color: var(--deep-rose); }

/* Post body content */
.post-body {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text-mid);
}
.post-body h2 {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 36px 0 14px;
  line-height: 1.25;
}
.post-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 28px 0 10px;
  font-family: var(--font-body);
}
.post-body p { margin-bottom: 18px; }
.post-body ul,
.post-body ol {
  margin: 0 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; }
.post-body strong { color: var(--text-dark); font-weight: 600; }
.post-body a { color: var(--deep-rose); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--rose); }
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.post-body blockquote {
  border-left: 3px solid var(--deep-rose);
  background: var(--cream);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-mid);
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(229,144,143,0.2);
}
.post-tag {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(229,144,143,0.1);
  border: 1px solid rgba(229,144,143,0.25);
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.post-tag:hover {
  background: var(--deep-rose);
  border-color: var(--deep-rose);
  color: var(--white);
}

/* Share buttons */
.post-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(229,144,143,0.2);
  flex-wrap: wrap;
}
.post-share__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.post-share__btn--fb  { background: #1877F2; color: #fff; }
.post-share__btn--tw  { background: #1DA1F2; color: #fff; }
.post-share__btn--wa  { background: #25D366; color: #fff; }
.post-share__btn--copy { background: rgba(229,144,143,0.15); color: var(--deep-rose); border: 1px solid rgba(229,144,143,0.3); cursor: pointer; font-family: var(--font-body); }
.post-share__btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* Author box */
.post-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 36px;
  border: 1px solid rgba(229,144,143,0.15);
}
.post-author__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--deep-rose));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.post-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.post-author span {
  font-size: 0.78rem;
  color: var(--deep-rose);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.post-author p { font-size: 0.87rem; margin: 0; }

/* Related Posts */
.related-posts { margin-top: 56px; }
.related-posts h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ─────────────────────────────────────────────────────────────
   CATEGORY ARCHIVE PAGE
───────────────────────────────────────────────────────────── */
.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid rgba(229,144,143,0.2);
}
.category-header__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,144,143,0.15);
  color: var(--deep-rose);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.category-header h2 { margin: 0; font-size: 1.6rem; }
.category-header .count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* All categories nav (on blog archive) */
.blog-cats-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.blog-cats-nav a {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1.5px solid rgba(229,144,143,0.35);
  color: var(--text-mid);
  transition: var(--transition);
  text-decoration: none;
}
.blog-cats-nav a.active,
.blog-cats-nav a:hover {
  background: var(--deep-rose);
  color: var(--white);
  border-color: var(--deep-rose);
}

/* ─────────────────────────────────────────────────────────────
   SEARCH PAGE
───────────────────────────────────────────────────────────── */
.search-header {
  margin-bottom: 36px;
}
.search-header h2 { margin-bottom: 8px; }
.search-header p  { font-size: 0.9rem; color: var(--text-light); }
.search-header em { color: var(--deep-rose); font-style: normal; font-weight: 600; }

.search-bar-large {
  display: flex;
  border: 2px solid rgba(229,144,143,0.4);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 36px;
  transition: border-color var(--transition);
}
.search-bar-large:focus-within { border-color: var(--deep-rose); }
.search-bar-large input {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  outline: none;
  background: var(--white);
  color: var(--text-dark);
}
.search-bar-large button {
  background: var(--deep-rose);
  color: var(--white);
  border: none;
  padding: 0 28px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  transition: background var(--transition);
}
.search-bar-large button:hover { background: var(--rose); }

.no-results {
  text-align: center;
  padding: 64px 24px;
}
.no-results .icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { font-size: 1.5rem; margin-bottom: 12px; }
.no-results p { color: var(--text-light); max-width: 400px; margin: 0 auto 28px; }

/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}
.blog-pagination a,
.blog-pagination span {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.blog-pagination a {
  border: 1.5px solid rgba(198,98,100,0.3);
  color: var(--text-mid);
}
.blog-pagination a:hover {
  background: var(--deep-rose);
  border-color: var(--deep-rose);
  color: var(--white);
}
.blog-pagination span {
  background: var(--deep-rose);
  color: var(--white);
}
.blog-pagination .dots {
  width: auto; height: auto;
  border: none;
  color: var(--text-light);
  cursor: default;
}

/* ─────────────────────────────────────────────────────────────
   BLOG RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .blog-layout,
  .single-post-layout {
    grid-template-columns: 1fr 300px;
    gap: 36px;
  }
}
@media (max-width: 900px) {
  .blog-layout,
  .single-post-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
  }
  .blog-layout .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid { grid-template-columns: 1fr; }
  .post-hero-img { height: 280px; }
}
@media (max-width: 600px) {
  .blog-layout .blog-grid { grid-template-columns: 1fr; }
  .post-share { gap: 10px; }
  .post-author { flex-direction: column; }
}
