/* ============================================
   BLOG PAGE STYLES
   Mandataire Auto
   ============================================ */

:root {
    --primary: #00D9A5;
    --primary-dark: #00B88A;
    --bg-dark: #0a0f1c;
    --bg-card: #111827;
    --bg-input: #1a2234;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon { font-size: 24px; }
.logo-text { font-size: 20px; font-weight: 700; }
.logo-accent { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Blog Page */
.blog-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Header */
.blog-header {
    text-align: center;
    margin-bottom: 48px;
}

.header-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 217, 165, 0.1);
    border: 1px solid rgba(0, 217, 165, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 16px;
}

.blog-header h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.blog-header .accent {
    color: var(--primary);
}

.blog-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Featured Article */
.featured-section {
    margin-bottom: 48px;
}

.featured-article {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.featured-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 300px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.featured-content {
    padding: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.article-meta .category {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
}

.article-meta .date {
    color: var(--text-secondary);
    font-size: 13px;
}

.featured-content h2 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.featured-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* Categories */
.categories-section {
    margin-bottom: 32px;
}

.categories-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.category-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

/* Articles Grid */
.articles-section {
    margin-bottom: 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.article-image {
    height: 180px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-body {
    padding: 20px;
}

.article-body .article-meta {
    margin-bottom: 12px;
}

.article-body h3 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-body .read-time {
    font-size: 12px;
}

.load-more-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 16px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    border-color: var(--primary);
}

/* Newsletter CTA */
.newsletter-cta {
    background: linear-gradient(135deg, rgba(0, 217, 165, 0.1) 0%, rgba(0, 184, 138, 0.05) 100%);
    border: 1px solid rgba(0, 217, 165, 0.2);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
}

.cta-content h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
}

.cta-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.cta-form button {
    padding: 16px 32px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-form button:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 24px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .blog-header h1 {
        font-size: 32px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-cta {
        padding: 40px 24px;
    }

    .cta-form {
        flex-direction: column;
    }
}

