/*
 * ============================================================================
 * FILE: assets/css/style.css
 * TIME ZONE: GMT+0 (Burkina Faso)
 * CREATION DATE: 20-05-2026 14:52
 * MODIFICATION DATE: 20-05-2026 16:41
 * ============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Merriweather:wght@400;700&family=Source+Sans+3:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary-color: #EF2B2D;
    --secondary-color: #009A44;
    --accent-color: #FCD116;
    --bg-light: #FAFAF8;
    --text-main: #1A1A1A;
    --text-muted: #5A5A5A;
    --border-color: #E0E0E0;
    --card-bg: #FFFFFF;
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-ui: 'Inter', sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);

    --footer-bg: #FFFFFF;
    --footer-text: var(--text-main);
    --footer-muted: var(--text-muted);
    --footer-title: var(--text-main);
    --footer-border: var(--border-color);
}

body.dark-mode {
    --bg-light: #1A1A1A;
    --text-main: #FAFAF8;
    --text-muted: #A0A0A0;
    --border-color: #3A3A3A;
    --card-bg: #2A2A2A;

    --footer-bg: #1E1E1E;
    --footer-text: #FAFAF8;
    --footer-muted: #A0A0A0;
    --footer-title: #FAFAF8;
    --footer-border: #3A3A3A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Header */
.site-header {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--secondary-color);
}

/* Custom CSS Logo */
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 65px;
    width: auto;
    vertical-align: middle;
    transition: transform 0.2s;
    border-radius: var(--radius-sm);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-ui);
    font-weight: 500;
    color: var(--text-main);
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    min-height: 400px;
}

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

.hero-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 100%;
}

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: white;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-excerpt {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-meta {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-family: var(--font-ui);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background 0.3s, transform 0.2s;
    text-align: center;
    align-self: flex-start;
}

.btn-primary:hover {
    background-color: #c92226;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-family: var(--font-ui);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 3.5rem auto 3rem;
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
}

.content-area {
    flex: 2;
}

.sidebar {
    flex: 1;
}

.section-title {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 2rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: var(--text-main);
}

.card-title a:hover {
    color: var(--secondary-color);
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.card-meta {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Sidebar Widgets */
.widget {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.about-widget {
    text-align: center;
}

.about-avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--secondary-color);
}

.about-widget p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.widget-link {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.9rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-ui);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.tag-badge:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.newsletter-widget {
    background: var(--secondary-color);
    color: white;
}

.newsletter-widget .widget-title {
    border-bottom-color: rgba(255,255,255,0.2);
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-family: var(--font-ui);
}

.newsletter-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-color);
    color: var(--text-main);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 0;
    border-top: 1px solid var(--footer-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    color: var(--footer-text);
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-text {
    color: var(--footer-muted);
    font-size: 0.95rem;
}

.footer-title {
    color: var(--footer-title);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--footer-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    color: var(--text-main);
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.footer-bottom {
    background: #121212;
    padding: 1.5rem;
    text-align: center;
    color: #A0A0A0;
    font-size: 0.9rem;
    font-family: var(--font-ui);
    border-top: 1px solid #1E1E1E;
}

/* Burkina Flag Divider */
.bf-divider {
    position: relative;
    height: 8px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    width: 100%;
}

.bf-divider-red {
    height: 4px;
    background-color: #EF2B2D;
}

.bf-divider-green {
    height: 4px;
    background-color: #009A44;
}

.bf-divider-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FCD116;
    font-size: 1.2rem;
    z-index: 10;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.25rem;
}

/* Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to content (accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 200;
    font-family: var(--font-ui);
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* Responsive — Mobile First Breakpoints */

/* ≤ 1280px */
@media (max-width: 1280px) {
    .header-container,
    .main-container,
    .footer-content {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ≤ 1024px */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
    }
    .hero-image {
        min-height: 250px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* ≤ 768px */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        gap: 2rem;
    }
    .sidebar {
        order: 2;
    }
    .hamburger {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: var(--shadow-md);
        gap: 0;
        z-index: 99;
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .header-container {
        position: relative;
    }
    .hero-content {
        padding: 2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ≤ 480px */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-excerpt {
        font-size: 1rem;
    }
    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .card-image {
        height: 160px;
    }
}
