/* =========================================
   Blog & Podcast Page - Redesigned
   Shop-Style Hero + Content Type Filters
   ========================================= */

:root {
    /* Content Type Colors */
    --blog-article-color: #4A90D9;
    --blog-article-bg: rgba(74, 144, 217, 0.1);
    --blog-podcast-color: #9B59B6;
    --blog-podcast-bg: rgba(155, 89, 182, 0.1);
    --blog-video-color: #E74C3C;
    --blog-video-bg: rgba(231, 76, 60, 0.1);

    /* Hero Colors */
    --blog-hero-overlay: rgba(100, 205, 198, 0.6);
    --blog-hero-gradient: linear-gradient(135deg, rgba(100, 205, 198, 0.75) 0%, rgba(180, 230, 226, 0.7) 50%, rgba(150, 220, 235, 0.75) 100%);

    /* Card & UI */
    --blog-glass-bg: rgba(255, 255, 255, 0.95);
    --blog-glass-border: rgba(139, 90, 90, 0.1);
    --blog-shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --blog-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);

    /* Typography */
    --blog-font-display: 'Playfair Display', serif;
    --blog-font-body: 'Outfit', sans-serif;
    --blog-font-accent: 'Dancing Script', cursive;

    /* Gold Accent */
    --blog-gold: #D4A574;
    --blog-gold-light: #E8C9A8;
}

/* =========================================
   HERO SECTION - Shop Style
   ========================================= */
.blog-hero {
    min-height: 60vh !important;
    background: var(--whimsy-cream) !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 2rem !important;
}

/* Hero Content - Transparent panel, text floats on background */
.blog-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    animation: fadeInUp 0.8s ease-out;
}

.blog-hero__label {
    display: inline-block;
    font-family: var(--font-body) !important; /* Schoolbell */
    font-size: 1.35rem !important;
    font-weight: 700;
    color: var(--artist-primary) !important; /* #8B5A5A */
    margin-bottom: 0.75rem;
}

.blog-hero__title {
    font-family: var(--font-heading) !important; /* Sacramento */
    font-size: clamp(2.8rem, 7vw, 4.8rem) !important;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: #2D2D2D !important;
    text-shadow: 
        0.4px 0.4px 0 currentColor,
        -0.4px -0.4px 0 currentColor,
        0.4px -0.4px 0 currentColor,
        -0.4px 0.4px 0 currentColor; /* Faux-bolding shadow */
}

.blog-hero__title span {
    color: var(--artist-accent) !important; /* #D4A574 */
    font-family: var(--font-heading) !important; /* Sacramento */
}

.blog-hero__desc {
    font-family: var(--font-body) !important; /* Schoolbell */
    font-size: 1.3rem !important;
    line-height: 1.7;
    color: #444444 !important;
    max-width: 650px;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   CONTENT TYPE FILTERS
   ========================================= */
.blog-filters {
    background: linear-gradient(180deg, #faf8f6 0%, #f5f1ed 100%);
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

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

.content-type-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-type-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    background: white;
    font-family: var(--blog-font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-type-pill i {
    font-size: 1rem;
}

/* Article Pill */
.content-type-pill[data-type="article"] {
    color: var(--blog-article-color);
    border-color: rgba(74, 144, 217, 0.2);
}

.content-type-pill[data-type="article"]:hover,
.content-type-pill[data-type="article"].active {
    background: var(--blog-article-bg);
    border-color: var(--blog-article-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 217, 0.2);
}

/* Podcast Pill */
.content-type-pill[data-type="podcast"] {
    color: var(--blog-podcast-color);
    border-color: rgba(155, 89, 182, 0.2);
}

.content-type-pill[data-type="podcast"]:hover,
.content-type-pill[data-type="podcast"].active {
    background: var(--blog-podcast-bg);
    border-color: var(--blog-podcast-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.2);
}

/* Video Pill */
.content-type-pill[data-type="video"] {
    color: var(--blog-video-color);
    border-color: rgba(231, 76, 60, 0.2);
}

.content-type-pill[data-type="video"]:hover,
.content-type-pill[data-type="video"].active {
    background: var(--blog-video-bg);
    border-color: var(--blog-video-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.2);
}

/* All Pill */
.content-type-pill[data-type="all"].active {
    background: #333;
    color: white;
    border-color: #333;
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category-pill {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: white;
    border: 1px solid rgba(139, 90, 90, 0.15);
    font-family: var(--blog-font-body);
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-pill:hover,
.category-pill.active {
    background: #8B5A5A;
    color: white;
    border-color: #8B5A5A;
}

/* =========================================
   MAIN CONTENT AREA
   ========================================= */
.blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
    background: #faf8f6;
    min-height: 50vh;
}

/* =========================================
   FEATURED POST
   ========================================= */
.blog-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--blog-shadow-soft);
    margin-bottom: 4rem;
    transition: box-shadow 0.3s ease;
}

.blog-featured:hover {
    box-shadow: var(--blog-shadow-hover);
}

.blog-featured__image {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.blog-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-featured:hover .blog-featured__image img {
    transform: scale(1.05);
}

.content-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-family: var(--blog-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.content-badge--article {
    background: var(--blog-article-bg);
    color: var(--blog-article-color);
}

.content-badge--podcast {
    background: var(--blog-podcast-bg);
    color: var(--blog-podcast-color);
}

.content-badge--video {
    background: var(--blog-video-bg);
    color: var(--blog-video-color);
}

.blog-featured__content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--blog-font-body);
    font-size: 0.875rem;
    color: #888;
}

.blog-featured__meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-featured__title {
    font-family: var(--blog-font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #333;
}

.blog-featured__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-featured__title a:hover {
    color: #8B5A5A;
}

.blog-featured__excerpt {
    font-family: var(--blog-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 2rem;
}

.blog-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #8B5A5A;
    color: white;
    font-family: var(--blog-font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: fit-content;
}

.blog-featured__cta:hover {
    background: #6B514B;
    transform: translateX(5px);
}

/* =========================================
   BLOG GRID & CARDS
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--blog-shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

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

.blog-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.1);
}

.blog-card__type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__type-badge {
    transform: scale(1.1);
}

.blog-card__type-badge--article {
    background: var(--blog-article-bg);
    color: var(--blog-article-color);
}

.blog-card__type-badge--podcast {
    background: var(--blog-podcast-bg);
    color: var(--blog-podcast-color);
}

.blog-card__type-badge--video {
    background: var(--blog-video-bg);
    color: var(--blog-video-color);
}

.blog-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--blog-font-body);
    font-size: 0.8rem;
}

.blog-card__type {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card__type--article { color: var(--blog-article-color); }
.blog-card__type--podcast { color: var(--blog-podcast-color); }
.blog-card__type--video { color: var(--blog-video-color); }

.blog-card__date {
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card__title {
    font-family: var(--blog-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #333;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card__title a:hover {
    color: #8B5A5A;
}

.blog-card__excerpt {
    font-family: var(--blog-font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card__read-time {
    font-family: var(--blog-font-body);
    font-size: 0.8rem;
    color: #999;
}

.blog-card__link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--blog-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #8B5A5A;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card__link:hover {
    gap: 0.6rem;
}

/* =========================================
   NO POSTS STATE
   ========================================= */
.blog-empty {
    text-align: center;
    padding: 6rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--blog-shadow-soft);
}

.blog-empty__icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.blog-empty__title {
    font-family: var(--blog-font-display);
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.blog-empty__text {
    font-family: var(--blog-font-body);
    color: #888;
}

/* =========================================
   LOAD MORE BUTTON
   ========================================= */
.blog-load-more {
    text-align: center;
    margin-top: 4rem;
}

.blog-load-more__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: white;
    border: 2px solid #8B5A5A;
    color: #8B5A5A;
    font-family: var(--blog-font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.blog-load-more__btn:hover {
    background: #8B5A5A;
    color: white;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */
@media (max-width: 1024px) {
    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured__image {
        min-height: 300px;
    }

    .blog-featured__content {
        padding: 2rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Content filters responsiveness */

    .content-type-pills {
        gap: 0.5rem;
    }

    .content-type-pill {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .category-pills {
        gap: 0.5rem;
    }

    .blog-featured__title {
        font-size: 1.5rem;
    }

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

    .blog-main {
        padding: 2rem 1rem 4rem;
    }
}

@media (max-width: 480px) {
    /* Tagline responsiveness */

    .blog-featured__content {
        padding: 1.5rem;
    }

    .blog-featured__cta {
        width: 100%;
        justify-content: center;
    }

    .content-type-pill {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    .content-type-pill span {
        display: none;
    }
}
