/* ==========================================================================
   BLOG STYLES - L'Échappée Bleue
   ========================================================================== */

/* Blog Listing Page
   ========================================================================== */

.blog-listing {
    padding: 4rem 0;
}

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

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

@media (max-width: 768px) {
    .blog-grid,
    .blog-grid--small {
        grid-template-columns: 1fr;
    }
}

/* Blog Card
   ========================================================================== */

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-primary, #1a5f7a);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-content time {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blog-card-content h2,
.blog-card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.blog-card-content h2 a,
.blog-card-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-content h2 a:hover,
.blog-card-content h3 a:hover {
    color: var(--color-primary, #1a5f7a);
}

.blog-card-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-link {
    display: inline-block;
    color: var(--color-primary, #1a5f7a);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-link:hover {
    color: var(--color-primary-dark, #134a5e);
}

/* Small Blog Card (related articles) */
.blog-grid--small .blog-card-content {
    padding: 1rem;
}

.blog-grid--small .blog-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Article Header
   ========================================================================== */

.article-header {
    background: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.52)), url('../img/uploads/bateau-hero.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 8rem 0 4rem;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-meta time {
    font-size: 0.9rem;
    opacity: 0.9;
}

.article-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.article-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Article Content
   ========================================================================== */

.article-content {
    padding: 4rem 0;
}

.container--narrow {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-featured-image {
    margin: 0 0 2.5rem;
}

.article-featured-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.article-featured-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.75rem;
    font-style: italic;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 3rem 0 1.25rem;
    line-height: 1.3;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

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

.article-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.75rem;
}

.article-content strong {
    color: #1a1a2e;
    font-weight: 600;
}

.article-content em {
    font-style: italic;
    color: #555;
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary, #1a5f7a);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 0;
}

/* Article CTA
   ========================================================================== */

.article-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.article-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.75rem !important;
}

.article-cta p {
    color: #555;
    margin-bottom: 1.5rem !important;
}

.article-cta .btn {
    margin: 0.5rem;
}

.article-cta .btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary, #1a5f7a);
    color: var(--color-primary, #1a5f7a);
}

.article-cta .btn--outline:hover {
    background: var(--color-primary, #1a5f7a);
    color: #fff;
}

/* Related Articles
   ========================================================================== */

.related-articles {
    background: #f8f9fa;
    padding: 4rem 0;
}

.related-articles h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 2rem;
}

/* Hero Small (for listing page)
   ========================================================================== */

.hero--small {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.52)), url('../img/uploads/bateau-hero.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 6rem 1.5rem 3rem;
}

.hero--small h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero--small p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .article-header {
        padding: 6rem 1rem 3rem;
    }
    
    .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-intro {
        font-size: 1rem;
    }
    
    .article-content {
        padding: 2.5rem 0;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }
    
    .article-cta {
        padding: 1.5rem;
    }
    
    .article-cta .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .hero--small {
        padding: 5rem 1rem 2rem;
        min-height: 30vh;
    }
}

/* Print Styles
   ========================================================================== */

@media print {
    .navbar,
    .footer,
    .article-cta,
    .related-articles {
        display: none;
    }
    
    .article-header {
        background: none;
        color: #000;
        padding: 2rem 0;
    }
    
    .article-content {
        padding: 1rem 0;
    }
}
