/**
 * Blog Article Styles
 * Inspired by Generation Voyage style
 */

/* Article Content */
.blog-article__content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-article__content p {
    margin-bottom: 1.5rem;
}

.blog-article__content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.blog-article__content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #333;
}

/* Table of Contents */
.blog-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.blog-toc h2 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.blog-toc ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.blog-toc li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.blog-toc li:last-child {
    border-bottom: none;
}

.blog-toc a {
    color: #007bff;
    text-decoration: none;
}

.blog-toc a:hover {
    text-decoration: underline;
}

/* Item Card Inline (within article) */
.blog-item-card-inline {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    margin: 1.5rem 0;
}

.blog-item-card-inline:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.blog-item-card-inline__image {
    width: 100%;
    height: 200px;
}

@media (min-width: 768px) {
    .blog-item-card-inline__image {
        width: 300px;
        height: auto;
        min-height: 180px;
    }
}

.blog-item-card-inline__image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.blog-item-card-inline__content {
    padding: 1rem;
}

.blog-item-card-inline__meta span {
    margin-right: 1rem;
}

/* Practical Info Box */
.blog-practical-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.blog-practical-info strong {
    color: #007bff;
}

.blog-practical-info ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.blog-practical-info li {
    margin-bottom: 0.25rem;
}

/* Items List Shortcode */
.blog-block--items-list {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.blog-block--items-list h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-block--items-list .list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.blog-block--items-list .list-group-item:last-child {
    border-bottom: none;
}

/* Cluster Links (Maillage) */
.blog-block--cluster-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.blog-block--cluster-links h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.blog-block--cluster-links .card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-block--cluster-links .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* FAQ Section */
.blog-faq {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.blog-faq h2 {
    border-bottom: none;
    margin-top: 0;
}

.blog-faq h3 {
    font-size: 1.1rem;
    color: #007bff;
    margin-top: 1.5rem;
}

.blog-faq p {
    margin-bottom: 0;
}

/* Budget Section */
.blog-budget {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.blog-budget h2 {
    color: #2e7d32;
    border-bottom-color: #2e7d32;
}

/* CTA Button */
.blog-cta {
    text-align: center;
    margin: 2rem 0;
}

.blog-cta .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Delimiter */
.blog-delimiter {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    margin: 3rem 0;
}

/* Author Meta */
.blog-author-meta {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.blog-author-meta img {
    border-radius: 50%;
    margin-right: 1rem;
}

.blog-author-meta .author-info {
    flex-grow: 1;
}

.blog-author-meta .author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.blog-author-meta .publish-date {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 767px) {
    .blog-article__content {
        font-size: 1rem;
    }
    
    .blog-article__content h2 {
        font-size: 1.5rem;
    }
    
    .blog-article__content h3 {
        font-size: 1.25rem;
    }
    
    .blog-item-card-inline {
        flex-direction: column !important;
    }
    
    .blog-item-card-inline__image {
        width: 100%;
        height: 200px;
    }
}
