/* ============================================================
   Egoire – Blog Listing & Blog Post Stylesheet
   File:  public/css/blog.css
   Namespace: bl-
   ============================================================

   Design:  Editorial luxury magazine, feminine elegance
   Palette: Gold #C6A75E · Beige #FAF6F3 · Black #0a0a0a
   Fonts:   Playfair Display · Inter

   Table of Contents:
   1.  Container
   2.  Hero Section
   3.  Featured Post
   4.  Posts Grid
   5.  Post Card
   6.  Empty State
   7.  Pagination
   8.  Blog Post – Hero
   9.  Blog Post – Content
   10. Blog Post – Related
   11. Tablet  (≤ 1024px)
   12. Mobile  (≤ 767px)
   13. Small Mobile (≤ 479px)
   14. Reduced Motion
   ============================================================ */


/* ============================================================
   1. CONTAINER
   ============================================================ */
.bl-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}


/* ============================================================
   2. HERO SECTION
   ============================================================ */
.bl-hero {
    padding: clamp(72px, 12vw, 120px) 0 clamp(48px, 7vw, 72px);
    text-align: center;
    background: linear-gradient(180deg, #FAF6F3 0%, #ffffff 100%);
}

.bl-hero__label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C6A75E;
    margin-bottom: 20px;
}

.bl-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 400;
    letter-spacing: 1px;
    color: #0a0a0a;
    margin: 0 0 16px;
    line-height: 1.15;
}

.bl-hero__text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.02rem);
    font-weight: 300;
    line-height: 1.75;
    color: #6b6b6b;
    max-width: 540px;
    margin: 0 auto;
}


/* ============================================================
   3. FEATURED POST
   ============================================================ */
.bl-featured {
    padding: 0 0 clamp(48px, 8vw, 80px);
    background: #ffffff;
}

.bl-featured__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    text-decoration: none;
    color: inherit;
    background: #FAF6F3;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.bl-featured__card:hover {
    box-shadow: 0 16px 48px rgba(10, 10, 10, 0.06);
}

.bl-featured__image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.bl-featured__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bl-featured__card:hover .bl-featured__image {
    transform: scale(1.04);
}

.bl-featured__image--placeholder {
    background: linear-gradient(135deg, #e8e2da 0%, #d9d0c4 100%);
}

.bl-featured__body {
    padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0;
}

.bl-featured__label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #C6A75E;
    margin-bottom: 16px;
}

.bl-featured__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 400;
    color: #0a0a0a;
    margin: 0 0 16px;
    line-height: 1.25;
}

.bl-featured__excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.75;
    color: #6b6b6b;
    margin: 0 0 20px;
}

.bl-featured__meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: #999;
    margin-bottom: 24px;
}

.bl-featured__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #C6A75E;
    transition: gap 0.3s ease;
}

.bl-featured__card:hover .bl-featured__btn {
    gap: 12px;
}


/* ============================================================
   4. POSTS GRID
   ============================================================ */
.bl-grid-section {
    padding: clamp(48px, 8vw, 80px) 0 clamp(64px, 10vw, 112px);
    background: #ffffff;
}

.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 40px);
}


/* ============================================================
   5. POST CARD
   ============================================================ */
.bl-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #FAF6F3;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.bl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 10, 10, 0.06);
}

.bl-card__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.bl-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bl-card:hover .bl-card__image {
    transform: scale(1.05);
}

.bl-card__image--placeholder {
    background: linear-gradient(135deg, #e8e2da 0%, #d9d0c4 100%);
}

.bl-card__body {
    padding: clamp(20px, 3vw, 28px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bl-card__date {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: #999;
    margin-bottom: 10px;
}

.bl-card__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 400;
    color: #0a0a0a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.bl-card__excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: #6b6b6b;
    margin: 0 0 16px;
    flex: 1;
}

.bl-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #C6A75E;
    transition: gap 0.3s ease;
}

.bl-card:hover .bl-card__link {
    gap: 10px;
}


/* ============================================================
   6. EMPTY STATE
   ============================================================ */
.bl-empty {
    text-align: center;
    padding: clamp(48px, 8vw, 96px) 0;
}

.bl-empty__icon {
    color: #C6A75E;
    opacity: 0.4;
    margin-bottom: 20px;
}

.bl-empty__text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #6b6b6b;
}


/* ============================================================
   7. PAGINATION
   ============================================================ */
.bl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: clamp(40px, 6vw, 64px);
    padding-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid rgba(10, 10, 10, 0.06);
}

.bl-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #0a0a0a;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease;
}

.bl-pagination__btn:hover {
    background: #FAF6F3;
    color: #C6A75E;
}

.bl-pagination__pages {
    display: flex;
    gap: 4px;
}

.bl-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b6b6b;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s ease, color 0.2s ease;
}

.bl-pagination__page:hover {
    background: #FAF6F3;
    color: #0a0a0a;
}

.bl-pagination__page--active {
    background: #0a0a0a;
    color: #ffffff;
}

.bl-pagination__page--active:hover {
    background: #0a0a0a;
    color: #ffffff;
}


/* ============================================================
   8. BLOG POST – HERO
   ============================================================ */
.bp-hero {
    padding: clamp(56px, 10vw, 96px) 0 0;
    background: linear-gradient(180deg, #FAF6F3 0%, #ffffff 100%);
}

.bp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.bp-container--narrow {
    max-width: 780px;
}

.bp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: #999;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.bp-breadcrumb a {
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bp-breadcrumb a:hover {
    color: #C6A75E;
}

.bp-breadcrumb__sep {
    color: #ccc;
}

.bp-hero__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(32px, 5vw, 48px);
}

.bp-hero__date {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: #999;
    margin-bottom: 16px;
}

.bp-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: #0a0a0a;
    margin: 0;
    line-height: 1.2;
}

.bp-hero__image-wrap {
    border-radius: 6px;
    overflow: hidden;
    max-height: 520px;
}

.bp-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================================
   9. BLOG POST – CONTENT
   ============================================================ */
.bp-content {
    padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
    background: #ffffff;
}

.bp-body {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.92rem, 1.4vw, 1.02rem);
    font-weight: 300;
    line-height: 1.85;
    color: #3a3a3a;
}

.bp-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 400;
    color: #0a0a0a;
    margin: 2em 0 0.8em;
}

.bp-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0a0a0a;
    margin: 1.5em 0 0.6em;
}

.bp-body p {
    margin-bottom: 1.2em;
}

.bp-body img {
    border-radius: 4px;
    margin: 1.5em 0;
}

.bp-body ul,
.bp-body ol {
    padding-left: 24px;
    margin-bottom: 1.2em;
}

.bp-body li {
    margin-bottom: 6px;
}

.bp-body blockquote {
    margin: 1.5em 0;
    padding: 20px 24px;
    background: #FAF6F3;
    border-left: 3px solid #C6A75E;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #4a4a4a;
}

.bp-body a {
    color: #C6A75E;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bp-body a:hover {
    color: #b68e57;
}

/* Back link */
.bp-back {
    margin-top: clamp(32px, 5vw, 56px);
    padding-top: clamp(24px, 4vw, 40px);
    border-top: 1px solid rgba(10, 10, 10, 0.06);
}

.bp-back__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0a0a0a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bp-back__link:hover {
    color: #C6A75E;
}


/* ============================================================
   10. BLOG POST – RELATED
   ============================================================ */
.bp-related {
    padding: clamp(48px, 8vw, 80px) 0;
    background: #FAF6F3;
}

.bp-related__header {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 48px);
}

.bp-related__label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C6A75E;
    margin-bottom: 12px;
}

.bp-related__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: #0a0a0a;
    margin: 0;
}

.bp-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 40px);
}


/* ============================================================
   11. TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .bl-featured__card {
        grid-template-columns: 1fr;
    }

    .bl-featured__body {
        padding: clamp(24px, 4vw, 36px);
    }

    .bl-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   12. MOBILE (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
    .bl-hero {
        padding: clamp(56px, 10vw, 80px) 0 clamp(36px, 6vw, 48px);
    }

    .bl-grid {
        grid-template-columns: 1fr;
        gap: clamp(20px, 4vw, 32px);
    }

    .bl-pagination__btn {
        padding: 8px 12px;
        font-size: 0.78rem;
    }

    .bl-pagination__page {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .bp-hero__image-wrap {
        max-height: 320px;
        border-radius: 4px;
    }

    .bp-related__grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   13. SMALL MOBILE (≤ 479px)
   ============================================================ */
@media (max-width: 479px) {
    .bl-hero__title {
        font-size: 1.8rem;
    }

    .bl-featured__title {
        font-size: 1.2rem;
    }

    .bl-pagination__btn--prev,
    .bl-pagination__btn--next {
        display: none;
    }

    .bp-hero__title {
        font-size: 1.5rem;
    }
}


/* ============================================================
   14. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .bl-card,
    .bl-featured__card,
    .bl-featured__image,
    .bl-card__image,
    .bl-featured__btn,
    .bl-card__link,
    .bl-pagination__btn,
    .bl-pagination__page,
    .bp-back__link {
        transition: none;
    }

    .bl-card:hover,
    .bl-featured__card:hover .bl-featured__image,
    .bl-card:hover .bl-card__image {
        transform: none;
    }
}
