/* ===== Blog Post Page — blog-post.css ===== */

/* ─── CSS CUSTOM PROPERTIES ─── */
:root {
    --clr-plum-deep: #431529;
    --clr-plum-dark: #350101;
    --clr-plum-mid: #5a1a38;
    --clr-lavender: #f0e9f6;
    --clr-mauve: #9e7b8e;
    --clr-ink: #0a0a0b;
    --clr-chip-light: #e8ddf0;
    --clr-chip-mid: #d4c5e0;
    --clr-white: #ffffff;
    --clr-text-body: #2c1a22;
    --clr-text-muted: #7a5c6a;

    --grad-brand: linear-gradient(
        135deg,
        var(--clr-plum-deep),
        var(--clr-plum-dark),
        var(--clr-plum-deep)
    );
    --grad-hero: linear-gradient(
        135deg,
        rgba(67, 21, 41, 0.82),
        rgba(53, 1, 1, 0.75),
        rgba(67, 21, 41, 0.72)
    );

    --ff-display: "Cormorant Garamond", Georgia, serif;
    --ff-body: "DM Sans", system-ui, sans-serif;

    --radius-card: 16px;
    --shadow-card: 0 4px 24px rgba(67, 21, 41, 0.1);
    --shadow-hover: 0 12px 40px rgba(67, 21, 41, 0.18);

    --max-w: 820px;
    --max-w-wide: 1100px;
}

/* ─── SKIP LINK ─── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--clr-plum-deep);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    font-family: var(--ff-body);
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ─── HERO ─── */
.blog-hero {
    position: relative;
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    background: var(--clr-plum-dark);
}

.blog-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero-overlay {
    position: relative;
    z-index: 1;
    background: var(--grad-hero);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 48px;
    text-align: center;
}

.blog-hero-tag {
    display: inline-block;
    background: rgba(240, 233, 246, 0.15);
    border: 1px solid rgba(240, 233, 246, 0.3);
    color: var(--clr-lavender);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.blog-hero h1 {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--clr-white);
    line-height: 1.2;
    max-width: 780px;
    margin-bottom: 14px;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(240, 233, 246, 0.75);
    font-size: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 12px 24px;
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--clr-plum-deep);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--clr-chip-mid);
}

/* ─── LAYOUT ─── */
.blog-layout {
    max-width: var(--max-w-wide);
    margin: 0 auto;
    padding: 0 24px 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* ─── ARTICLE ─── */
.intro-block {
    background: var(--clr-lavender);
    border-left: 4px solid var(--clr-plum-deep);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    padding: 22px 28px;
    margin: 32px 0;
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--clr-plum-deep);
    line-height: 1.5;
}

.blog-article h2 {
    font-family: var(--ff-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--clr-plum-deep);
    margin: 48px 0 16px;
    line-height: 1.25;
}

.blog-article h3 {
    font-family: var(--ff-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-plum-mid);
    margin: 28px 0 10px;
}

.blog-article p {
    margin-bottom: 18px;
    font-size: 1.02rem;
    color: var(--clr-text-body);
}

/* Inline images */
.blog-img-wrap {
    margin: 32px 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.blog-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-img-caption {
    background: var(--clr-lavender);
    padding: 10px 16px;
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    text-align: center;
    font-style: italic;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.feature-card {
    background: var(--clr-white);
    border: 1px solid var(--clr-chip-light);
    border-radius: var(--radius-card);
    padding: 20px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    box-shadow: var(--shadow-card);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.feature-card h4 {
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--clr-plum-deep);
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Location list */
.location-list {
    list-style: none;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--clr-text-body);
}

.loc-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--grad-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
    color: white;
}

/* CTA Banner */
.cta-banner {
    background: var(--grad-brand);
    border-radius: var(--radius-card);
    padding: 40px 36px;
    text-align: center;
    margin: 48px 0;
}

.cta-banner h2 {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--clr-white);
    margin: 0 0 10px;
}

.cta-banner p {
    color: rgba(240, 233, 246, 0.85);
    font-size: 0.95rem;
    margin: 0 0 24px;
}

.cta-btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 28px;
    background: var(--clr-white);
    color: var(--clr-plum-deep);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 13px 28px;
    background: transparent;
    color: var(--clr-white);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition:
        background 0.2s,
        border-color 0.2s;
    text-decoration: none;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.divider {
    border: none;
    border-top: 1px solid var(--clr-chip-light);
    margin: 40px 0;
}

/* ─── SIDEBAR ─── */
.blog-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.toc-card {
    background: var(--clr-lavender);
    border-radius: var(--radius-card);
    padding: 22px;
}

.toc-card h3 {
    font-family: var(--ff-display);
    font-size: 1rem;
    color: var(--clr-plum-deep);
    margin-bottom: 14px;
    font-weight: 700;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-list a {
    font-size: 0.83rem;
    color: var(--clr-plum-mid);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    transition: color 0.2s;
    text-decoration: none;
}

.toc-list a:hover {
    color: var(--clr-plum-deep);
}

.toc-list a::before {
    content: "→";
    flex-shrink: 0;
    font-size: 0.75rem;
    margin-top: 1px;
}

.sidebar-book {
    background: var(--grad-brand);
    border-radius: var(--radius-card);
    padding: 28px 22px;
    text-align: center;
    color: var(--clr-white);
}

.sidebar-book h3 {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--clr-white);
}

.sidebar-book p {
    font-size: 0.82rem;
    color: rgba(240, 233, 246, 0.8);
    margin-bottom: 18px;
    line-height: 1.5;
}

.sidebar-book .btn-primary {
    width: 100%;
    justify-content: center;
}

.sidebar-facts {
    background: var(--clr-white);
    border: 1px solid var(--clr-chip-light);
    border-radius: var(--radius-card);
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.sidebar-facts h3 {
    font-family: var(--ff-display);
    font-size: 1rem;
    color: var(--clr-plum-deep);
    margin-bottom: 14px;
    font-weight: 700;
}

.fact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--clr-chip-light);
    font-size: 0.83rem;
}

.fact-row:last-child {
    border-bottom: none;
}

.fact-row strong {
    color: var(--clr-plum-deep);
    min-width: 80px;
}

.fact-row span {
    color: var(--clr-text-muted);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        order: -1;
    }

    .toc-card {
        display: none;
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero {
        min-height: 280px;
    }

    .blog-hero-overlay {
        min-height: 280px;
        padding: 40px 16px 32px;
    }

    .cta-banner {
        padding: 32px 20px;
    }

    .blog-layout {
        padding: 0 16px 60px;
    }

    .breadcrumb {
        padding: 10px 16px;
    }
}

@media (max-width: 560px) {
    .blog-hero h1 {
        font-size: 1.5rem;
    }
}

/* ─── UTILITY ─── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
