/* ==========================================================
   Blog listing + single post — LI Foto Booths
   Uses the theme tokens defined in style.css (:root)
   ========================================================== */

/* ---------- Hero ---------- */
.blog-hero {
  padding-top: clamp(8.5rem, 14vw, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(184,137,63,0.12), transparent 55%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.blog-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  line-height: 1.06;
  margin: 0;
}
.blog-hero h1 em,
.blog-hero .accent { font-style: italic; color: var(--color-gold); }
.blog-hero .blog-hero-sub {
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
  color: var(--color-body);
}
.blog-breadcrumb {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  list-style: none; padding: 0; margin: 0 0 1rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-muted);
}
.blog-breadcrumb a { color: var(--color-gold); text-decoration: none; }
.blog-breadcrumb a:hover { color: var(--color-heading); }
.blog-breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--color-line); }

/* ---------- Listing ---------- */
.blog-section { padding-block: clamp(3rem, 6vw, 5rem); }

.post-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease-out); }
.post-card:hover { transform: translateY(-5px); }
.post-card-img {
  display: block; position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, var(--color-surface), var(--color-deep));
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-img .post-card-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.4rem; font-style: italic; color: var(--color-gold);
  opacity: .55;
}
.post-card-cat {
  position: absolute; left: 1rem; top: 1rem;
  background: rgba(251,245,237,0.94); color: var(--color-gold);
  font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: .38rem .8rem; border-radius: 50px;
}
.post-card-body { padding: 1.5rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem;
  font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted);
}
.post-meta i { color: var(--color-gold-bright); margin-right: .3rem; }
.post-card-title { font-size: 1.55rem; line-height: 1.18; margin: .7rem 0 .6rem; }
.post-card-title a { color: var(--color-heading); text-decoration: none; }
.post-card-title a:hover { color: var(--color-gold); }
.post-card-excerpt { color: var(--color-body); font-size: .95rem; margin-bottom: 1.2rem; }
.post-card-link {
  margin-top: auto; align-self: flex-start;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-gold); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.post-card-link:hover { color: var(--color-heading); }

/* Featured (first) post on page 1 */
.post-card-featured { flex-direction: row; }
.post-card-featured .post-card-img { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
.post-card-featured .post-card-body { padding: clamp(1.6rem, 3vw, 2.6rem); justify-content: center; }
.post-card-featured .post-card-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
@media (max-width: 991.98px) {
  .post-card-featured { flex-direction: column; }
  .post-card-featured .post-card-img { flex: none; aspect-ratio: 16/10; min-height: 0; }
}

/* Pagination */
.blog-pagination { margin-top: 3rem; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.blog-pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 .9rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-line); border-radius: 50px; background: var(--color-card);
  color: var(--color-heading); font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: all .25s var(--ease-out);
}
.blog-pagination a.page-numbers:hover { border-color: var(--color-gold-bright); color: var(--color-gold); }
.blog-pagination .page-numbers.current { background: var(--color-gold-bright); border-color: var(--color-gold-bright); color: #2a1d08; }

.blog-empty { padding: 3rem 2rem; text-align: center; }

/* ---------- Single post ---------- */
.single-hero { text-align: center; }
.single-hero h1 { max-width: 880px; margin-inline: auto; }
.single-hero .post-meta { justify-content: center; margin-top: 1.3rem; }

.single-featured { margin-top: clamp(-1.5rem, -2vw, -1rem); padding-top: clamp(2rem, 4vw, 3rem); }
.single-featured figure {
  margin: 0; overflow: hidden; border-radius: 22px; border: 1px solid var(--color-line);
  box-shadow: 0 24px 48px -32px rgba(36,29,21,0.35);
}
.single-featured img { width: 100%; max-height: 560px; object-fit: cover; display: block; }

.post-article { max-width: 780px; margin: 0 auto; padding-block: clamp(2.5rem, 5vw, 4rem); }
.post-entry { font-size: 1.07rem; line-height: 1.85; color: var(--color-body); }
.post-entry > *:first-child { margin-top: 0; }
.post-entry p { margin: 0 0 1.4rem; }
.post-entry h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 2.6rem 0 1rem; }
.post-entry h3 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); margin: 2.2rem 0 .8rem; }
.post-entry h4 { font-size: 1.3rem; margin: 1.8rem 0 .7rem; }
.post-entry a { color: var(--color-gold); text-decoration: underline; text-underline-offset: 3px; }
.post-entry a:hover { color: var(--color-heading); }
.post-entry ul, .post-entry ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.post-entry li { margin-bottom: .45rem; }
.post-entry li::marker { color: var(--color-gold-bright); }
.post-entry img { max-width: 100%; height: auto; border-radius: 16px; }
.post-entry figure { margin: 2rem 0; }
.post-entry figcaption { font-size: .85rem; color: var(--color-muted); text-align: center; margin-top: .6rem; }
.post-entry blockquote {
  margin: 2rem 0; padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--color-gold-bright); background: var(--color-surface); border-radius: 0 16px 16px 0;
  font-family: var(--font-display); font-size: 1.4rem; font-style: italic; line-height: 1.45; color: var(--color-heading);
}
.post-entry blockquote p:last-child { margin-bottom: 0; }
.post-entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; }
.post-entry th, .post-entry td { border: 1px solid var(--color-line); padding: .6rem .8rem; }
.post-entry hr { border: 0; border-top: 1px solid var(--color-line); margin: 2.5rem 0; }

.post-footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid var(--color-line);
}
.post-tags { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.post-tags a {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 50px; border: 1px solid var(--color-line);
  color: var(--color-body); text-decoration: none; background: var(--color-card);
}
.post-tags a:hover { border-color: var(--color-gold-bright); color: var(--color-gold); }
.post-share { display: flex; align-items: center; gap: .5rem; }
.post-share span { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); margin-right: .2rem; }
.post-share a {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-line); color: var(--color-heading); background: var(--color-card); text-decoration: none;
  transition: all .25s var(--ease-out);
}
.post-share a:hover { background: var(--color-gold-bright); border-color: var(--color-gold-bright); color: #2a1d08; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav a { display: block; padding: 1.2rem 1.4rem; text-decoration: none; height: 100%; transition: transform .3s var(--ease-out); }
.post-nav a:hover { transform: translateY(-3px); }
.post-nav small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--color-gold); margin-bottom: .35rem; }
.post-nav strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--color-heading); }
.post-nav .post-nav-next { text-align: right; }
@media (max-width: 575.98px) { .post-nav { grid-template-columns: 1fr; } .post-nav .post-nav-next { text-align: left; } }

.related-posts { padding-block: clamp(3rem, 6vw, 5rem); background: var(--color-surface); border-top: 1px solid var(--color-line); }

/* ---------- Comments ---------- */
.post-article .comments-title,
.post-article .comment-reply-title { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 .6rem; }
.post-article .comment-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.post-article .comment-list .comment-body {
  background: var(--color-card); border: 1px solid var(--color-line); border-radius: 16px;
  padding: 1.1rem 1.3rem; margin-bottom: 1rem;
}
.post-article .comment-list .children { list-style: none; padding-left: 1.5rem; }
.post-article .comment-author img { border-radius: 50%; margin-right: .5rem; }
.post-article .comment-metadata { font-size: .78rem; color: var(--color-muted); }
.post-article .comment-metadata a { color: inherit; }
.post-article .comment-respond {
  background: var(--color-card); border: 1px solid var(--color-line); border-radius: 22px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.post-article .comment-notes, .post-article .logged-in-as { font-size: .9rem; color: var(--color-muted); }
.post-article .comment-form p { margin-bottom: 1rem; }
.post-article .comment-form label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-heading); margin-bottom: .4rem; }
.post-article .comment-form input[type="text"],
.post-article .comment-form input[type="email"],
.post-article .comment-form input[type="url"],
.post-article .comment-form textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; color: var(--color-heading);
  background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.post-article .comment-form textarea { min-height: 150px; resize: vertical; }
.post-article .comment-form input:focus,
.post-article .comment-form textarea:focus { outline: none; border-color: var(--color-gold-bright); box-shadow: 0 0 0 3px rgba(184,137,63,0.18); }
.post-article .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.post-article .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .85rem; color: var(--color-body); }
.post-article .comment-form .submit {
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: var(--color-gold-bright); color: #2a1d08; border: 0; border-radius: 50px;
  padding: .85rem 1.8rem; cursor: pointer; transition: all .3s var(--ease-out);
}
.post-article .comment-form .submit:hover { background: #c89a4f; transform: translateY(-2px); }

/* ---------- CTA ---------- */
.blog-cta .btn-gold-custom, .blog-cta .btn-ghost-custom,
.related-posts .btn-ghost-custom { text-decoration: none; }
.blog-cta { padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.blog-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 640px; margin: .6rem auto 0; }
.blog-cta h2 em { font-style: italic; color: var(--color-gold); }
.blog-cta p { max-width: 540px; margin: .9rem auto 1.6rem; }
