/*
Theme Name: MomentsCollectifs Blog
Theme URI: https://blog.momentscollectifs.fr
Author: MomentsCollectifs
Author URI: https://momentscollectifs.fr
Description: Theme WordPress personnalise pour le blog MomentsCollectifs - Design System v2 inspire de VidDay.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: momentscollectifs
Tags: blog, responsive, custom-menu, featured-images
*/

/* ==========================================================================
   CSS Variables - Design System MomentsCollectifs v2
   ========================================================================== */
:root {
    /* Primary - Bleu confiance */
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-300: #93C5FD;
    --primary-400: #60A5FA;
    --primary-500: #3B82F6;
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;
    --primary-800: #1E40AF;
    --primary-900: #1E3A8A;

    /* Accent - Corail doux */
    --accent-50: #FFF5F5;
    --accent-100: #FFE4E4;
    --accent-200: #FFCACA;
    --accent-300: #FFA8A8;
    --accent-400: #FF8080;
    --accent-500: #F56565;
    --accent-600: #E53E3E;
    --accent-700: #C53030;
    --accent-800: #9B2C2C;
    --accent-900: #742A2A;

    /* Secondary - Violet doux */
    --secondary-50: #FAF5FF;
    --secondary-100: #F3E8FF;
    --secondary-200: #E9D5FF;
    --secondary-300: #D8B4FE;
    --secondary-400: #C084FC;
    --secondary-500: #A855F7;
    --secondary-600: #9333EA;
    --secondary-700: #7C3AED;
    --secondary-800: #6B21A8;
    --secondary-900: #581C87;

    /* Teal - Accents positifs */
    --teal-50: #F0FDFA;
    --teal-100: #CCFBF1;
    --teal-200: #99F6E4;
    --teal-300: #5EEAD4;
    --teal-400: #2DD4BF;
    --teal-500: #14B8A6;
    --teal-600: #0D9488;
    --teal-700: #0F766E;
    --teal-800: #115E59;
    --teal-900: #134E4A;

    /* Neutral - Gris bleutes */
    --neutral-50: #F8FAFC;
    --neutral-100: #F1F5F9;
    --neutral-200: #E2E8F0;
    --neutral-300: #CBD5E1;
    --neutral-400: #94A3B8;
    --neutral-500: #64748B;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1E293B;
    --neutral-900: #0F172A;

    /* Surfaces */
    --surface-white: #FFFFFF;
    --surface-light: #F8FAFC;
    --surface-gray: #F1F5F9;

    /* Hero gradient */
    --hero-start: #0F172A;
    --hero-end: #1E3A5F;

    /* Text */
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    /* Typography */
    --font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-handwritten: "Caveat", cursive;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--surface-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.5px;
}

h3 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
}

h4 {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--surface-white);
    border-bottom: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.site-logo a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--primary-600);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neutral-800);
    margin: 6px 0;
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-600);
    color: var(--surface-white);
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface-white);
    color: var(--text-primary);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-400);
}

.btn-accent {
    background: var(--accent-500);
    color: var(--surface-white);
}

.btn-accent:hover {
    background: var(--accent-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--neutral-100);
    color: var(--text-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

/* ==========================================================================
   Hero Section (for pages)
   ========================================================================== */
.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
    position: relative;
    overflow: hidden;
}

.page-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.03'%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;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 16px;
    color: var(--surface-white);
}

.page-hero .subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Blog Grid
   ========================================================================== */
.blog-section {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

/* Article Card */
.article-card {
    background: var(--surface-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--neutral-300);
}

.article-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-image .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--primary-600);
    color: var(--surface-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-image .category-badge.accent {
    background: var(--accent-500);
}

.article-card-image .category-badge.teal {
    background: var(--teal-600);
}

.article-card-content {
    padding: 24px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-card-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-card-meta .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
}

.article-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card h3 a:hover {
    color: var(--primary-600);
}

.article-card .excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 14px;
    transition: gap var(--transition-normal);
}

.read-more:hover {
    gap: 10px;
}

.read-more svg {
    width: 16px;
    height: 16px;
}

/* Featured Article */
.featured-article {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.featured-article .article-card-image {
    aspect-ratio: auto;
    min-height: 400px;
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.featured-article .article-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.featured-article h3 {
    font-size: 28px;
}

/* ==========================================================================
   Single Article
   ========================================================================== */
.single-article {
    padding: 140px 0 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 48px;
}

.article-header .category-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.article-header h1 {
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 15px;
}

.article-meta .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-meta .author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface-white);
    font-weight: 700;
    font-size: 18px;
}

.article-meta .author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.article-featured-image {
    margin-bottom: 48px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-featured-image img {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
}

/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2 {
    margin-top: 48px;
    margin-bottom: 24px;
    font-size: 28px;
    color: var(--text-primary);
}

.article-content h3 {
    margin-top: 36px;
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.article-content a {
    color: var(--primary-600);
    text-decoration: underline;
    text-decoration-color: var(--primary-200);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast);
}

.article-content a:hover {
    text-decoration-color: var(--primary-600);
}

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content ul {
    list-style: none;
}

.article-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary-600);
    border-radius: 50%;
}

.article-content ol {
    list-style: none;
    counter-reset: item;
}

.article-content ol li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 12px;
    counter-increment: item;
}

.article-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--primary-600);
    color: var(--surface-white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content blockquote {
    margin: 40px 0;
    padding: 32px 40px;
    background: var(--primary-50);
    border-left: 4px solid var(--primary-600);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: 32px 0;
    box-shadow: var(--shadow-md);
}

.article-content pre {
    background: var(--neutral-900);
    color: var(--neutral-200);
    padding: 24px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 32px 0;
    font-size: 15px;
}

.article-content code {
    background: var(--neutral-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-600);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Article Footer */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--neutral-200);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.article-tags a {
    padding: 8px 16px;
    background: var(--neutral-100);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.article-tags a:hover {
    background: var(--primary-600);
    color: var(--surface-white);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--surface-white);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.sidebar-widget h4 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-600);
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 12px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-family);
    transition: border-color var(--transition-fast);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.search-form button {
    padding: 14px 20px;
    background: var(--primary-600);
    border: none;
    border-radius: var(--radius-md);
    color: var(--surface-white);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-form button:hover {
    background: var(--primary-700);
}

/* Categories Widget */
.categories-list li {
    margin-bottom: 12px;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--neutral-100);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.categories-list li a:hover {
    background: var(--primary-100);
    color: var(--primary-700);
}

.categories-list li a .count {
    background: var(--neutral-200);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-muted);
}

/* Recent Posts Widget */
.recent-posts li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--neutral-100);
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts li .thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.recent-posts li .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-posts li .content h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.recent-posts li .content h5 a:hover {
    color: var(--primary-600);
}

.recent-posts li .content .date {
    font-size: 13px;
    color: var(--text-muted);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
    color: var(--surface-white);
    border: none;
}

.newsletter-widget h4 {
    color: var(--surface-white);
    border-bottom-color: var(--primary-400);
}

.newsletter-widget p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--surface-white);
    margin-bottom: 12px;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-400);
}

.newsletter-form button {
    width: 100%;
    background: var(--surface-white);
    color: var(--primary-600);
}

.newsletter-form button:hover {
    background: var(--neutral-100);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--surface-white);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--neutral-800);
    color: var(--surface-white);
    border-color: var(--neutral-800);
}

.pagination .current {
    background: var(--primary-600);
    color: var(--surface-white);
    border-color: var(--primary-600);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--neutral-200);
}

.comments-title {
    margin-bottom: 40px;
}

.comment-list {
    list-style: none;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--neutral-100);
}

.comment .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-date {
    font-size: 14px;
    color: var(--text-muted);
}

.comment-content p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.comment-reply-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-600);
}

.children {
    margin-left: 76px;
    margin-top: 32px;
}

/* Comment Form */
.comment-respond {
    margin-top: 60px;
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form-author,
.comment-form-email {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-family);
    transition: all var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--neutral-900);
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--surface-white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.footer-brand .footer-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand p {
    color: var(--neutral-400);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--neutral-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-600);
    color: var(--surface-white);
}

.footer-column h4 {
    color: var(--surface-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column ul li a {
    color: var(--neutral-400);
    font-size: 15px;
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--surface-white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--neutral-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--neutral-400);
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--neutral-400);
    font-size: 14px;
}

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

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-404 {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary-600);
    margin-bottom: 24px;
}

.error-404 h2 {
    margin-bottom: 16px;
}

.error-404 p {
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-article {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .featured-article .article-card-image {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        min-height: 300px;
    }

    .featured-article .article-card-content {
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        padding: 32px;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-article {
        grid-column: span 1;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 20px;
    }

    .footer-brand .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .article-meta {
        flex-direction: column;
        gap: 16px;
    }

    .children {
        margin-left: 20px;
    }

    .comment-form-author,
    .comment-form-email {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .article-card-content {
        padding: 20px;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.wp-block-image {
    margin: 32px 0;
}

.wp-block-image img {
    border-radius: var(--radius-lg);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Admin Bar Adjustment */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--neutral-200);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary-600);
    width: 0%;
    transition: width 0.1s linear;
}

/* ==========================================================================
   Mobile Menu (Open State)
   ========================================================================== */
@media (max-width: 768px) {
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--surface-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
    }

    .main-navigation.is-open {
        opacity: 1;
        visibility: visible;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        text-align: center;
    }

    .main-navigation .nav-menu li a {
        font-size: 24px;
        font-weight: 700;
    }

    .main-navigation .btn {
        margin-top: 20px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */
.article-share {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--neutral-200);
}

.article-share span {
    font-weight: 600;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-100);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: var(--surface-white);
}

.share-btn.linkedin:hover {
    background: #0A66C2;
    color: var(--surface-white);
}

.share-btn.facebook:hover {
    background: #1877F2;
    color: var(--surface-white);
}

.share-btn.copied {
    background: var(--teal-500);
    color: var(--surface-white);
}

/* ==========================================================================
   Author Box
   ========================================================================== */
.author-box {
    padding: 60px 0;
    background: var(--neutral-100);
}

.author-box-content {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--surface-white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.author-avatar-large {
    flex-shrink: 0;
}

.author-avatar-large img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-box .author-info h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.author-box .author-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.author-box .author-info p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Related Posts Section
   ========================================================================== */
.related-posts-section {
    padding: 80px 0;
    background: var(--surface-light);
}

.related-posts-section .section-title {
    text-align: center;
    margin-bottom: 48px;
}

/* ==========================================================================
   No Posts / Empty State
   ========================================================================== */
.no-posts {
    text-align: center;
    padding: 80px 24px;
    background: var(--surface-white);
    border-radius: var(--radius-xl);
}

.no-posts h2 {
    margin-bottom: 16px;
}

.no-posts p {
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-posts .search-form {
    max-width: 500px;
    margin: 0 auto;
}

.no-posts .search-form.large {
    display: flex;
    gap: 12px;
}

.no-posts .search-form.large input {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
}

/* ==========================================================================
   Placeholder Image
   ========================================================================== */
.placeholder-image {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
    position: relative;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-600);
    border-radius: 50%;
    opacity: 0.3;
}

/* ==========================================================================
   Page Content
   ========================================================================== */
.page-content {
    padding: 0 0 80px;
}

/* ==========================================================================
   Comments Section Wrapper
   ========================================================================== */
.comments-section {
    padding: 0 0 80px;
}

/* ==========================================================================
   Error Actions
   ========================================================================== */
.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
