/* ─────────────────────────────────────────────
   blog.css  –  LushCrafts Blog pages
   ───────────────────────────────────────────── */

:root {
    --purple-deep:  #6B5B8E;
    --purple-mid:   #A88FBF;
    --purple-light: #C9B8D9;
    --green-soft:   #8FAA70;
    --pink-soft:    #D4A5C4;
    --cream:        #FAF7F2;
    --white:        #ffffff;
    --text-dark:    #2E2640;
    --text-muted:   #6B6080;
}

/* ══════════════════════════════════════════════
   BLOG LISTING PAGE
══════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────── */
.blog-hero {
    position: relative;
    background:
        radial-gradient(ellipse at 8% 60%,  rgba(201,184,217,0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 92% 40%, rgba(143,170,112,0.2)  0%, transparent 50%),
        var(--cream);
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}
.blog-hero-bg svg { width: 100%; height: 100%; overflow: visible; }

.blog-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.blog-hero-badge {
    display: inline-block;
    background: rgba(168,143,191,0.18);
    border: 1px solid var(--purple-light);
    color: var(--purple-deep);
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 1.4rem;
}

.blog-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.05;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.blog-hero-title em { font-style: italic; color: var(--purple-deep); }

.blog-hero-sub {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Listing section ──────────────────────── */
.blog-listing {
    background: var(--cream);
    padding: 4rem 2rem 6rem;
}

.blog-container {
    max-width: 1160px;
    margin: 0 auto;
}

.blog-container--narrow {
    max-width: 720px;
}

/* ── Grid ─────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ── Card ─────────────────────────────────── */
.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 2px 12px rgba(107,91,142,0.08),
        0 1px 3px rgba(107,91,142,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 14px 36px rgba(107,91,142,0.16),
        0 4px 10px rgba(107,91,142,0.08);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card image */
.blog-card-img-wrap {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0ecf8 0%, #eaf2e4 100%);
    flex-shrink: 0;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.05); }

.blog-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

/* Card body */
.blog-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.blog-card-tag {
    background: rgba(168,143,191,0.18);
    border: 1px solid var(--purple-light);
    color: var(--purple-deep);
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
}

.blog-card-date {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 0.65rem;
    transition: color 0.2s;
}
.blog-card:hover .blog-card-title { color: var(--purple-deep); }

.blog-card-excerpt {
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    flex: 1;
}

.blog-card-cta {
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple-deep);
    letter-spacing: 0.02em;
    margin-top: auto;
    display: inline-block;
    transition: gap 0.2s;
}

/* ── Empty state ──────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.blog-empty-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
}
.blog-empty-sub {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
}


/* ══════════════════════════════════════════════
   BLOG DETAIL PAGE
══════════════════════════════════════════════ */

.blog-post { background: var(--cream); }

/* ── Post header ──────────────────────────── */
.post-header {
    position: relative;
    background:
        radial-gradient(ellipse at 10% 60%, rgba(201,184,217,0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 40%, rgba(143,170,112,0.18) 0%, transparent 50%),
        var(--cream);
    padding: 4rem 2rem 3.5rem;
    text-align: center;
}

.post-header-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}
.post-header-bg svg { width: 100%; height: 100%; overflow: visible; }

.post-header-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.post-back {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    color: var(--purple-deep);
    margin-bottom: 1.5rem;
    transition: opacity 0.2s;
}
.post-back:hover { opacity: 0.7; }

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.post-tag {
    background: rgba(168,143,191,0.18);
    border: 1px solid var(--purple-light);
    color: var(--purple-deep);
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
}

.post-date,
.post-author {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.post-date::after { content: '·'; margin-left: 0.75rem; }

.post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--purple-mid);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
}

/* ── Cover image ──────────────────────────── */
.post-cover {
    background: var(--cream);
    padding: 0 2rem;
}

.post-cover-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 8px 36px rgba(107,91,142,0.15);
}

/* ── Body ─────────────────────────────────── */
.post-body-wrap {
    padding: 3.5rem 2rem 5rem;
}

.post-body {
    font-family: 'Jost', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #3d3550;
}

/* Prose styling for HTML content in body field */
.post-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    line-height: 1.2;
}

.post-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
}

.post-body p { margin-bottom: 1.4rem; max-width: 100%; }

.post-body a {
    color: var(--purple-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.4rem 1.5rem;
}

.post-body li { margin-bottom: 0.4rem; }

.post-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.post-body blockquote {
    border-left: 3px solid var(--purple-light);
    margin: 2rem 0;
    padding: 0.75rem 1.5rem;
    font-style: italic;
    color: var(--purple-mid);
    background: rgba(201,184,217,0.1);
    border-radius: 0 10px 10px 0;
}

/* ── Share footer ─────────────────────────── */
.post-footer { margin-top: 3rem; }

.post-footer-divider {
    height: 1px;
    background: rgba(201,184,217,0.4);
    margin-bottom: 1.5rem;
}

.post-footer-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.post-share-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.share-btn {
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.share-fb { background: #1877F2; color: #fff; }
.share-wa { background: #25D366; color: #fff; }
.share-tw { background: #000;    color: #fff; }

.post-back-bottom {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: var(--purple-deep);
    font-weight: 500;
}


/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 600px) {
    .blog-hero,
    .post-header  { padding: 3.5rem 1.2rem 3rem; }
    .blog-listing { padding: 2.5rem 1.2rem 4rem; }
    .blog-grid    { grid-template-columns: 1fr; }
    .post-body-wrap { padding: 2.5rem 1.2rem 4rem; }
    .post-cover   { padding: 0 1.2rem; }
    .post-cover-img { max-height: 260px; }
}