/* BLOG STYLES — Lima Bean Photography */

/* ═══════════════════════════════════════════════
   BLOG INDEX PAGE
   ═══════════════════════════════════════════════ */

.blog-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10rem 2rem 4rem;
    background: var(--charcoal);
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(141, 184, 50, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(109, 164, 205, 0.06) 0%, transparent 50%);
    z-index: 1;
}

.blog-hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 700px;
}

.blog-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.blog-hero .hero-rule {
    width: 60px;
    height: 2px;
    background: var(--lima-bean-green);
    border: none;
    margin: 1.5rem auto;
}

.blog-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-weight: 400;
}

/* Tag Filter Bar */
.blog-filter-bar {
    background: var(--fog);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
    position: sticky;
    top: 60px;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.blog-filter-bar .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--medium-gray);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s var(--transition-smooth);
}

.filter-tag:hover,
.filter-tag.active {
    color: var(--white);
    background: var(--charcoal);
    border-color: var(--charcoal);
}

/* Blog Post Grid */
.blog-grid-section {
    padding: 4rem 0 6rem;
    background: var(--white);
}

.blog-grid-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

/* Blog Card */
.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-image .card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(8px);
}

.blog-card-body {
    padding: 1.5rem 1.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #595959;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.blog-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--boulder);
}

.blog-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.65;
    flex: 1;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lima-bean-green-dark);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card:hover .read-more {
    gap: 0.75rem;
}

/* Featured Post (first/latest) */
.blog-featured {
    margin-bottom: 3rem;
}

.blog-featured .blog-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border-radius: 20px;
}

.blog-featured .blog-card-image {
    aspect-ratio: auto;
    min-height: 360px;
}

.blog-featured .blog-card-body {
    padding: 2.5rem;
    justify-content: center;
}

.blog-featured .blog-card h3 {
    font-size: 1.8rem;
}

/* ═══════════════════════════════════════════════
   BLOG POST (ARTICLE) PAGE
   ═══════════════════════════════════════════════ */

.post-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 0 2rem 4rem;
    background: var(--charcoal);
    overflow: hidden;
}

.post-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.post-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.post-hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.post-hero-content .post-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--charcoal);
    background: var(--lima-bean-green);
    margin-bottom: 1.25rem;
}

.post-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.015em;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Raleway', sans-serif;
}

.post-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

/* Article Body */
.post-body-section {
    padding: 4rem 0 2rem;
    background: var(--white);
}

.post-body-section .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #333;
}

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 3rem 0 1.25rem;
    line-height: 1.25;
}

.post-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    color: var(--lima-bean-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: var(--wild-willow);
}

.post-content img {
    width: 100%;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.post-content blockquote {
    border-left: 3px solid var(--lima-bean-green);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: var(--fog);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--medium-gray);
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content strong {
    color: var(--charcoal);
    font-weight: 600;
}

.post-content hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 3rem 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-tags a {
    display: inline-flex;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--medium-gray);
    background: var(--fog);
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    color: var(--white);
    background: var(--charcoal);
}

/* Related Posts */
.related-posts-section {
    padding: 4rem 0;
    background: var(--fog);
}

.related-posts-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-posts-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Post CTA Band */
.post-cta-band {
    padding: 5rem 2rem;
    background: var(--charcoal);
    text-align: center;
}

.post-cta-band h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-cta-band p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 768px) {
    .blog-hero {
        min-height: 40vh;
        padding: 8rem 1.5rem 3rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-featured .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-featured .blog-card-image {
        min-height: 220px;
    }

    .blog-featured .blog-card-body {
        padding: 1.5rem;
    }

    .blog-featured .blog-card h3 {
        font-size: 1.4rem;
    }

    .post-hero {
        min-height: 50vh;
        padding: 0 1.5rem 3rem;
    }

    .post-content {
        font-size: 1.05rem;
    }

    .post-content h2 {
        font-size: 1.5rem;
    }

    .blog-filter-bar .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .blog-card h3 {
        font-size: 1.15rem;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}
