/* ============================================
   IMPAICT Blog — Styles
   Design system aligned with main site
   ============================================ */

/* --- Variables (match index.html) --- */
:root {
    --dark: #0B0F19;
    --dark-soft: #111827;
    --dark-card: #151C2C;
    --accent: #2E4A7A;
    --accent-light: #3B5E99;
    --accent-soft: rgba(46, 74, 122, 0.14);
    --accent-cool: #4A6FA5;
    --accent-cool-light: #6B8FC0;
    --gold: #C8A46E;
    --gold-light: #D4B87E;
    --text: #E6EDF3;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.06);
    --light-bg: #F0EDEA;
    --light-bg-card: #F5F3F0;
    --light-text: #2B2B2F;
    --light-text-muted: #6B6B72;
    --light-border: #E0DDDA;
    /* Category colors */
    --cat-ia: #2E4A7A;
    --cat-methodes: #C8A46E;
    --cat-retours: #10B981;
    --cat-ecosysteme: #8B5CF6;
}

/* --- Light theme override (article reading mode) --- */
body[data-theme="light"] {
    --dark: #F0EDEA;
    --dark-soft: #E8E5E1;
    --dark-card: #F5F3F0;
    --text: #2B2B2F;
    --text-muted: #6B6B72;
    --border: rgba(0, 0, 0, 0.08);
    --accent-cool-light: #2E4A7A;
}
/* mesh-bg hidden on articles via body.is-article — see above */
/* Nav, logo and footer stay dark in both modes */
body[data-theme="light"] .blog-nav {
    background: rgba(10, 14, 26, 0.7);
    border-bottom-color: var(--border);
    --text: #E6EDF3;
    --text-muted: #94A3B8;
}
body[data-theme="light"] .blog-nav .logo-text { color: #9CA3AF; }
body[data-theme="light"] .blog-nav__links a { color: #94A3B8; }
body[data-theme="light"] .blog-nav__links a:hover,
body[data-theme="light"] .blog-nav__link--active { color: #E6EDF3 !important; }
body[data-theme="light"] .blog-nav .lang-toggle {
    color: #94A3B8; border-color: rgba(255,255,255,0.12);
}
body[data-theme="light"] .blog-nav .lang-toggle:hover {
    color: #E6EDF3; border-color: rgba(255,255,255,0.25);
}
body[data-theme="light"] .blog-footer {
    background: #0B0F19;
    color: #94A3B8; border-top-color: rgba(255,255,255,0.06);
}
body[data-theme="light"] .blog-footer__logo .logo-text { color: #9CA3AF; }
body[data-theme="light"] .blog-footer a { color: #94A3B8; }
body[data-theme="light"] .blog-footer a:hover { color: #E6EDF3; }
body[data-theme="light"] .blog-article__content code {
    background: rgba(0, 0, 0, 0.05);
    color: #8B5E3C;
}
body[data-theme="light"] .blog-article__content pre {
    background: #2B2B2F;
    border-color: rgba(0, 0, 0, 0.1);
}
body[data-theme="light"] .blog-article__content pre code {
    color: #E6EDF3;
    background: none;
}
body[data-theme="light"] .blog-article__content blockquote {
    background: linear-gradient(135deg, rgba(46,74,122,0.06), transparent);
}
body[data-theme="light"] .blog-article__content a {
    color: #2E4A7A;
}
body[data-theme="light"] .blog-article__content a:hover {
    color: #9B7B3C;
}
body[data-theme="light"] .blog-input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #2B2B2F;
}
body[data-theme="light"] .blog-input::placeholder {
    color: #9B9BA2;
}
body[data-theme="light"] .blog-cta__share {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}
body[data-theme="light"] .blog-share-btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: #6B6B72;
}
body[data-theme="light"] .blog-share-btn:hover {
    color: #2B2B2F;
    background: rgba(0, 0, 0, 0.03);
}
body[data-theme="light"] .blog-cta__newsletter {
    background: linear-gradient(135deg, rgba(46,74,122,0.08), rgba(200,164,110,0.05));
    border-color: rgba(46,74,122,0.15);
}
body[data-theme="light"] .blog-comment {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}
/* Footer and lang-toggle stay dark in both modes — no light override */

/* --- Theme toggle button --- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(200, 164, 110, 0.15);
}
.theme-toggle:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(200, 164, 110, 0.1);
    box-shadow: 0 0 20px rgba(200, 164, 110, 0.3);
}
body[data-theme="light"] .theme-toggle {
    color: #2E4A7A;
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 0 12px rgba(46, 74, 122, 0.15);
}
body[data-theme="light"] .theme-toggle:hover {
    color: #1A2D4D;
    border-color: #2E4A7A;
    background: rgba(46, 74, 122, 0.08);
    box-shadow: 0 0 20px rgba(46, 74, 122, 0.3);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- Animated mesh background --- */
/* Hide global mesh on article pages (both modes) — only hero mesh shows */
body.is-article #mesh-bg {
    display: none;
}
/* Diagnostic: keep mesh visible but subtle in light mode */
body.is-diagnostic #mesh-bg {
    display: block;
}
body.is-diagnostic[data-theme="light"] #mesh-bg {
    opacity: 0.06;
}
#mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
nav, main, footer, section { position: relative; z-index: 1; }

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.container--narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   NAV
   ============================================ */
.blog-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.blog-nav__links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.blog-nav__links a:hover { color: var(--text); }
.blog-nav__link--active { color: var(--text) !important; }

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    user-select: none;
    text-decoration: none;
}
.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* --- 3D Cube in logo (same as homepage) --- */
.cube-scene {
    width: 28px;
    height: 28px;
    perspective: 350px;
    margin: 0 -2px;
    position: relative;
    z-index: 1;
    transform: translateY(2px);
}
.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}
.cube .face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    backface-visibility: hidden;
}
.face.front  { transform: translateZ(14px); }
.face.right  { transform: rotateY(90deg)  translateZ(14px); }
.face.back   { transform: rotateY(180deg) translateZ(14px); }
.face.left   { transform: rotateY(-90deg) translateZ(14px); }
.face.top    { transform: rotateX(90deg)  translateZ(14px); }
.face.bottom { transform: rotateX(-90deg) translateZ(14px); }

/* --- Language toggle --- */
.lang-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.lang-toggle:hover {
    color: var(--text);
    border-color: var(--accent-cool);
}

/* ============================================
   BLOG HERO
   ============================================ */
.blog-hero {
    padding: 8rem 0 3rem;
    text-align: center;
}
.blog-hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.blog-hero__subtitle {
    color: var(--accent-cool-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Article hero */
.blog-hero--article {
    padding: 8rem 0 3rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.blog-hero--article .blog-hero__title {
    text-align: left;
    max-width: 760px;
}
.blog-hero__cover {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.blog-hero__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-hero__cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11,15,25,0.6), rgba(11,15,25,0.95));
}
.blog-hero--article .container {
    position: relative;
    z-index: 1;
}

/* Back link */
.blog-back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.blog-back-link:hover { color: var(--text); }

/* Hero mesh canvas (when no cover image) */
.hero-mesh {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   BLOG LISTING
   ============================================ */
.blog-listing {
    padding: 2rem 0 6rem;
    background: var(--light-bg);
    color: var(--light-text);
}
.blog-listing .blog-empty {
    color: var(--light-text-muted);
}

/* Filters */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}
.blog-filter {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--light-text-muted);
    border: 1px solid var(--light-border);
    transition: all 0.2s;
    cursor: pointer;
}
.blog-filter:hover {
    color: var(--light-text);
    border-color: var(--accent);
}
.blog-filter--active {
    color: white;
    background: var(--accent);
    border-color: var(--accent);
}

/* Category-specific filter colors */
.blog-filter[data-category="ia-strategie"].blog-filter--active {
    background: rgba(46,74,122,0.2);
    border-color: var(--cat-ia);
}
.blog-filter[data-category="methodes"].blog-filter--active {
    background: rgba(200,164,110,0.15);
    border-color: var(--cat-methodes);
}
.blog-filter[data-category="retours-experience"].blog-filter--active {
    background: rgba(16,185,129,0.15);
    border-color: var(--cat-retours);
}
.blog-filter[data-category="ecosysteme"].blog-filter--active {
    background: rgba(139,92,246,0.15);
    border-color: var(--cat-ecosysteme);
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Empty state */
.blog-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 0;
    font-size: 1.1rem;
}

/* ============================================
   BLOG CARD
   ============================================ */
.blog-card {
    background: var(--light-bg-card);
    border: 1px solid var(--light-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.blog-card:hover {
    transform: translateY(-6px);
}

/* Category-specific glow on hover */
.blog-card[data-category="ia-strategie"]:hover {
    box-shadow: 0 8px 32px rgba(46,74,122,0.25);
}
.blog-card[data-category="methodes"]:hover {
    box-shadow: 0 8px 32px rgba(200,164,110,0.2);
}
.blog-card[data-category="retours-experience"]:hover {
    box-shadow: 0 8px 32px rgba(16,185,129,0.2);
}
.blog-card[data-category="ecosysteme"]:hover {
    box-shadow: 0 8px 32px rgba(139,92,246,0.2);
}

/* Card image */
.blog-card__image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.blog-card:hover .blog-card__image {
    transform: scale(1.05);
}

/* Placeholder (no image) — animated card mesh */
.blog-card__placeholder {
    display: block;
    aspect-ratio: 16 / 10;
    background: #1A2844;
    position: relative;
    overflow: hidden;
}
.card-mesh {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Card body */
.blog-card__body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category badge */
.blog-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    width: fit-content;
    transition: opacity 0.2s;
}
.blog-card__category[data-category="ia-strategie"] {
    background: rgba(46,74,122,0.2);
    color: var(--accent-cool-light);
}
.blog-card__category[data-category="methodes"] {
    background: rgba(200,164,110,0.15);
    color: var(--gold-light);
}
.blog-card__category[data-category="retours-experience"] {
    background: rgba(16,185,129,0.15);
    color: #34D399;
}
.blog-card__category[data-category="ecosysteme"] {
    background: rgba(139,92,246,0.15);
    color: #A78BFA;
}

.blog-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}
.blog-card__title a {
    color: var(--light-text);
    transition: color 0.2s;
}
.blog-card__title a:hover {
    color: var(--accent);
}

.blog-card__excerpt {
    color: var(--light-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.blog-card__footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light-text-muted);
    font-size: 0.8rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-border);
}
.blog-pagination__btn {
    color: var(--light-text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    transition: all 0.2s;
}
.blog-pagination__btn:hover {
    color: var(--light-text);
    border-color: var(--accent);
}
.blog-pagination__info {
    color: var(--light-text-muted);
    font-size: 0.85rem;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.blog-article-section {
    padding: 3rem 0 4rem;
}

.blog-article__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Prose styling */
.blog-article__content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text);
}
.blog-article__content > *:first-child::first-letter {
    float: left;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    line-height: 0.85;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: var(--accent-cool);
}

.blog-article__content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.blog-article__content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.blog-article__content p {
    margin-bottom: 1.25rem;
}

.blog-article__content a {
    color: var(--accent-cool-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.blog-article__content a:hover {
    color: var(--gold-light);
}

.blog-article__content blockquote {
    border-left: 4px solid var(--accent);
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(46,74,122,0.08), transparent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text);
    position: relative;
}
.blog-article__content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.2em;
    left: 0.3em;
    font-size: 3rem;
    color: var(--accent-cool);
    opacity: 0.3;
    font-family: 'Space Grotesk', sans-serif;
}

.blog-article__content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    background: rgba(255,255,255,0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--gold-light);
}
.blog-article__content pre {
    background: var(--dark-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}
.blog-article__content pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

.blog-article__content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-article__content ul,
.blog-article__content ol {
    margin: 1rem 0 1.25rem 1.5rem;
}
.blog-article__content li {
    margin-bottom: 0.4rem;
}

/* Category-specific drop cap colors */
[data-category="ia-strategie"] .blog-article__content > *:first-child::first-letter {
    color: var(--accent-cool);
}
[data-category="methodes"] .blog-article__content > *:first-child::first-letter {
    color: var(--gold);
}
[data-category="retours-experience"] .blog-article__content > *:first-child::first-letter {
    color: #10B981;
}
[data-category="ecosysteme"] .blog-article__content > *:first-child::first-letter {
    color: #8B5CF6;
}

/* ============================================
   CTA ZONE
   ============================================ */
.blog-cta {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.blog-cta__block {
    padding: 2rem;
    border-radius: 12px;
}
.blog-cta__block h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.blog-cta__block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Share */
.blog-cta__share {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}
.blog-cta__share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
}
.blog-share-btn:hover {
    color: var(--text);
    border-color: var(--accent-cool);
    background: rgba(255,255,255,0.03);
}
.blog-share-btn svg { flex-shrink: 0; }

/* Newsletter */
.blog-cta__newsletter {
    background: linear-gradient(135deg, rgba(46,74,122,0.15), rgba(200,164,110,0.08));
    border: 1px solid rgba(46,74,122,0.3);
}
.blog-cta__newsletter p { color: var(--text); }

/* Contact */
.blog-cta__contact {
    background: linear-gradient(135deg, var(--accent), rgba(46,74,122,0.8));
    border: 1px solid rgba(255,255,255,0.1);
}
.blog-cta__contact h3 { color: #fff; }
.blog-cta__contact p { color: rgba(255,255,255,0.85); }

/* ============================================
   FORMS & BUTTONS
   ============================================ */
.blog-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.blog-input:focus {
    outline: none;
    border-color: var(--accent-cool);
}
.blog-input::placeholder {
    color: var(--text-muted);
}
.blog-textarea {
    resize: vertical;
    min-height: 80px;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.blog-btn--primary {
    background: var(--accent);
    color: white;
}
.blog-btn--primary:hover {
    background: var(--accent-light);
}
.blog-btn--ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.blog-btn--ghost:hover {
    color: var(--text);
    border-color: var(--accent-cool);
}
.blog-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Newsletter form */
.blog-newsletter-form__row {
    display: flex;
    gap: 0.5rem;
}
.blog-newsletter-form__row .blog-input {
    flex: 1;
}
.blog-newsletter-form__feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    min-height: 1.2em;
}
.blog-newsletter-form__feedback.success { color: #10B981; }
.blog-newsletter-form__feedback.error { color: #EF4444; }
.blog-newsletter-form__feedback.info { color: var(--accent-cool-light); }

/* Comment form */
.blog-comment-form {
    margin-bottom: 2rem;
    position: relative;
}
.blog-comment-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.blog-comment-form .blog-textarea {
    margin-bottom: 0.75rem;
}
.blog-comment-form__feedback {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}
.blog-comment-form__feedback.success { color: #10B981; }
.blog-comment-form__feedback.error { color: #EF4444; }

/* ============================================
   COMMENTS
   ============================================ */
.blog-comments {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.blog-comments__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.blog-comments__count {
    color: var(--text-muted);
    font-weight: 400;
}
.blog-comments__empty {
    color: var(--text-muted);
    font-style: italic;
}
.blog-comments__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.blog-comment {
    padding: 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.blog-comment__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.blog-comment__header strong {
    font-size: 0.95rem;
}
.blog-comment__header time {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.blog-comment__text {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ============================================
   FOOTER
   ============================================ */
.blog-footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.blog-footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.blog-footer__logo .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
    z-index: 2;
}
.blog-footer__logo .cube-scene {
    width: 28px;
    height: 28px;
    margin: 0 -3px;
    transform: translateY(2px);
}
.blog-footer__logo .face {
    font-size: 22px;
}
.blog-footer__brand {
    margin-bottom: 0.5rem;
}
.blog-footer__brand a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.blog-footer__brand a:hover { color: var(--text); }
.blog-footer__legal {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}
.blog-footer__legal a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.blog-footer__legal a:hover { color: var(--text); }
.blog-footer__legal span { color: var(--text-muted); }

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

/* Nav label toggle: full on desktop, short on mobile */
.nav-short { display: none; }
.nav-full { display: inline; }

@media (max-width: 768px) {
    .blog-nav {
        padding: 0.75rem 0.75rem;
    }
    .blog-nav__links {
        gap: 0.6rem;
    }
    .blog-nav__links a {
        font-size: 0.72rem;
    }
    .nav-short { display: inline; }
    .nav-full { display: none; }
    .logo-text { font-size: 1.2rem; }
    .cube-scene { width: 20px; height: 20px; }
    .cube-scene .face { font-size: 1.2rem; }

    .blog-hero {
        padding: 6rem 0 2rem;
    }
    .blog-hero__title {
        font-size: 2rem;
    }

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

    .blog-article__content {
        font-size: 1rem;
    }
    .blog-article__content > *:first-child::first-letter {
        font-size: 2.5em;
    }
    .blog-article__content h2 {
        font-size: 1.3rem;
    }

    .blog-article__meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

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

    .blog-newsletter-form__row {
        flex-direction: column;
    }

    .blog-cta__share-buttons {
        flex-direction: column;
    }

    .container { padding: 0 1rem; }
    .container--narrow { padding: 0 1rem; }
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-page {
    padding: 6rem 2rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}
.admin-page h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}
.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.admin-table td {
    font-size: 0.9rem;
}
.admin-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-badge--draft {
    background: rgba(200,164,110,0.15);
    color: var(--gold-light);
}
.status-badge--published {
    background: rgba(16,185,129,0.15);
    color: #34D399;
}

/* Admin form */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 800px;
}
.admin-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    display: block;
}
.admin-form select {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
}
.admin-form select option {
    background: var(--dark-card);
}
.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
}
.login-box h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.login-box .blog-input {
    margin-bottom: 0.75rem;
}
.login-box .blog-btn {
    width: 100%;
    justify-content: center;
}
.login-error {
    color: #EF4444;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}
