/**
 * ReviCare Blog - Styles
 * CSS externalisé pour de meilleures performances (mise en cache navigateur)
 */

/* ==========================================================================
   Variables CSS
   ========================================================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Header
   ========================================================================== */
.blog-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}
.blog-header.scrolled {
    box-shadow: var(--shadow-md);
}
.blog-header .container,
.blog-header .container-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blog-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-logo-img {
    height: 36px;
    width: auto;
}
.blog-logo span { color: var(--text-secondary); font-weight: 400; }
.blog-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}
.blog-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.blog-nav .btn-primary {
    background: var(--primary);
    color: #fff;
}
.blog-nav .btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-primary);
}
.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Hero (Shared pattern)
   ========================================================================== */
.blog-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.blog-hero .container {
    position: relative;
    z-index: 1;
}
.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}
.blog-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.blog-hero-stat {
    text-align: center;
}
.blog-hero-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}
.blog-hero-stat span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ==========================================================================
   Pillar Sections (Index page)
   ========================================================================== */
.pillars { padding: 80px 0; }
.pillar-section { margin-bottom: 64px; }
.pillar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}
.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pillar-icon svg {
    width: 24px;
    height: 24px;
}
.pillar-icon.e-reputation { background: linear-gradient(135deg, #fef3c7, #fcd34d); color: #92400e; }
.pillar-icon.google-business { background: linear-gradient(135deg, #dbeafe, #60a5fa); color: #1e40af; }
.pillar-icon.acquisition { background: linear-gradient(135deg, #d1fae5, #34d399); color: #065f46; }
.pillar-header-text h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 4px;
}
.pillar-header-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.pillar-count {
    margin-left: auto;
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   Article Cards (Index page)
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.article-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.article-card-image {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.article-card-image.has-image {
    background-size: cover;
    background-position: center;
}
/* Hide decorative overlay and icon when real image is present */
.article-card-image.has-image::before,
.article-card-image.has-image .article-card-image-icon {
    display: none;
}
.article-card-image.e-reputation { background-color: #f59e0b; }
.article-card-image.google-business { background-color: #3b82f6; }
.article-card-image.acquisition { background-color: #10b981; }
.article-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.article-card-image-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.article-card-image-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}
.article-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
}
.article-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
    flex: 1;
}
.article-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.read-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}
.article-card:hover .read-more svg {
    transform: translateX(4px);
}

/* ==========================================================================
   Article Meta (Shared)
   ========================================================================== */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.article-meta svg {
    width: 14px;
    height: 14px;
}
.article-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Tags
   ========================================================================== */
.article-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
}
.tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   Breadcrumb (Article page)
   ========================================================================== */
.breadcrumb {
    padding: 24px 0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 4px;
}
.breadcrumb-separator svg {
    width: 16px;
    height: 16px;
}
.breadcrumb-current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   Article Hero (Article page)
   ========================================================================== */
.article-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    padding: 60px 0 80px;
    margin-bottom: -40px;
    position: relative;
}
.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ==========================================================================
   Article Wrapper (Article page)
   ========================================================================== */
.article-wrapper {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 56px 64px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}
.article-header { margin-bottom: 40px; text-align: center; }
.article-pillar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-pillar-badge.e-reputation { background: #fef3c7; color: #92400e; }
.article-pillar-badge.google-business { background: #dbeafe; color: #1e40af; }
.article-pillar-badge.acquisition { background: #d1fae5; color: #065f46; }
.article-pillar-badge svg {
    width: 14px;
    height: 14px;
}

/* Article header meta (centered, for article page) */
.article-header .article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.article-header .article-meta svg {
    width: 16px;
    height: 16px;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.article-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}
.article-header .article-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.article-header .tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

/* ==========================================================================
   Table of Contents (Article page)
   ========================================================================== */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 40px;
}
.toc-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-title svg {
    width: 18px;
    height: 18px;
}
.toc-list {
    list-style: none;
}
.toc-list li {
    margin-bottom: 10px;
}
.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}
.toc-list a:hover {
    color: var(--primary);
}
.toc-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}
.toc-list a:hover::before {
    background: var(--primary);
}

/* ==========================================================================
   Article Content (Article page)
   ========================================================================== */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 20px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    scroll-margin-top: 100px;
}
.article-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 36px 0 14px;
    color: var(--text-primary);
}
.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--text-primary);
}
.article-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}
.article-content ul, .article-content ol {
    margin: 24px 0;
    padding-left: 28px;
    color: var(--text-secondary);
}
.article-content li {
    margin-bottom: 12px;
    padding-left: 8px;
}
.article-content li::marker {
    color: var(--primary);
}
.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.article-content a:hover {
    color: var(--primary-dark);
}
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 28px;
    margin: 32px 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.article-content blockquote p:last-child {
    margin-bottom: 0;
}
.article-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 32px 0;
    font-size: 0.9rem;
}
.article-content code {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    font-size: 0.9em;
}
.article-content p code {
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: 6px;
    color: #e11d48;
    border: 1px solid var(--border);
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}
.article-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 48px 0;
}
.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Article Footer (Article page)
   ========================================================================== */
.article-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.share-section h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.share-buttons {
    display: flex;
    gap: 10px;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.share-btn svg {
    width: 20px;
    height: 20px;
}
.share-btn.twitter {
    background: #e8f5fd;
    color: #1da1f2;
}
.share-btn.twitter:hover {
    background: #1da1f2;
    color: #fff;
}
.share-btn.linkedin {
    background: #e8f4f9;
    color: #0077b5;
}
.share-btn.linkedin:hover {
    background: #0077b5;
    color: #fff;
}
.share-btn.copy {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.share-btn.copy:hover {
    background: var(--text-primary);
    color: #fff;
}
.back-to-blog {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s;
}
.back-to-blog:hover {
    gap: 12px;
}
.back-to-blog svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Related Articles (Article page)
   ========================================================================== */
.related-section {
    margin-bottom: 48px;
}
.related-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.related-section-header svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}
.related-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.related-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.related-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.related-card-meta svg {
    width: 14px;
    height: 14px;
}
.related-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}
.related-card p {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}
.related-card-link {
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.related-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}
.related-card:hover .related-card-link svg {
    transform: translateX(4px);
}

/* ==========================================================================
   CTA Sections
   ========================================================================== */
.cta-section,
.cta-box {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: var(--radius-lg);
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box {
    padding: 56px;
    margin-bottom: 48px;
}
.cta-section {
    margin-top: 64px;
}
.cta-section::before,
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.cta-section *,
.cta-box * {
    position: relative;
    z-index: 1;
}
.cta-section h2,
.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}
.cta-box h2 {
    font-size: 1.75rem;
}
.cta-section p,
.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
    font-size: 1.1rem;
}
.cta-box p {
    margin-bottom: 28px;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--primary);
    padding: 16px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}
.cta-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}
.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==========================================================================
   404 Not Found
   ========================================================================== */
.not-found {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: 600px;
}
.not-found-icon {
    width: 80px;
    height: 80px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.not-found-icon svg {
    width: 40px;
    height: 40px;
    color: #ef4444;
}
.not-found h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.not-found p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.1rem;
}
.not-found-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.not-found-btn:hover {
    background: var(--primary-dark);
}
.not-found-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Footer - Matches landing page style
   ========================================================================== */
.blog-footer {
    background: linear-gradient(135deg, #4338ca, #6366f1);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 80px;
}
.blog-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.blog-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.blog-footer-logo-img {
    height: 32px;
    width: auto;
}
.blog-footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.blog-footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 300px;
}
.blog-footer-links h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 1rem;
}
.blog-footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.blog-footer-links a:hover {
    color: #fff;
}
.blog-footer-bottom {
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}
.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .blog-footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .blog-hero { padding: 60px 0; }
    .blog-hero h1 { font-size: 2rem; }
    .blog-hero p { font-size: 1rem; }
    .blog-hero-stats { gap: 24px; }
    .blog-hero-stat strong { font-size: 1.5rem; }

    /* Article wrapper */
    .article-wrapper { padding: 32px 24px; }
    .article-header h1 { font-size: 1.75rem; }
    .article-content { font-size: 1rem; }
    .article-content h2 { font-size: 1.5rem; }
    .article-content h3 { font-size: 1.25rem; }

    /* Grids */
    .articles-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }

    /* Pillars */
    .pillar-header { flex-wrap: wrap; }
    .pillar-count { margin-left: 0; margin-top: 12px; width: 100%; text-align: center; }

    /* CTA */
    .cta-section { padding: 40px 24px; }
    .cta-section h2 { font-size: 1.5rem; }
    .cta-box { padding: 40px 24px; }

    /* Article footer */
    .article-footer { flex-direction: column; align-items: flex-start; }

    /* Mobile menu */
    .mobile-menu-btn { display: block; }
    .blog-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .blog-nav.active { display: flex; }
    .blog-nav a { padding: 12px 16px; }

    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
