/* Blog Specific Styles */

/* Blog Main Layout */
.blog-main {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 160px);
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.blog-header h1 {
    color: #1a237e;
    margin-bottom: 1rem;
}

.blog-header p {
    color: #666;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #1976d2;
}

.blog-card.featured {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #1976d2;
}

.blog-content {
    padding: 2.5rem;
}

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

.category {
    background: #1976d2;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.blog-card time {
    color: #666;
    font-size: 0.9rem;
}

.blog-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card h2 a {
    color: #1a237e;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: #1976d2;
}

.blog-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    color: #1976d2;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border: 2px solid #1976d2;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-2px);
}

/* Blog Sidebar */
.blog-sidebar {
    margin-top: 2rem;
}

.sidebar-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    color: #1a237e;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    display: block;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-list a:hover {
    background: #1976d2;
    color: white;
    transform: translateX(5px);
}

.newsletter-cta {
    display: inline-block;
    background: #ff5722;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.newsletter-cta:hover {
    background: #e64a19;
    transform: translateY(-2px);
}

/* Article Page Styles */
.article-main {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 160px);
}

.article-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    padding: 3rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #1976d2;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

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

.article-header h1 {
    font-size: 2.5rem;
    color: #1a237e;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-intro {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.article-body {
    padding: 3rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body h2 {
    color: #283593;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3f2fd;
}

.article-body h3 {
    color: #3949ab;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #444;
    text-align: justify;
}

.article-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body ul li {
    margin-bottom: 0.8rem;
    color: #444;
}

.article-footer {
    padding: 3rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.share-buttons {
    margin-bottom: 2rem;
}

.share-buttons h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.share-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    background: #1976d2;
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: #1565c0;
    transform: translateY(-2px);
}

.related-articles {
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.related-articles h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles ul li {
    margin-bottom: 1rem;
}

.related-articles ul li a {
    display: block;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    color: #1a237e;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-articles ul li a:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    transform: translateX(5px);
}

/* Category-specific styling */
.category {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.category:contains("Économie") {
    background: #4caf50;
    color: white;
}

.category:contains("Technologie") {
    background: #2196f3;
    color: white;
}

.category:contains("Culture") {
    background: #9c27b0;
    color: white;
}

.category:contains("Environnement") {
    background: #8bc34a;
    color: white;
}

.category:contains("Politique") {
    background: #ff5722;
    color: white;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-card h2 {
        font-size: 1.3rem;
    }

    .article-header {
        padding: 2rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-intro {
        font-size: 1.1rem;
    }

    .article-body {
        padding: 2rem;
        font-size: 1rem;
    }

    .article-footer {
        padding: 2rem;
    }

    .share-btn {
        display: block;
        margin-bottom: 1rem;
        margin-right: 0;
        text-align: center;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .sidebar-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 1rem;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .blog-content {
        padding: 1rem;
    }

    .article-header {
        padding: 1.5rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-body {
        padding: 1.5rem;
    }

    .article-footer {
        padding: 1.5rem;
    }

    .sidebar-section {
        padding: 1rem;
    }
}

/* Print Styles for Articles */
@media print {
    .article-main {
        background: white;
    }

    .article-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .share-buttons,
    .related-articles {
        display: none;
    }

    .article-body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .article-header {
        background: white;
        border-bottom: 2px solid #ccc;
    }

    .breadcrumb {
        display: none;
    }
}
