/* ==========================================================================
   LYUBOMIROFF — blog.css
   Styles for post_list.html and post_detail.html
   Link this after mystyle.css and premium_additions.css in base.html.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Blog list page
   -------------------------------------------------------------------------- */

/* Dark header */
.blog-list-header {
  background: var(--lm-black);
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid rgba(201, 145, 61, 0.12);
}

.blog-list-title {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  color: var(--lm-cream);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.blog-list-subtitle {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.55);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

/* Tag filter strip */
.blog-tag-strip {
  background: #faf7f2;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  padding: 0.85rem 0;
  position: sticky;
  top: var(--lm-nav-h);
  z-index: 900;
  backdrop-filter: blur(8px);
}

.blog-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.blog-tag-chip {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, 0.15);
  background: #fff;
  color: var(--lm-slate);
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  cursor: none;
}

.blog-tag-chip:hover,
.blog-tag-chip.active {
  background: var(--lm-gold);
  border-color: var(--lm-gold);
  color: var(--lm-black);
}

/* Post grid */
.blog-list-section {
  background: #faf7f2;
  padding: 4rem 0 5rem;
  min-height: 40vh;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) { .blog-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .blog-post-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Post card */
.blog-post-card {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
  border-color: rgba(201, 145, 61, 0.2);
}

.blog-post-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: none;
}

/* Card image */
.bpc-image-zone {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0ebe3;
  flex-shrink: 0;
}

.bpc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.blog-post-card:hover .bpc-image { transform: scale(1.04); }

.bpc-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f0e8, #ede8de);
}

/* Reading time badge */
.bpc-reading-time {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(13, 13, 13, 0.72);
  color: var(--lm-cream);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Card text */
.bpc-text {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bpc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.bpc-tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lm-gold);
  font-weight: 600;
}

.bpc-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lm-slate);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.blog-post-card:hover .bpc-title { color: #000; }

.bpc-excerpt {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.bpc-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--lm-muted);
  margin-top: auto;
  flex-wrap: wrap;
}

.bpc-author { font-weight: 500; color: var(--lm-slate); }
.bpc-dot    { opacity: 0.4; }
.bpc-date, .bpc-reading { color: var(--lm-muted); }

/* Pagination */
.blog-pagination { margin-top: 3rem; }

.blog-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.blog-page-btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(201, 145, 61, 0.35);
  border-radius: 999px;
  color: var(--lm-gold);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: none;
}

.blog-page-btn:hover {
  background: var(--lm-gold);
  color: var(--lm-black);
  border-color: var(--lm-gold);
}

.blog-page-info {
  font-size: 0.8rem;
  color: var(--lm-muted);
  letter-spacing: 0.06em;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 440px;
  margin: 0 auto;
}

.blog-empty-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--lm-slate);
  margin-bottom: 0.75rem;
}

.blog-empty-body { font-size: 0.9rem; color: #888; margin-bottom: 1.5rem; }

/* --------------------------------------------------------------------------
   Blog post detail page
   -------------------------------------------------------------------------- */

/* Article hero */
.post-hero {
  position: relative;
  overflow: hidden;
}

.post-hero--image {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  margin-top: calc(-1 * var(--lm-nav-h));
  padding-top: var(--lm-nav-h);
}

.post-hero--plain {
  background: var(--lm-black);
  padding: 5rem 0 3.5rem;
  margin-top: calc(-1 * var(--lm-nav-h));
  padding-top: calc(var(--lm-nav-h) + 4rem);
}

.post-hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.post-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.post-hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 13, 13, 0.92) 0%,
    rgba(13, 13, 13, 0.55) 50%,
    rgba(13, 13, 13, 0.25) 100%
  );
}

.post-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.post-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.post-hero-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lm-gold);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.post-hero-tag:hover { opacity: 0.7; }

.post-hero-title {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  color: var(--lm-cream);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

.post-hero-excerpt {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.72);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.55);
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(245, 240, 232, 0.8);
  font-weight: 500;
}

.post-meta-author-icon {
  border-radius: 50%;
  opacity: 0.7;
}

.post-meta-sep  { opacity: 0.3; }
.post-meta-date { color: rgba(245, 240, 232, 0.55); }
.post-meta-reading { color: var(--lm-gold); opacity: 0.8; }

/* ── Article body layout ─────────────────────────────────────────────── */
.post-layout {
  background: #faf7f2;
  padding: 4rem 0 5rem;
}

.post-layout-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .post-layout-inner { grid-template-columns: 1fr; gap: 3rem; }
  .post-sidebar { order: -1; }
}

/* Body typography */
.post-article { max-width: 680px; }

.post-body { font-size: 1.05rem; color: #333; line-height: 1.85; }

.post-body .blog-body-h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--lm-slate);
  margin: 2.5rem 0 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.post-body .blog-body-h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: var(--lm-slate);
  margin: 2rem 0 0.7rem;
  font-weight: 600;
}

.post-body p {
  margin-bottom: 1.35rem;
}

.post-body .blog-body-list {
  padding-left: 1.5rem;
  margin-bottom: 1.35rem;
}

.post-body .blog-body-list li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.post-body strong { color: var(--lm-slate); font-weight: 600; }
.post-body em     { font-style: italic; color: #555; }

.post-body a {
  color: var(--lm-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.post-body a:hover { color: #b07c2c; }

/* Tags footer */
.post-tags-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 25, 23, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.post-tags-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lm-muted);
  margin-right: 0.25rem;
}

.post-tag-link {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(201, 145, 61, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  color: var(--lm-slate);
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
}

.post-tag-link:hover {
  background: var(--lm-gold);
  color: var(--lm-black);
  border-color: var(--lm-gold);
}

/* Share strip */
.post-share-strip {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 25, 23, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-share-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lm-muted);
}

.post-share-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: none;
  background: none;
}

.post-share-fb {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.25);
  background: rgba(24, 119, 242, 0.05);
}

.post-share-fb:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.post-share-tw {
  color: #0f0f0f;
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.04);
}

.post-share-tw:hover {
  background: #0f0f0f;
  color: #fff;
  border-color: #0f0f0f;
}

.post-share-copy {
  color: var(--lm-gold);
  border-color: rgba(201, 145, 61, 0.25);
  background: rgba(201, 145, 61, 0.06);
}

.post-share-copy:hover {
  background: var(--lm-gold);
  color: var(--lm-black);
  border-color: var(--lm-gold);
}

.post-share-copy:disabled { opacity: 0.7; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: calc(var(--lm-nav-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 992px) {
  .post-sidebar { position: static; }
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid rgba(28, 25, 23, 0.07);
}

.sidebar-card-title {
  font-family: system-ui, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lm-gold);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

/* Author card */
.sidebar-author-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.sidebar-author-icon img { width: 36px; height: 36px; object-fit: contain; opacity: 0.7; }

.sidebar-author-name {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lm-slate);
  margin-bottom: 0.4rem;
}

.sidebar-author-bio {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.sidebar-author-link {
  font-size: 0.78rem;
  color: var(--lm-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.sidebar-author-link:hover { color: #b07c2c; }

/* Tag cloud */
.sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sidebar-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #faf7f2;
  border: 1px solid rgba(28, 25, 23, 0.1);
  font-size: 0.75rem;
  color: var(--lm-slate);
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
}

.sidebar-tag:hover {
  background: var(--lm-gold);
  color: var(--lm-black);
  border-color: var(--lm-gold);
}

/* Progress card */
.sidebar-progress-track {
  height: 4px;
  background: rgba(28, 25, 23, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.sidebar-progress-fill {
  height: 100%;
  background: var(--lm-gold);
  border-radius: 2px;
  width: 0%;
  transition: width 0.15s linear;
}

.sidebar-progress-label {
  font-size: 0.75rem;
  color: var(--lm-muted);
  margin: 0;
}

.sidebar-back-link {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--lm-muted);
  text-decoration: none;
  padding: 0.6rem;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 999px;
  background: #fff;
  transition: all 0.2s;
  cursor: none;
}

.sidebar-back-link:hover {
  border-color: var(--lm-gold);
  color: var(--lm-gold);
}

/* ── Related products ────────────────────────────────────────────────── */
.post-related-products {
  background: var(--lm-black);
  padding: 4rem 0 5rem;
}

.post-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) { .post-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .post-products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }

.post-product-card {
  display: block;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 145, 61, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: none;
}

.post-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 145, 61, 0.3);
}

.ppc-image-zone {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ppc-image {
  max-height: 170px;
  max-width: 75%;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
  position: relative;
  z-index: 1;
}

.post-product-card:hover .ppc-image { transform: translateY(-5px) scale(1.04); }

.ppc-glow {
  position: absolute;
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,145,61,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ppc-text {
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

.ppc-name {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lm-cream);
  margin-bottom: 0.15rem;
}

.ppc-cap {
  font-size: 0.72rem;
  color: var(--lm-muted);
  margin-bottom: 0.5rem;
}

.ppc-cta {
  font-size: 0.7rem;
  color: var(--lm-gold);
  letter-spacing: 0.08em;
  opacity: 0;
  display: block;
  transition: opacity 0.3s;
}

.post-product-card:hover .ppc-cta { opacity: 1; }

/* ── Prev / Next navigation ──────────────────────────────────────────── */
.post-prev-next {
  background: #fff;
  padding: 3rem 0;
  border-top: 1px solid rgba(28, 25, 23, 0.07);
}

.ppn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 576px) { .ppn-grid { grid-template-columns: 1fr; } }

.ppn-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #faf7f2;
  transition: border-color 0.2s, background 0.2s;
  cursor: none;
}

.ppn-card:hover {
  border-color: var(--lm-gold);
  background: #fff;
}

.ppn-next { text-align: right; }
.ppn-empty { background: transparent; border-color: transparent; }

.ppn-direction {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lm-gold);
  font-weight: 600;
}

.ppn-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--lm-slate);
  line-height: 1.3;
}

.ppn-meta {
  font-size: 0.75rem;
  color: var(--lm-muted);
}

/* ── Related posts grid ──────────────────────────────────────────────── */
.post-related-posts {
  background: #faf7f2;
  padding: 4rem 0 5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 768px) { .related-posts-grid { grid-template-columns: 1fr; gap: 1.25rem; } }

.related-post-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.09);
}

.related-post-link { display: block; text-decoration: none; color: inherit; cursor: none; }

.rpc-image-zone {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0ebe3;
}

.rpc-image-zone--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5f0e8, #ede8de);
}

.rpc-image {
  width: 100%; height: 100%; object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease; display: block;
}

.related-post-card:hover .rpc-image { transform: scale(1.04); }

.rpc-text { padding: 1rem 1.1rem 1.25rem; }

.rpc-tag {
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lm-gold); font-weight: 600; display: block; margin-bottom: 0.35rem;
}

.rpc-title {
  font-family: "Playfair Display", serif;
  font-size: 0.98rem; font-weight: 600; color: var(--lm-slate);
  line-height: 1.3; margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.related-post-card:hover .rpc-title { color: #000; }

.rpc-excerpt { font-size: 0.82rem; color: #888; line-height: 1.55; margin-bottom: 0.6rem; }

.rpc-meta {
  font-size: 0.72rem; color: var(--lm-muted);
  display: flex; gap: 0.3rem;
}