/* ==========================================
   BLOG POST TEMPLATE
   Matches Angosa warm earthy aesthetic
   ========================================== */

/* ---- Parallax Organic Shapes ---- */
.blog-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blog-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0;
    animation: shapeIn 1.2s ease forwards;
    will-change: transform;
}

@keyframes shapeIn {
    to { opacity: var(--shape-opacity, 0.45); }
}

/* Shape 1 — large pink blob, top-left */
.blog-shape-1 {
    width: 280px;
    height: 220px;
    top: 8%;
    left: -60px;
    background: var(--accent-pink);
    --shape-opacity: 0.35;
    border-radius: 40% 60% 55% 45% / 50% 35% 65% 50%;
    animation-delay: 0.1s;
}
.blog-shape-1::before { content: ''; }
[data-rotate] { /* set via template */ }

/* Shape 2 — small sage circle, top-right */
.blog-shape-2 {
    width: 120px;
    height: 120px;
    top: 14%;
    right: 5%;
    background: var(--accent-sage);
    --shape-opacity: 0.4;
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    animation-delay: 0.25s;
}

/* Shape 3 — medium amber blob, mid-left */
.blog-shape-3 {
    width: 180px;
    height: 140px;
    top: 38%;
    left: 2%;
    background: var(--accent-amber);
    --shape-opacity: 0.28;
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    animation-delay: 0.4s;
}

/* Shape 4 — small blue blob, mid-right */
.blog-shape-4 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 3%;
    background: var(--accent-blue);
    --shape-opacity: 0.38;
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    animation-delay: 0.55s;
}

/* Shape 5 — large blush, lower-left */
.blog-shape-5 {
    width: 200px;
    height: 160px;
    top: 68%;
    left: -40px;
    background: var(--accent-blush);
    --shape-opacity: 0.32;
    border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%;
    animation-delay: 0.7s;
}

/* Shape 6 — small sage, bottom-right */
.blog-shape-6 {
    width: 90px;
    height: 90px;
    top: 82%;
    right: 8%;
    background: var(--accent-sage);
    --shape-opacity: 0.35;
    border-radius: 50%;
    animation-delay: 0.85s;
}


/* ---- Blog Layout ---- */
.blog-post {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}


/* ---- Hero Section ---- */
.blog-hero {
    text-align: center;
    padding: 60px 0 32px;
}

.blog-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--color-primary);
    background: rgba(184, 134, 11, 0.1);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.blog-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    max-width: 800px;
    margin: 0 auto 20px;
    text-transform: lowercase;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-meta .blog-author {
    font-weight: 500;
    color: var(--text-body);
}

.blog-meta .blog-date::before {
    content: '·';
    margin-right: 20px;
}


/* ---- Hero Image ---- */
.blog-hero-image {
    padding: 0 0 48px;
}

.blog-hero-img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-warm-lg);
}

.blog-hero-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}


/* ---- Article Body ---- */
.blog-body {
    padding: 0 0 60px;
}

.blog-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
}


/* ---- Paragraphs ---- */
.blog-content p,
.blog-content .blog-paragraph {
    margin-bottom: 1.6em;
}

.blog-content p:last-child {
    margin-bottom: 0;
}


/* ---- Headings inside content ---- */
.blog-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2.4em 0 0.8em;
    text-transform: lowercase;
    line-height: 1.25;
}

.blog-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 2em 0 0.6em;
    text-transform: lowercase;
}


/* ---- Blockquotes ---- */
.blog-content blockquote,
.blog-content .blog-quote {
    position: relative;
    margin: 2.4em 0;
    padding: 32px 36px 32px 40px;
    background: var(--bg-warm);
    border-radius: 16px;
    border-left: 4px solid var(--accent-amber);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--text-dark);
}

.blog-content blockquote::before,
.blog-content .blog-quote::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    left: 14px;
    font-size: 3rem;
    line-height: 1;
    color: var(--accent-amber);
    font-style: normal;
    opacity: 0.5;
}

.blog-content blockquote p:last-child,
.blog-content .blog-quote p:last-child {
    margin-bottom: 0;
}

.blog-content blockquote cite,
.blog-content .blog-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 500;
    color: var(--text-muted);
}


/* ---- Images ---- */
.blog-content .blog-image {
    margin: 2.4em 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(61, 43, 31, 0.06);
}

.blog-content .blog-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.blog-content .blog-image figcaption,
.blog-content .blog-image .blog-caption {
    padding: 12px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-warm);
}

/* Image pair — two images side by side */
.blog-content .blog-image-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 2.4em 0;
}

.blog-content .blog-image-pair .blog-image {
    margin: 0;
}


/* ---- Section Break ---- */
.blog-content .blog-section-break {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 3em 0;
    color: var(--accent-amber);
    font-size: 1.2rem;
    letter-spacing: 0.3em;
}

.blog-content .blog-section-break::before,
.blog-content .blog-section-break::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    max-width: 80px;
}

/* Default content for the break ornament */
.blog-content .blog-section-break:empty::before {
    /* renders the lines only */
}


/* ---- Lists inside content ---- */
.blog-content ul,
.blog-content ol {
    margin: 1.4em 0;
    padding-left: 1.4em;
}

.blog-content li {
    margin-bottom: 0.6em;
}


/* ---- Links inside content ---- */
.blog-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.blog-content a:hover {
    color: var(--color-primary-dark);
}


/* ---- Call to Action ---- */
.blog-cta {
    padding: 0 0 48px;
}

.blog-cta .container {
    max-width: 720px;
}

.blog-cta-card {
    text-align: center;
    padding: 48px 40px;
    background: var(--bg-warm);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.blog-cta-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: lowercase;
    margin-bottom: 12px;
}

.blog-cta-card p {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta-card .btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-primary);
    color: var(--bg-white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.blog-cta-card .btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}


/* ---- Back Link ---- */
.blog-back {
    padding: 0 0 80px;
}

.blog-back .container {
    max-width: 720px;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-back-link:hover {
    color: var(--color-primary);
}


/* ---- Drop Cap (optional: add class .blog-drop-cap to first paragraph) ---- */
.blog-content .blog-drop-cap::first-letter {
    float: left;
    font-size: 3.6em;
    line-height: 0.8;
    font-weight: 800;
    color: var(--text-dark);
    margin: 4px 12px 0 0;
}


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .blog-shape-1 { width: 200px; height: 160px; }
    .blog-shape-3 { width: 140px; height: 110px; }
    .blog-shape-5 { width: 160px; height: 120px; }
}

@media (max-width: 768px) {
    .blog-post {
        padding-top: 80px;
    }

    .blog-hero {
        padding: 40px 0 24px;
    }

    .blog-title {
        font-size: 1.8rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 4px;
    }

    .blog-meta .blog-date::before {
        display: none;
    }

    .blog-hero-img-wrapper {
        border-radius: 12px;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content blockquote,
    .blog-content .blog-quote {
        padding: 24px 20px 24px 28px;
        font-size: 1.05rem;
    }

    .blog-content .blog-image-pair {
        grid-template-columns: 1fr;
    }

    .blog-content .blog-image {
        border-radius: 12px;
    }

    /* Hide some shapes on mobile for cleaner look */
    .blog-shape-3,
    .blog-shape-5 {
        display: none;
    }

    .blog-shape-1 { width: 140px; height: 110px; }
    .blog-shape-4 { width: 70px; height: 70px; }
}

@media (max-width: 480px) {
    .blog-content h2 {
        font-size: 1.4rem;
    }

    .blog-content .blog-drop-cap::first-letter {
        font-size: 2.8em;
    }
}
