/* ============================================================
   GlowDailyHub — Page-Specific Styles (pages.css)
   Layout and structure for each page type.
   ============================================================ */


/* ─── GENERAL PAGE ─────────────────────────────────────────── */
.page {
  padding-top: 72px; /* navbar height */
  min-height: 100vh;
}

@media (max-width: 768px) {
  .page {
    padding-top: 64px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE (.page-home)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero Slider ──────────────────────────────────────────── */
.page-home .hero-slider {
  border-bottom: 1px solid #F0F0F0;
}

/* ─── Trending Section ─────────────────────────────────────── */
.page-home .trending-section {
  padding: var(--space-3xl) 0;
  background: var(--cloud);
}

.page-home .trending-section .carousel__item .card {
  height: 100%;
}

/* ─── Collections Section ──────────────────────────────────── */
.page-home .collections-section {
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.page-home .collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .page-home .collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-home .collections-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Category Sections ────────────────────────────────────── */
.page-home .category-section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.page-home .category-section:nth-child(even) {
  background: var(--white);
}

.page-home .category-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid rgba(0, 0, 0, 0.04);
}

.page-home .category-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.page-home .category-section__icon {
  font-size: 1.3em;
}

.page-home .category-section__subtitle {
  font-size: var(--text-base);
  color: var(--smoke);
  margin-top: var(--space-xs);
}

.page-home .category-section__view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  transition: all var(--transition-fast);
}

.page-home .category-section__view-all:hover {
  gap: 10px;
}

/* Category accent colors */
.page-home .category-section--room .category-section__header {
  border-bottom-color: rgba(212, 168, 83, 0.2);
}

.page-home .category-section--room .category-section__view-all {
  color: var(--cat-room);
}

.page-home .category-section--hair .category-section__header {
  border-bottom-color: rgba(233, 69, 96, 0.2);
}

.page-home .category-section--hair .category-section__view-all {
  color: var(--cat-hair);
}

.page-home .category-section--nail .category-section__header {
  border-bottom-color: rgba(167, 139, 250, 0.2);
}

.page-home .category-section--nail .category-section__view-all {
  color: var(--cat-nail);
}

/* ─── Latest Section ───────────────────────────────────────── */
.page-home .latest-section {
  padding: var(--space-3xl) 0;
  background: var(--cloud);
}

.page-home .latest-section .masonry--css {
  columns: 4;
}

@media (max-width: 1024px) {
  .page-home .latest-section .masonry--css {
    columns: 3;
  }
}

@media (max-width: 640px) {
  .page-home .latest-section .masonry--css {
    columns: 2;
  }
}

/* ─── Pinterest CTA Section ────────────────────────────────── */
.page-home .pinterest-cta-section {
  padding: var(--space-2xl) 0;
}

/* ─── Newsletter Section ───────────────────────────────────── */
.page-home .newsletter-section {
  padding: 0 0 var(--space-3xl);
}


/* ═══════════════════════════════════════════════════════════════
   CATEGORY PAGE (.page-category)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Category Hero ────────────────────────────────────────── */
.category-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(
    135deg,
    var(--midnight, #1A1A2E) 0%,
    var(--deep-navy, #16213E) 50%,
    color-mix(in srgb, var(--cat-accent, #E94560) 20%, #1A1A2E) 100%
  );
}

.category-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.category-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.4) 0%,
    rgba(26, 26, 46, 0.65) 100%
  );
}

/* Gradient-only hero (no image) */
.category-hero--room {
  background: linear-gradient(135deg, #2C1810 0%, #3D2914 50%, #1A1A2E 100%);
}

.category-hero--hair {
  background: linear-gradient(135deg, #2E1318 0%, #3D1420 50%, #1A1A2E 100%);
}

.category-hero--nail {
  background: linear-gradient(135deg, #1E1430 0%, #2A1B42 50%, #1A1A2E 100%);
}

.category-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.category-hero__icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.category-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: var(--white);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-hero__description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin: 0 auto var(--space-lg);
  line-height: 1.6;
}

.category-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}

.category-hero__stat {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

.category-hero__stat-value {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--white);
  margin-bottom: 2px;
}

.category-hero__follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-hero__follow-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.category-hero__follow-btn.following {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
}

@media (max-width: 1024px) {
  .category-hero {
    min-height: 35vh;
  }

  .category-hero__title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 640px) {
  .category-hero {
    min-height: 30vh;
    padding: var(--space-2xl) var(--space-md);
  }

  .category-hero__icon {
    font-size: 2.5rem;
  }

  .category-hero__title {
    font-size: var(--text-2xl);
  }

  .category-hero__description {
    font-size: var(--text-base);
  }

  .category-hero__stats {
    gap: var(--space-lg);
  }
}

/* ─── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  position: sticky;
  top: 72px;
  z-index: calc(var(--z-sticky) - 1);
  background: rgba(250, 247, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-md) 0;
  transition: top var(--transition-base);
}

@media (max-width: 768px) {
  .filter-bar {
    top: 64px;
  }
}

.filter-bar__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.filter-bar__pills {
  flex: 1;
  min-width: 0;
}

.filter-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.filter-bar__sort {
  position: relative;
}

.filter-bar__sort-select {
  appearance: none;
  padding: 8px 32px 8px 14px;
  background: var(--white);
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--charcoal);
  cursor: pointer;
  transition: border-color var(--transition-fast);
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-bar__sort-select:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.filter-bar__search {
  position: relative;
}

.filter-bar__search-input {
  padding: 8px 14px 8px 36px;
  background: var(--white);
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--charcoal);
  width: 180px;
  transition: all var(--transition-fast);
  outline: none;
}

.filter-bar__search-input::placeholder {
  color: var(--smoke-light);
}

.filter-bar__search-input:focus {
  border-color: var(--accent-rose);
  width: 240px;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.filter-bar__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--smoke-light);
  pointer-events: none;
}

.filter-bar__search-icon svg {
  width: 16px;
  height: 16px;
}

.filter-bar__view-toggle {
  display: flex;
  gap: 2px;
  background: var(--white);
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-full);
  padding: 2px;
}

.filter-bar__view-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--smoke);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-bar__view-btn.active {
  background: var(--accent-rose);
  color: var(--white);
}

.filter-bar__view-btn:hover:not(.active) {
  background: var(--soft-blush);
}

@media (max-width: 768px) {
  .filter-bar__container {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
  }

  .filter-bar__actions {
    justify-content: space-between;
  }

  .filter-bar__search-input {
    width: 140px;
  }

  .filter-bar__search-input:focus {
    width: 180px;
  }
}

/* ─── Category Content Area ────────────────────────────────── */
.category-content {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.category-content__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* Main + Sidebar layout */
.category-content--sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
}

.category-content__sidebar {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .category-content--sidebar {
    grid-template-columns: 1fr;
  }

  .category-content__sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .category-content__sidebar {
    grid-template-columns: 1fr;
  }
}

/* Empty state */
.category-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.category-empty__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.category-empty__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.category-empty__text {
  color: var(--smoke);
  max-width: 400px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════════
   ARTICLE PAGE (.page-article)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Article Header ───────────────────────────────────────── */
.article-header {
  padding: 6px 0 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.article-header__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: #111111;
  line-height: 1.15;
  margin-bottom: 16px;
}

.article-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #888888;
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F0F0F0;
}

.article-header__actions {
  display: none; /* Moved share to sidebar */
}

@media (max-width: 640px) {
  .article-header__title {
    font-size: 28px;
  }
}

/* ─── Article Intro ────────────────────────────────────────── */
.article-intro {
  margin: 0 0 32px;
  font-size: 17px;
  color: #444444;
  line-height: 1.8;
}

.article-intro p {
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ─── Article Cover ────────────────────────────────────────── */
.article-cover {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.article-cover__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Force visibility ─────────────────────────────────────── */
.page-article .article-header,
.page-article .article-intro,
.page-article .article-cover,
.page-article .article-gallery,
.page-article .save-collection-cta,
.page-article .article-author,
.page-article .article-toc,
.page-article .idea-card,
.page-article .sidebar-widget {
  opacity: 1 !important;
  transform: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   2-COLUMN ARTICLE LAYOUT
   ═══════════════════════════════════════════════════════════════ */

.article-layout {
  background: #FFFFFF;
  padding: 0 0 48px;
}

.article-layout__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.article-layout__main {
  min-width: 0;
}

.article-layout__sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* ═══════════════════════════════════════════════════════════════
   TABLE OF CONTENTS
   ═══════════════════════════════════════════════════════════════ */

.article-toc {
  background: #FFFFFF;
  border: 1px solid #F5D6DF;
  border-radius: 16px;
  padding: 15px 28px;
  margin-bottom: 30px;
}

.article-toc__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 16px 0;
}

.article-toc__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

.article-toc__link {
  display: block;
  font-size: 15px;
  color: #444444;
  text-decoration: none;
  padding: 6px 0;
  transition: color 200ms ease;
  line-height: 1.5;
}

.article-toc__link:hover {
  color: #FF4F7B;
}

.article-toc__num {
  color: #FF4F7B;
  font-weight: 700;
  margin-right: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   IDEAS SECTION
   ═══════════════════════════════════════════════════════════════ */

.article-ideas {
  margin-bottom: 48px;
}

.article-ideas__heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.article-ideas__line {
  display: block;
  width: 60px;
  height: 4px;
  background: #FF4F7B;
  border-radius: 2px;
  margin-top: 12px;
  margin-bottom: 32px;
}

.article-ideas__cta {
  text-align: center;
  margin-top: 40px;
}

.article-ideas__cta .btn--primary {
  background: #FF4F7B;
  color: #FFFFFF;
  border: none;
  padding: 16px 36px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.article-ideas__cta .btn--primary:hover {
  background: #E63E6D;
  transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════
   IDEA CARD
   ═══════════════════════════════════════════════════════════════ */

.idea-card {
  background: #FFFFFF;
  border: 1px solid #F7E5EA;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 55% 45%;
  margin-bottom: 24px;
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.idea-card:hover {
  box-shadow: 0 8px 32px rgba(255, 79, 123, 0.1);
  transform: translateY(-2px);
}

/* ── Image ─────────────────────────────────────────────────── */
.idea-card__image-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.idea-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Number Badge ──────────────────────────────────────────── */
.idea-card__number {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FF4F7B;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  z-index: 2;
  line-height: 1;
}

/* ── Content ───────────────────────────────────────────────── */
.idea-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.idea-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.idea-card__desc {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Save Button ───────────────────────────────────────────── */
.idea-card__save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #FF4F7B;
  border: 1px solid #FF4F7B;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  align-self: flex-start;
}

.idea-card__save:hover {
  background: #FF4F7B;
  color: #FFFFFF;
}


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR WIDGETS
   ═══════════════════════════════════════════════════════════════ */

.sidebar-widget {
  background: #FFFFFF;
  border: 1px solid #F5D6DF;
  border-radius: 16px;
  padding: 24px;
}

.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 16px 0;
}

.sidebar-widget__text {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

/* ── About Author ──────────────────────────────────────────── */
.sidebar-author {
  text-align: center;
}

.sidebar-author__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
}

.sidebar-author__avatar--placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FCE7EF;
  color: #FF4F7B;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.sidebar-author__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 8px;
}

.sidebar-author__bio {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.sidebar-author__social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.sidebar-author__social a {
  color: #666666;
  transition: color 200ms ease;
}

.sidebar-author__social a:hover {
  color: #FF4F7B;
}

/* ── Popular Posts ──────────────────────────────────────────── */
.sidebar-popular {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-popular__item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.sidebar-popular__item:hover {
  opacity: 0.8;
}

.sidebar-popular__thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-popular__thumb--placeholder {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #FCE7EF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sidebar-popular__title {
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Newsletter ────────────────────────────────────────────── */
.sidebar-newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-newsletter__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 200ms ease;
  font-family: var(--font-body);
  box-sizing: border-box;
}

.sidebar-newsletter__input:focus {
  border-color: #FF4F7B;
}

.sidebar-newsletter__btn {
  width: 100%;
  padding: 12px;
  background: #FF4F7B;
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease;
  font-family: var(--font-body);
}

.sidebar-newsletter__btn:hover {
  background: #E63E6D;
}

/* ── Pinterest Follow ──────────────────────────────────────── */
.sidebar-pinterest__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #FFFFFF;
  color: #FF4F7B;
  border: 1px solid #FF4F7B;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.sidebar-pinterest__btn:hover {
  background: #FF4F7B;
  color: #FFFFFF;
}

.sidebar-pinterest__btn svg {
  fill: currentColor;
}

/* ── Share Article ─────────────────────────────────────────── */
.sidebar-share {
  display: flex;
  gap: 12px;
}

.sidebar-share__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F8F8F8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444444;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.sidebar-share__icon:hover {
  background: #FF4F7B;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.sidebar-share__icon svg {
  fill: currentColor;
}


/* ═══════════════════════════════════════════════════════════════
   ARTICLE RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .article-layout__container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-layout__sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .idea-card {
    grid-template-columns: 1fr;
  }

  .idea-card__image-wrap {
    height: 220px;
  }

  .article-toc__list {
    grid-template-columns: 1fr;
  }

  .article-ideas__heading {
    font-size: 26px;
  }

  .article-layout__sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .idea-card__content {
    padding: 16px;
  }

  .idea-card__title {
    font-size: 17px;
  }

  .idea-card__image-wrap {
    height: 180px;
  }

  .article-toc {
    padding: 20px;
  }
}


/* ─── Article Tips & Final ─────────────────────────────────── */
.article-tips,
.article-final {
  margin-bottom: 40px;
}


/* ─── Related Ideas ────────────────────────────────────────── */
.related-ideas {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: var(--white);
}

.related-ideas__header {
  margin-bottom: var(--space-xl);
}

.related-ideas__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}


/* ═══════════════════════════════════════════════════════════════
   SEARCH PAGE (.page-search)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Search Header ────────────────────────────────────────── */
.search-header {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: var(--space-xl);
}

.search-header__query {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.search-header__query span {
  color: var(--accent-rose);
}

.search-header__count {
  font-size: var(--text-base);
  color: var(--smoke);
}

/* ─── Search Filters ───────────────────────────────────────── */
.search-filters {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.search-filters__label {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--charcoal);
}

/* ─── Search Results ───────────────────────────────────────── */
.search-results {
  padding-bottom: var(--space-3xl);
}

.search-no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.search-no-results__icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

.search-no-results__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.search-no-results__text {
  color: var(--smoke);
  margin-bottom: var(--space-lg);
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.search-no-results__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ─── Search page (refined layout used by search.php) ──────────── */
.page-search .search-header {
  padding: var(--space-lg) 0 0;
  border-bottom: none;
  margin-bottom: var(--space-sm);
  text-align: center;
}
.page-search .search-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 6px;
}
.page-search .search-header__title strong {
  color: var(--accent-rose);
  font-weight: inherit;
}
.page-search .search-header__count {
  font-size: var(--text-base);
  color: var(--smoke);
  margin: 0;
}

/* Search box — rounded pill with embedded button */
.page-search .search-page__form {
  max-width: 620px;
  margin: var(--space-md) auto var(--space-lg);
}
.page-search .search-page__input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.page-search .search-page__input-wrap:focus-within {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.12);
}
.page-search .search-page__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--charcoal);
  padding: 11px 0;
}
.page-search .search-page__input::placeholder { color: var(--smoke); }
.page-search .search-page__btn {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 11px 26px;
}

/* Center the category filter pills */
.page-search .pills {
  justify-content: center;
}

/* Empty / no-results state — centered card */
.page-search .empty-state {
  text-align: center;
  max-width: 540px;
  margin: var(--space-2xl) auto var(--space-3xl);
  padding: var(--space-2xl) var(--space-lg);
  background: var(--cloud, #faf7f5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
}
.page-search .empty-state__icon {
  font-size: 3.4rem;
  line-height: 1;
  margin-bottom: var(--space-sm);
}
.page-search .empty-state__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--charcoal);
  margin: 0 0 6px;
}
.page-search .empty-state__text {
  color: var(--smoke);
  margin: 0 0 var(--space-lg);
}
.page-search .empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Dark mode */
[data-theme="dark"] .page-search .search-header__title { color: #F3F4F6; }
[data-theme="dark"] .page-search .search-page__input-wrap {
  background: #1F2433;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
[data-theme="dark"] .page-search .search-page__input { color: #F3F4F6; }
[data-theme="dark"] .page-search .search-page__input::placeholder { color: #9CA3AF; }
[data-theme="dark"] .page-search .empty-state {
  background: #1A1F2E;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .page-search .empty-state__title { color: #F3F4F6; }


/* ═══════════════════════════════════════════════════════════════
   SHARED / CROSS-PAGE PATTERNS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Section Divider ──────────────────────────────────────── */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0, 0, 0, 0.08) 20%,
    rgba(0, 0, 0, 0.08) 80%,
    transparent
  );
  margin: var(--space-2xl) 0;
}

/* ─── Decorative Gradient Accent ───────────────────────────── */
.gradient-accent {
  position: relative;
}

.gradient-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--cat-room),
    var(--cat-hair),
    var(--cat-nail)
  );
  border-radius: 2px;
}

/* ─── Content Wrapper (narrow for readability) ─────────────── */
.content-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.content-medium {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Sidebar Widgets ──────────────────────────────────────── */
.sidebar-widget {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid rgba(0, 0, 0, 0.04);
}

.sidebar-widget__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.sidebar-widget__tag {
  padding: 4px 12px;
  background: var(--soft-blush);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--smoke);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.sidebar-widget__tag:hover {
  background: var(--accent-rose);
  color: var(--white);
}

/* ─── Infinite Scroll Trigger ──────────────────────────────── */
.infinite-scroll-trigger {
  height: 1px;
  visibility: hidden;
}

/* ─── Page Transition ──────────────────────────────────────── */
.page-enter {
  animation: fadeInUp 0.4s ease forwards;
}


/* ═══════════════════════════════════════════════════════════════
   STATIC PAGES (About, Contact, Privacy, Terms)
   ═══════════════════════════════════════════════════════════════ */

.static-page {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.static-page__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.static-page__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--fw-bold);
  color: var(--midnight);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.static-page__subtitle {
  font-size: var(--text-lg);
  color: var(--smoke);
  font-weight: var(--fw-normal);
  max-width: 600px;
  margin: 0 auto;
}

.static-page__updated {
  font-size: var(--text-xs);
  color: var(--smoke-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-sm);
}

.static-page__body {
  max-width: 760px;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--charcoal);
}

.static-page__body h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--midnight);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent-rose);
  display: inline-block;
}

.static-page__body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--midnight);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.static-page__body p {
  margin-bottom: var(--space-md);
}

.static-page__body ul,
.static-page__body ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.static-page__body li {
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.static-page__body strong {
  font-weight: var(--fw-semibold);
  color: var(--midnight);
}

.static-page__body a {
  color: var(--accent-rose);
  text-decoration: underline;
  text-decoration-color: rgba(240, 101, 128, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--transition-fast);
}

.static-page__body a:hover {
  text-decoration-color: var(--accent-rose);
}

.static-page__body blockquote {
  border-left: 3px solid var(--accent-rose);
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background: var(--soft-blush);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--smoke);
}

/* Contact page specifics */
/* ─── Contact Page Layout ─────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Contact Form Card ──────────────────────────────────── */
.contact-form-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.contact-form-card__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--text-xl);
  color: var(--midnight);
  margin-bottom: var(--space-lg);
}

.contact-form__group {
  margin-bottom: var(--space-md);
  position: relative;
}

.contact-form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--charcoal);
  margin-bottom: 6px;
}

.contact-form__input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.contact-form__input::placeholder {
  color: var(--smoke-light);
}

.contact-form__input:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-form__charcount {
  display: block;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--smoke-light);
  margin-top: 4px;
}

.contact-form__submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-rose-dark));
  color: var(--white);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-sm);
}

.contact-form__submit:hover {
  background: linear-gradient(135deg, var(--accent-rose-light), var(--accent-rose));
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
  transform: translateY(-1px);
}

.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form__submit .btn-loading {
  animation: spin 1s linear infinite;
}

.contact-form__alert {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.contact-form__alert--success {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

.contact-form__alert--error {
  color: #DC2626;
  background: rgba(220, 38, 38, 0.08);
}

/* ─── Contact Sidebar ────────────────────────────────────── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--accent-rose);
  box-shadow: var(--shadow-sm);
}

.contact-info-card__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.contact-info-card__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--text-lg);
  color: var(--midnight);
  margin-bottom: var(--space-xs);
}

.contact-info-card__email {
  display: inline-block;
  color: var(--accent-rose);
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
  text-decoration: none;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.contact-info-card__email:hover {
  color: var(--accent-rose-dark);
  text-decoration: underline;
}

.contact-info-card__text {
  color: var(--smoke);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-top: var(--space-xs);
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-rose);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  margin-top: var(--space-sm);
  transition: color var(--transition-fast);
}

.contact-social-link:hover {
  color: var(--accent-rose-dark);
}

/* ─── Dark Mode — Static Pages ───────────────────────────── */
[data-theme="dark"] .static-page__header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .static-page__title {
  color: #F3F4F6;
}

[data-theme="dark"] .static-page__body h2 {
  color: #E5E7EB;
}

[data-theme="dark"] .static-page__body h3 {
  color: #D1D5DB;
}

[data-theme="dark"] .static-page__body strong {
  color: #E5E7EB;
}

[data-theme="dark"] .static-page__body blockquote {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--accent-rose);
}

/* ─── Dark Mode — Contact Page ───────────────────────────── */
[data-theme="dark"] .contact-form-card {
  background: #1A1A28;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .contact-form-card__title {
  color: #F3F4F6;
}

[data-theme="dark"] .contact-form__label {
  color: #D1D5DB;
}

[data-theme="dark"] .contact-form__input {
  background: #111119;
  border-color: rgba(255, 255, 255, 0.1);
  color: #F3F4F6;
}

[data-theme="dark"] .contact-form__input::placeholder {
  color: #6B7280;
}

[data-theme="dark"] .contact-form__input:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

[data-theme="dark"] .contact-form__alert--success {
  color: #34D399;
  background: rgba(52, 211, 153, 0.1);
}

[data-theme="dark"] .contact-form__alert--error {
  color: #F87171;
  background: rgba(248, 113, 113, 0.1);
}

[data-theme="dark"] .contact-info-card {
  background: #1A1A28;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .contact-info-card:hover {
  border-color: var(--accent-rose);
}

[data-theme="dark"] .contact-info-card__title {
  color: #E5E7EB;
}


/* ═══════════════════════════════════════════════════════════════
   AUTHOR PROFILE PAGE (.page-author)
   ═══════════════════════════════════════════════════════════════ */

/* ═══ Author Profile ══════════════════════════════════════════ */
.author-profile {
  text-align: center;
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.author-profile__avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-rose);
  box-shadow: 0 4px 20px rgba(240, 101, 128, 0.15);
}

.author-profile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-rose-dark, #D84F6F));
  color: white;
  font-size: 3rem;
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
}

.author-profile__name {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: var(--fw-bold);
  color: var(--midnight);
  margin-bottom: var(--space-xs);
}

.author-profile__expertise {
  font-size: var(--text-sm);
  color: var(--accent-rose);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.author-profile__bio {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--charcoal);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.author-profile__social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.author-profile__social a {
  font-size: var(--text-sm);
  color: var(--smoke);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.author-profile__social a:hover {
  color: var(--accent-rose);
}

.author-profile__stats {
  font-size: var(--text-sm);
  color: var(--smoke);
}

.page-author .section-divider {
  width: auto;
  height: auto;
  background: none;
  margin: 0 0 var(--space-xl);
}

.page-author .section-divider__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--midnight);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--accent-rose);
  display: inline-block;
}

/* Dark mode author profile */
[data-theme="dark"] .author-profile {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .author-profile__name {
  color: #F3F4F6;
}
[data-theme="dark"] .author-profile__bio {
  color: #D1D5DB;
}
[data-theme="dark"] .page-author .section-divider__title {
  color: #E5E7EB;
}


/* ─── Print Styles ─────────────────────────────────────────── */
@media print {
  .navbar,
  .footer,
  .back-to-top,
  .mobile-menu,
  .search-overlay,
  .lightbox,
  .ad-slot,
  .filter-bar,
  .pinterest-cta,
  .newsletter {
    display: none !important;
  }

  .page {
    padding-top: 0;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ============================================================
   Block content (rendered from GlowEditor JSON) — public article
   ============================================================ */
.post-content {
    max-width: 760px;
    margin: 0 auto;
    color: #1F2937;
    font-size: 18px;
    line-height: 1.8;
}
.post-content .post-p { margin: 0 0 1.1em; }
.post-content .post-h { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: #1A1A2E; scroll-margin-top: 90px; }
.post-content .post-h1 { font-size: 2rem; margin: 1.4em 0 .5em; }
.post-content .post-h2 { font-size: 1.6rem; margin: 1.3em 0 .45em; }
.post-content .post-h3 { font-size: 1.3rem; margin: 1.2em 0 .4em; }
.post-content .post-h4 { font-size: 1.1rem; margin: 1.1em 0 .35em; }
.post-content a { color: #E94560; text-decoration: underline; text-underline-offset: 2px; }
.post-content mark { background: #FFF1A8; padding: 0 3px; border-radius: 3px; }
.post-content .post-list { margin: 0 0 1.1em; padding-left: 1.5em; }
.post-content .post-list--ul { list-style: disc; }
.post-content .post-list--ol { list-style: decimal; }
.post-content .post-list li { margin: .3em 0; }

.post-content .post-quote {
    margin: 1.6em 0; padding: .2em 0 .2em 1.25em;
    border-left: 4px solid #E94560;
}
.post-content .post-quote blockquote { margin: 0; font-size: 1.35rem; font-style: italic; line-height: 1.6; color: #1A1A2E; }
.post-content .post-quote figcaption { margin-top: .5em; font-size: .95rem; color: #6B7280; }

.post-content .post-image { margin: 1.8em 0; }
.post-content .post-image img { width: 100%; height: auto; border-radius: 16px; display: block; }
.post-content .post-image figcaption { margin-top: .6em; text-align: center; font-size: .92rem; color: #6B7280; }
.post-content .post-image--wide { width: min(960px, 92vw); margin-left: 50%; transform: translateX(-50%); }
.post-content .post-image--full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.post-content .post-image--full img { border-radius: 0; }

.post-content .post-gallery { display: grid; gap: 12px; margin: 1.8em 0; }
.post-content .post-gallery--cols-2 { grid-template-columns: repeat(2, 1fr); }
.post-content .post-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
.post-content .post-gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }
.post-content .post-gallery figure { margin: 0; }
.post-content .post-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; display: block; }

.post-content .post-btn-wrap { text-align: center; margin: 1.8em 0; }
.post-content .post-btn { display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.post-content .post-btn--primary { background: linear-gradient(135deg, #E94560, #C73650); color: #fff; }
.post-content .post-btn--outline { border: 1.5px solid #E94560; color: #E94560; }
.post-content .post-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(233,69,96,.3); }

.post-content .post-divider { border: none; border-top: 2px solid #EEE; margin: 2em 0; }

@media (max-width: 640px) {
    .post-content { font-size: 16px; }
    .post-content .post-h1 { font-size: 1.6rem; }
    .post-content .post-h2 { font-size: 1.35rem; }
    .post-content .post-image--wide, .post-content .post-image--full { width: 100%; margin-left: 0; transform: none; }
    .post-content .post-image--full img { border-radius: 16px; }
    .post-content .post-gallery--cols-3, .post-content .post-gallery--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Classic-editor HTML content (bare tags) — public article
   ============================================================ */
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
    font-family: var(--font-heading); font-weight: 700; line-height: 1.25;
    color: #1A1A2E; scroll-margin-top: 90px;
}
.post-content h1 { font-size: 2rem; margin: 1.2em 0 .5em; color: #E94560; }
.post-content h2 { font-size: 1.6rem; margin: 1.3em 0 .45em; }
.post-content h3 { font-size: 1.3rem; margin: 1.2em 0 .4em; }
.post-content h4 { font-size: 1.1rem; margin: 1.1em 0 .35em; }
.post-content > p, .post-content li { font-size: 18px; line-height: 1.8; }
.post-content p { margin: 0 0 1.1em; }
.post-content ul, .post-content ol { margin: 0 0 1.1em 1.5em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin: .3em 0; }
.post-content blockquote {
    border-left: 4px solid #E94560; padding: .2em 0 .2em 1.2em; margin: 1.4em 0;
    font-style: italic; color: #4B5563; font-size: 1.15rem;
}
.post-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 1.4em 0; display: block; }
.post-content pre {
    background: #0F172A; color: #E2E8F0; border-radius: 12px; padding: 16px 18px;
    font-family: 'SFMono-Regular', Consolas, monospace; font-size: 14px; overflow-x: auto; margin: 1.4em 0;
}
.post-content mark { background: #FFF1A8; padding: 0 3px; border-radius: 3px; }
.post-content table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: 15px; }
.post-content th, .post-content td { border: 1px solid #E5E7EB; padding: 9px 13px; text-align: left; }
.post-content th { background: #F8E8E0; font-weight: 700; }
.post-content hr { border: none; border-top: 2px solid #EEE; margin: 2em 0; }
@media (max-width: 640px) {
    .post-content > p, .post-content li { font-size: 16px; }
    .post-content h1 { font-size: 1.6rem; } .post-content h2 { font-size: 1.35rem; }
}

/* ============================================================
   Dark mode — article block content (.post-content)
   (my earlier post-content rules hardcoded light colors)
   ============================================================ */
[data-theme="dark"] .post-content { color: #E5E7EB; }
[data-theme="dark"] .post-content h1,
[data-theme="dark"] .post-content h2,
[data-theme="dark"] .post-content h3,
[data-theme="dark"] .post-content h4 { color: #F3F4F6; }
[data-theme="dark"] .post-content h1 { color: #F06580; }
[data-theme="dark"] .post-content > p,
[data-theme="dark"] .post-content li { color: #D1D5DB; }
[data-theme="dark"] .post-content a { color: #F06580; }
[data-theme="dark"] .post-content blockquote { color: #9CA3AF; border-left-color: #F06580; }
[data-theme="dark"] .post-content table th,
[data-theme="dark"] .post-content table td { border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .post-content table th { background: #221A20; color: #F3F4F6; }
[data-theme="dark"] .post-content hr { border-top-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .post-content mark { background: #FFF1A8; color: #1F2937; }
[data-theme="dark"] .post-content .post-h { color: #F3F4F6; }
[data-theme="dark"] .post-content .post-quote blockquote { color: #E5E7EB; }

/* ============================================================
   Table of Contents — collapsible toggle (collapsed by default)
   ============================================================ */
.article-toc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; text-align: left;
}
.article-toc__head .article-toc__title { margin: 0; }
.article-toc__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(233, 69, 96, .10); color: #E94560;
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  white-space: nowrap; flex: 0 0 auto; transition: background .15s;
}
.article-toc__head:hover .article-toc__toggle { background: rgba(233, 69, 96, .18); }
.article-toc__chev { transition: transform .2s ease; font-size: 11px; }
.article-toc:not(.article-toc--collapsed) .article-toc__chev { transform: rotate(180deg); }
.article-toc__body { margin-top: 18px; }
.article-toc--collapsed .article-toc__body { display: none; }