/* ═══════════════════════════════════════════════════════════
   PSICOLOGIA DI OGGI — Component Styles
   Loaded via wp_enqueue_scripts in functions.php
═══════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS (loaded via functions.php enqueue) ──── */

/* ── NAV ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,248,244,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 58px;
  overflow: hidden;
}

/* Admin bar offset */
.admin-bar .site-header { top: 32px; }
.admin-bar .reading-progress { top: 90px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .reading-progress { top: 104px; }
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  /* kill any inherited list bullets */
  list-style: none;
}
/* Remove any stray bullets from WP injected elements in header */
.site-header li { list-style: none !important; }
.site-header li::before, .site-header li::marker { display: none !important; content: none !important; }

.site-branding {
  flex-shrink: 0;
  margin-right: 2.5rem;
}

.site-branding a {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.015em;
}
.site-branding a em { color: var(--pink); font-style: italic; }

/* Desktop nav links */
.main-navigation { flex: 1; }
.main-navigation ul { display: flex; list-style: none; }
.main-navigation a {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0 0.9rem;
  line-height: 58px;
  display: block;
  transition: color 0.18s, box-shadow 0.18s;
  box-shadow: inset 0 -2px 0 transparent;
}
.main-navigation a:hover { color: var(--ink); }
.main-navigation .current-menu-item > a { color: var(--pink); box-shadow: inset 0 -2px 0 var(--pink); }

/* Search icon button */
.search-toggle {
  margin-left: auto;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background: var(--card);
  color: var(--ink-faint);
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
.search-toggle:hover { border-color: var(--pink); color: var(--pink); }

/* Hamburger — hidden on desktop */
.nav-toggle { display: none; }

/* ── MOBILE NAV (slide-down drawer) ─────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  z-index: 190;
  /* Push it fully off-screen above the viewport */
  transform: translateY(-100vh);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.32s;
  box-shadow: 0 8px 32px rgba(26,22,20,0.12);
  padding-top: 58px;
}
/* Account for WP admin bar (--wp-admin-bar-height is not a WP variable) */
.admin-bar .mobile-nav { padding-top: calc(58px + 32px); }
.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}

.mobile-nav__inner {
  padding: 1.5rem 1.5rem 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
}

.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav li:last-child { border-bottom: none; }
.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.18s, padding-left 0.18s;
}
.mobile-nav a:hover { color: var(--pink); padding-left: 0.5rem; }
.mobile-nav .current-menu-item > a { color: var(--pink); }

/* ── SEARCH OVERLAY ──────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26,22,20,0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease,
              visibility 0s linear 0.22s;
}
.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.22s ease,
              visibility 0s linear 0s;
}

.search-overlay__box {
  background: var(--cream);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  margin-inline: 1.5rem;
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform 0.22s ease;
  box-shadow: 0 24px 64px rgba(26,22,20,0.18);
}
.search-overlay.is-open .search-overlay__box { transform: translateY(0); }

.search-overlay__form {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.search-overlay__icon {
  color: var(--pink);
  flex-shrink: 0;
  display: flex;
}

.search-overlay__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1.1rem 1rem;
  font-size: 1.05rem;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
}
.search-overlay__input::placeholder { color: var(--ink-faint); }

.search-overlay__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-md);
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s;
}
.search-overlay__close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.search-overlay__hint {
  padding: 0.9rem 1.25rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-overlay__hint kbd {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 1px solid var(--border-md);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-family: var(--sans);
  color: var(--ink-muted);
}

/* Prevent body scroll when overlays are open */
body.nav-open, body.search-open { overflow: hidden; }

/* ── PROGRESS BAR ────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 58px; left: 0; right: 0;
  z-index: 199;
  height: 2px;
  pointer-events: none;
}

.reading-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink));
  transition: width 0.08s linear;
}

/* ── HERO IMAGE ──────────────────────────────────────────── */
.post-hero {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.25rem 2rem 0;
}

.post-hero__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  background: linear-gradient(160deg, #0d050b 0%, #2a0d1c 25%, #5a1e35 55%, #8a2d4e 75%, #c45370 100%);
  position: relative;
}

.post-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-hero__frame::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 75% 40%, rgba(196,83,112,0.18) 0%, transparent 60%);
}

/* ── ARTICLE HEADER ──────────────────────────────────────── */
.article-header {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 2rem 2rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: 3.75rem;
  align-items: start;
}

.article-header__main {}

.entry-category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
  margin-bottom: 0.85rem;
  transition: opacity 0.18s;
}

.entry-category-link:hover { opacity: 0.7; }

.entry-category-link::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

.entry-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.entry-title em { font-style: italic; color: var(--pink); }

.entry-excerpt {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.72;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* ── ENTRY META ──────────────────────────────────────────── */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.entry-meta__author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 500; color: #fff;
  overflow: hidden; flex-shrink: 0;
}

.author-avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-name {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  text-decoration: none;
}
.author-name:hover { color: var(--pink); }

.author-role {
  font-size: 0.69rem;
  color: var(--ink-faint);
}

.meta-sep {
  width: 1px; height: 22px;
  background: var(--border-md);
  flex-shrink: 0;
}

.meta-chip { display: flex; flex-direction: column; }
.meta-chip__label { font-size: 0.62rem; color: var(--ink-faint); margin-bottom: 0.05rem; letter-spacing: 0.04em; }
.meta-chip__value { font-size: 0.78rem; font-weight: 500; color: var(--ink); }

.entry-meta__share {
  margin-left: auto;
  display: flex;
  gap: 0.38rem;
}

.share-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-md);
  color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.18s;
  text-decoration: none;
}
.share-btn:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ── ARTICLE BODY ────────────────────────────────────────── */
.entry-content {
  line-height: 1.8;
}

.entry-content p {
  font-size: 1.04rem;
  line-height: 1.82;
  color: var(--ink);
  margin-bottom: 1.55rem;
}

.entry-content h2 {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 1.1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--pink);
}

.entry-content h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.entry-content a {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.entry-content a:hover { color: var(--pink-deep); }

.entry-content ul,
.entry-content ol {
  list-style: revert;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.entry-content li { margin-bottom: 0.4rem; font-size: 1.04rem; line-height: 1.75; }

.entry-content blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 2rem 1.75rem 2.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.entry-content blockquote::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--pink) 0%, var(--pink-pale) 100%);
}
.entry-content blockquote::after {
  content: '\201C';
  font-family: var(--serif);
  font-size: 7rem; font-weight: 600;
  color: var(--pink-pale);
  position: absolute;
  top: -1rem; right: 1.5rem;
  line-height: 1; opacity: 0.5;
  pointer-events: none;
}
.entry-content blockquote p {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  position: relative; z-index: 1;
}

.entry-content figure { margin: 2rem 0; }
.entry-content figcaption {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
  padding-top: 0.5rem;
  font-style: italic;
}

/* ── ENTRY TAGS ──────────────────────────────────────────── */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1.75rem 0 1.5rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.entry-tags__label {
  font-size: 0.72rem;
  color: var(--ink-faint);
  align-self: center;
  margin-right: 0.15rem;
}

.tag-pill {
  background: var(--card);
  border: 1px solid var(--border-md);
  border-radius: 20px;
  padding: 0.24rem 0.78rem;
  font-size: 0.73rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all 0.18s;
}
.tag-pill:hover { background: var(--pink-pale); border-color: var(--pink-pale); color: var(--pink-deep); }

/* ── AUTHOR BIO ──────────────────────────────────────────── */
.author-bio {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.author-bio__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 500; color: #fff;
}
.author-bio__avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-bio__name {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  text-decoration: none;
  color: var(--ink);
}
.author-bio__name:hover { color: var(--pink); }

.author-bio__role { font-size: 0.71rem; color: var(--pink); margin-bottom: 0.5rem; display: block; }
.author-bio__desc { font-size: 0.82rem; color: var(--ink-muted); line-height: 1.65; margin: 0; }

/* ── SHARE CTA ───────────────────────────────────────────── */
.share-cta {
  text-align: center;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2.75rem;
}

.share-cta p { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 0.9rem; }

.share-cta__buttons {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
}

.sh-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.52rem 1.15rem;
  border-radius: 22px;
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; border: none;
  transition: all 0.18s;
  text-decoration: none;
  font-family: var(--sans);
}
.sh-btn--fb  { background: #1877F2; color: #fff; }
.sh-btn--fb:hover  { background: #1460C8; }
.sh-btn--wa  { background: #25D366; color: #fff; }
.sh-btn--wa:hover  { background: #1eaa55; }
.sh-btn--copy { background: var(--cream); color: var(--ink); border: 1px solid var(--border-md); }
.sh-btn--copy:hover { background: var(--ink); color: #fff; }

/* ── RELATED POSTS ───────────────────────────────────────── */
.related-posts {
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.related-posts__title {
  font-size: 1.28rem;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.related-posts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.related-card {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(26,22,20,0.07); }

.related-card--featured { grid-column: 1 / -1; flex-direction: row; }

.related-card__img {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.related-card--featured .related-card__img { width: 220px; height: 100%; aspect-ratio: auto; flex-shrink: 0; }

.related-card__body { padding: 0.9rem 1rem; flex: 1; }

.related-card__cat {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.3rem;
  display: block;
}

.related-card__title {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.related-card--featured .related-card__title { font-size: 1rem; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-widget__head {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-widget__title {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-widget__title::before {
  content: '';
  display: block;
  width: 3px; height: 13px;
  background: var(--pink);
  border-radius: 2px;
  flex-shrink: 0;
}

.sidebar-widget__link {
  font-size: 0.68rem;
  color: var(--pink);
  text-decoration: none;
}
.sidebar-widget__link:hover { text-decoration: underline; }

/* TOC */
.toc-widget__toggle { cursor: pointer; }
.toc-widget__toggle:hover { background: var(--pink-bg); }
.toc-chevron { color: var(--ink-faint); display: flex; transition: transform 0.3s ease; }
.toc-chevron.is-collapsed { transform: rotate(180deg); }

.toc-list { list-style: none; padding: 0.45rem 0.55rem; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; max-height: 700px; opacity: 1; }
.toc-list.is-collapsed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }

.toc-list a {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.75rem; color: var(--ink-muted);
  text-decoration: none; padding: 0.3rem 0.5rem;
  border-radius: 6px; line-height: 1.38;
  transition: all 0.18s;
}
.toc-list a:hover { background: var(--pink-bg); color: var(--ink); }
.toc-list a.is-active { background: var(--pink-bg); color: var(--pink); font-weight: 500; }

.toc-num { font-size: 0.62rem; color: var(--pink-pale); min-width: 14px; margin-top: 0.2rem; flex-shrink: 0; font-family: var(--serif); }
.toc-list a.is-active .toc-num { color: var(--pink); }

/* Recent Posts */
.recent-posts-list { display: flex; flex-direction: column; }

.recent-post {
  display: flex;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.18s;
}
.recent-post:last-child { border-bottom: none; }
.recent-post:hover { background: var(--pink-bg); }

.recent-post__thumb {
  width: 80px; height: 80px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.recent-post__thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.recent-post:hover .recent-post__thumb-img { transform: scale(1.07); }

.recent-post__thumb::after {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
}
.recent-post[data-category="relatii"] .recent-post__thumb::after    { background: var(--pink); }
.recent-post[data-category="psihologie"] .recent-post__thumb::after { background: var(--sage); }
.recent-post[data-category="familie"] .recent-post__thumb::after    { background: var(--mauve); }

.recent-post__info {
  flex: 1; min-width: 0;
  padding: 0.72rem 1rem 0.72rem 0.8rem;
  display: flex; flex-direction: column;
  justify-content: center; gap: 0.2rem;
}

.recent-post__cat {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.recent-post[data-category="relatii"]    .recent-post__cat { color: var(--pink); }
.recent-post[data-category="psihologie"] .recent-post__cat { color: var(--sage); }
.recent-post[data-category="familie"]    .recent-post__cat { color: var(--mauve); }

.recent-post__title {
  font-family: var(--serif);
  font-size: 0.81rem; font-weight: 400; line-height: 1.38;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s;
}
.recent-post:hover .recent-post__title { color: var(--pink); }

.recent-post__meta {
  display: flex; align-items: center; gap: 0.35rem;
  margin-top: 0.18rem;
}

.recent-post__date { font-size: 0.65rem; color: var(--ink-faint); }
.recent-post__time { font-size: 0.64rem; color: var(--ink-faint); }
.recent-post__time::before { content: '· '; }

/* Newsletter widget */
.newsletter-widget { background: linear-gradient(160deg, #110710 0%, #321020 100%); border-color: rgba(196,83,112,0.18); }
.newsletter-widget .sidebar-widget__head { border-bottom-color: rgba(255,255,255,0.08); }
.newsletter-widget .sidebar-widget__title { color: #fff; }
.newsletter-widget .sidebar-widget__title::before { background: var(--pink); }

.newsletter-widget__body { padding: 0.85rem 1.1rem 1.1rem; }
.newsletter-widget__desc { font-size: 0.76rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin-bottom: 0.85rem; }

.newsletter-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.52rem 0.85rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.18s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.26); }
.newsletter-input:focus { border-color: var(--pink); }

.newsletter-btn {
  width: 100%;
  background: var(--pink); color: #fff; border: none;
  border-radius: 8px; padding: 0.58rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: background 0.18s;
}
.newsletter-btn:hover { background: var(--pink-deep); }

/* Popular posts */
.popular-list { display: flex; flex-direction: column; }

.popular-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: var(--pink-bg); }

.popular-item__num {
  font-family: var(--serif); font-size: 1.25rem;
  color: var(--pink-pale); line-height: 1.1;
  min-width: 20px; flex-shrink: 0;
  transition: color 0.18s;
}
.popular-item:hover .popular-item__num { color: var(--pink); }

.popular-item__title {
  font-family: var(--serif); font-size: 0.79rem;
  font-weight: 400; line-height: 1.42; color: var(--ink);
  padding-top: 0.12rem;
}

/* ── HOMEPAGE: HERO SPLIT ────────────────────────────────── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  border-bottom: 1px solid var(--border);
}

/* When sidebar is absent, hero spans full width */
.home-hero:not(:has(.home-hero__sidebar)) {
  grid-template-columns: 1fr;
}

.home-hero:not(:has(.home-hero__sidebar)) .home-hero__main {
  max-height: 520px;
}

.home-hero__main {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.home-hero__main .post-thumbnail {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6;
}

.home-hero__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(26,22,20,0.92) 0%, transparent 100%);
}

.home-hero__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--pink);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.home-hero__title {
  font-family: var(--serif);
  font-size: 2rem; font-weight: 600;
  color: #fff; line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: block;
}
.home-hero__title:hover { color: var(--pink-pale); }

.home-hero__excerpt {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.home-hero__sidebar {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
}

.hero-side-card {
  flex: 1;
  display: flex; gap: 1.25rem; align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: background 0.18s;
}
.hero-side-card:last-child { border-bottom: none; }
.hero-side-card:hover { background: var(--pink-bg); }

.hero-side-card__thumb {
  width: 88px; height: 88px; flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink));
}

.hero-side-card__cat {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--pink);
  margin-bottom: 0.35rem; display: block;
}

.hero-side-card__title {
  font-family: var(--serif);
  font-size: 1rem; font-weight: 600; line-height: 1.35;
  color: var(--ink); margin-bottom: 0.35rem;
}

.hero-side-card__excerpt {
  font-size: 0.8rem; color: var(--ink-muted);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── CARD GRID (homepage) ────────────────────────────────── */
.posts-section {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 3rem 2rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.section-header::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border);
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,22,20,0.08); }

.post-card--wide {
  flex-direction: row;
  grid-column: 1 / -1;
}

.post-card__thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.post-card--wide .post-card__thumb { width: 260px; flex-shrink: 0; aspect-ratio: auto; height: 100%; }

.post-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex; flex-direction: column;
}

.post-card__cat {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--pink);
  margin-bottom: 0.5rem; display: block;
}

.post-card__title {
  font-family: var(--serif);
  font-size: 1.1rem; font-weight: 600;
  line-height: 1.35; color: var(--ink);
  margin-bottom: 0.6rem; letter-spacing: -0.01em;
}
.post-card--wide .post-card__title { font-size: 1.3rem; }

.post-card__excerpt {
  font-size: 0.85rem; color: var(--ink-muted);
  line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.post-card__date { font-size: 0.75rem; color: var(--ink-faint); }
.post-card__read-more { font-size: 0.8rem; font-weight: 500; color: var(--pink); display: flex; align-items: center; gap: 0.3rem; }

/* ── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0 4rem;
}

.pagination .page-numbers {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  transition: all 0.18s;
}
.pagination .page-numbers:hover { border-color: var(--pink); color: var(--pink); }
.pagination .page-numbers.current { background: var(--pink); color: #fff; border-color: var(--pink); }
.pagination .prev, .pagination .next { width: auto; padding: 0 1rem; }

/* ── ARCHIVE / CATEGORY HEADER ───────────────────────────── */
.archive-header {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 3rem 2rem 0;
}

.archive-header__label {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pink);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.archive-header__label::before {
  content: ''; width: 20px; height: 1px; background: var(--pink);
}

.archive-header__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.archive-header__desc {
  font-size: 1rem; color: var(--ink-muted);
  line-height: 1.7; max-width: 560px;
  margin-bottom: 2rem;
}

.archive-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── READ MORE BUTTON ────────────────────────────────────── */
.btn-read {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--pink); color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 24px;
  font-size: 0.85rem; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-read:hover { background: var(--pink-deep); transform: translateY(-1px); }

/* ── LOAD MORE ───────────────────────────────────────────── */
.load-more-wrap { text-align: center; padding: 1rem 0 2rem; }

.btn-load-more {
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 24px;
  padding: 0.75rem 2.5rem;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  letter-spacing: 0.03em;
}
.btn-load-more:hover { background: var(--ink); color: #fff; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.52);
  padding: 3rem 2rem 2rem;
}

.footer-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--serif); font-size: 1.18rem;
  font-weight: 600; color: #fff; letter-spacing: -0.01em;
  margin-bottom: 0.65rem; display: block; text-decoration: none;
}
.footer-brand em { color: var(--pink); font-style: italic; }

.footer-desc { font-size: 0.8rem; line-height: 1.65; max-width: 220px; }

.footer-col h5 {
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(255,255,255,0.32);
  margin-bottom: 0.8rem; font-family: var(--sans);
}

.footer-col a {
  display: block; font-size: 0.8rem;
  color: rgba(255,255,255,0.52); text-decoration: none;
  margin-bottom: 0.42rem; transition: color 0.18s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-w); margin-inline: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem;
}

/* ── SEARCH PAGE ─────────────────────────────────────────── */
.search-page {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 3rem 2rem 5rem;
}

.search-page__header { margin-bottom: 2.5rem; }

.search-page__label {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pink);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.search-page__label::before { content: ''; width: 20px; height: 1px; background: var(--pink); }

.search-page__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 1.5rem;
}
.search-page__title em { color: var(--pink); font-style: italic; }

/* Search input bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--card);
  border: 1.5px solid var(--border-md);
  border-radius: 40px;
  padding: 0 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 600px;
}
.search-bar:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(196,83,112,0.1);
}

.search-bar__icon { color: var(--pink); flex-shrink: 0; display: flex; }

.search-bar__input {
  flex: 1;
  border: none; background: transparent;
  padding: 0.9rem 0.85rem;
  font-size: 1rem; font-family: var(--sans); color: var(--ink);
  outline: none;
}
.search-bar__input::placeholder { color: var(--ink-faint); }

.search-bar__submit {
  background: var(--pink); color: #fff; border: none;
  border-radius: 30px; padding: 0.5rem 1.25rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: background 0.18s; flex-shrink: 0;
}
.search-bar__submit:hover { background: var(--pink-deep); }

/* Results header */
.search-results-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.search-results-count {
  font-size: 0.82rem; color: var(--ink-muted);
}
.search-results-count strong { color: var(--ink); font-weight: 500; }

/* Live search loading */
.search-status {
  display: none;
  align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: var(--ink-faint);
  padding: 2rem 0;
}
.search-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--pink-pale);
  border-top-color: var(--pink);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result cards */
.search-results { display: flex; flex-direction: column; gap: 1px; }

.search-result-card {
  display: flex; gap: 0;
  text-decoration: none; color: inherit;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.85rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.search-result-card:hover {
  box-shadow: 0 6px 24px rgba(26,22,20,0.08);
  transform: translateY(-2px);
}

.search-result-card__thumb {
  width: 120px; height: 100%; min-height: 100px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1a2e, #2d1b2e);
  background-size: cover;
  background-position: center;
}

.search-result-card__body {
  flex: 1; padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}

.search-result-card__cat {
  font-size: 0.63rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pink);
}

.search-result-card__title {
  font-family: var(--serif); font-size: 1.05rem;
  font-weight: 600; line-height: 1.3; color: var(--ink);
}
.search-result-card:hover .search-result-card__title { color: var(--pink); }

.search-result-card__excerpt {
  font-size: 0.85rem; color: var(--ink-muted);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-card__date { font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.25rem; }

/* Highlighted search terms */
.search-result-card mark {
  background: rgba(196,83,112,0.15);
  color: var(--pink-deep);
  border-radius: 2px;
  padding: 0 1px;
}

.search-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.search-no-results strong { color: var(--ink); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 268px; }
  .site-layout { gap: 3rem; }
  .article-header { gap: 3rem; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__sidebar { display: none; }
}

@media (max-width: 820px) {
  .site-layout { grid-template-columns: 1fr; }
  .article-header { grid-template-columns: 1fr; }
  .article-header__spacer { display: none; }
  .sidebar { position: static; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card--wide { flex-direction: column; }
  .post-card--wide .post-card__thumb { width: 100%; height: 200px; }
  .related-posts__grid { grid-template-columns: 1fr 1fr; }
  .related-card--featured { flex-direction: column; }
  .related-card--featured .related-card__img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-hero__frame { aspect-ratio: 16/7; }
  .search-result-card__thumb { width: 90px; }
}

/* ── MOBILE NAV BREAKPOINT ───────────────────────────────── */
@media (max-width: 640px) {
  /* Hide desktop nav, show hamburger */
  .main-navigation { display: none; }

  .nav-toggle {
    display: flex;
    align-items: center; justify-content: center;
    background: none; border: none;
    width: 36px; height: 36px;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    margin-left: auto;
    margin-right: 0.5rem;
    transition: background 0.18s;
    flex-shrink: 0;
    position: relative;
    list-style: none;
  }
  .nav-toggle:hover { background: var(--pink-bg); }

  /* Animated bars → X */
  .nav-toggle__bar {
    display: block;
    position: absolute;
    width: 18px; height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
  }
  .nav-toggle__bar:nth-child(1) { transform: translateY(-5px); }
  .nav-toggle__bar:nth-child(3) { transform: translateY(5px); }

  .nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: rotate(45deg); }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: rotate(-45deg); }

  .site-branding { margin-right: 0; }
  .search-toggle { margin-left: 0; }

  /* Admin bar offset for mobile nav */
  .admin-bar .mobile-nav { padding-top: calc(58px + 46px); }

  .container, .post-hero, .article-header, .site-layout,
  .posts-section, .archive-header, .search-page { padding-left: 1rem; padding-right: 1rem; }
  .post-hero__frame { aspect-ratio: 16/9; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .meta-sep { display: none; }
  .entry-meta__share { display: none; }
  .home-hero__overlay { padding: 1.5rem; }
  .home-hero__title { font-size: 1.5rem; }
  .search-result-card { flex-direction: column; }
  .search-result-card__thumb { width: 100%; height: 140px; }
  .search-overlay { padding-top: 20px; align-items: flex-end; }
  .search-overlay__box { max-width: 100%; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
