/* ============================================================
   SimRacing France — Design Gestion de Course
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg-0:      #030303;
    --bg-1:      #0d0d0d;
    --bg-2:      #141414;
    --bg-3:      #1e1e1e;
    --red:       #e50000;
    --red-dark:  #b00000;
    --orange:    #ff5500;
    --gold:      #f5c400;
    --white:     #ffffff;
    --gray-1:    #cccccc;
    --gray-2:    #888888;
    --gray-3:    #444444;
    --border:    #2a2a2a;
    --grad-fire: linear-gradient(135deg, var(--red), var(--orange));
    --grad-dark: linear-gradient(180deg, #0d0d0d 0%, #030303 100%);
    --shadow-red: 0 0 20px rgba(229,0,0,.35);
    --shadow-card: 0 4px 24px rgba(0,0,0,.7);
    --radius:    6px;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-0);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5 {
    font-family: var(--font-head);
    letter-spacing: .03em;
    line-height: 1.2;
    text-transform: uppercase;
}
h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }

/* ── Utility ─────────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.text-red  { color: var(--red); }
.text-gold { color: var(--gold); }
.sr-only   { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: var(--radius);
    transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
    background: var(--grad-fire);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(229,0,0,.55);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--red);
}
.btn-outline:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: .7rem; }

/* ── Section Titles ─────────────────────────────────────────── */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 48px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--grad-fire);
    margin-top: 10px;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header .section-title::after {
    margin: 10px auto 0;
}

/* ── Badge / Tag ─────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 12px;
    font-family: var(--font-head);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 2px;
    background: var(--grad-fire);
    color: #fff;
}
.badge-outline {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
}

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(3,3,3,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: border-color .3s;
}
.navbar.scrolled {
    border-bottom-color: var(--red);
    box-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: .08em;
    color: var(--white);
}
.navbar__logo:hover { color: var(--white); }
.navbar__logo-flag {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-template-rows:  repeat(2,1fr);
    width: 28px; height: 28px;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}
.navbar__logo-flag span:nth-child(odd)  { background: var(--white); }
.navbar__logo-flag span:nth-child(even) { background: var(--bg-0);  }
.navbar__logo span { color: var(--red); }

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.navbar__nav a {
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-1);
    position: relative;
    padding-bottom: 4px;
    transition: color .2s;
}
.navbar__nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--grad-fire);
    transition: width .25s;
}
.navbar__nav a:hover,
.navbar__nav a.active { color: var(--white); }
.navbar__nav a:hover::after,
.navbar__nav a.active::after { width: 100%; }

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.navbar__toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    transition: transform .3s, opacity .3s;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 68px;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    filter: brightness(.35);
    transform: scale(1.05);
    transition: transform 8s ease;
}
.hero:hover .hero__bg { transform: scale(1); }

/* Speed lines */
.hero__lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 3px,
        rgba(229,0,0,.04) 3px,
        rgba(229,0,0,.04) 4px
    );
    pointer-events: none;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(3,3,3,.8) 0%,
        rgba(3,3,3,.3) 50%,
        rgba(3,3,3,.7) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-family: var(--font-head);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--red);
}
.hero__eyebrow::before {
    content: '';
    display: block;
    width: 40px; height: 2px;
    background: var(--grad-fire);
}
.hero__title {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
}
.hero__title em {
    font-style: normal;
    color: var(--red);
    display: block;
}
.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--gray-1);
    margin-bottom: 40px;
    max-width: 540px;
    font-weight: 400;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .55rem;
    letter-spacing: .15em;
    color: var(--gray-2);
    animation: bounce 2s infinite;
}
.hero__scroll svg { color: var(--red); }
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Strip ────────────────────────────────────────────── */
.stats-strip {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.stats-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item__value {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}
.stat-item__label {
    font-size: .85rem;
    color: var(--gray-2);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 4px;
}

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--dark { background: var(--bg-1); }
.section--darker { background: var(--bg-0); }

/* ── Simulator Cards ────────────────────────────────────────── */
.sim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.sim-card {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    cursor: pointer;
}
.sim-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}
.sim-card__img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}
.sim-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.sim-card:hover .sim-card__img img { transform: scale(1.08); }

/* Image placeholder */
.sim-card__img--placeholder {
    background: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
    color: var(--gray-3);
    font-family: var(--font-head);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sim-card__body { padding: 20px; }
.sim-card__category {
    font-family: var(--font-head);
    font-size: .58rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}
.sim-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
}
.sim-card__desc {
    font-size: .9rem;
    color: var(--gray-2);
    line-height: 1.5;
}
.sim-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}
.sim-card__stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }
.sim-card__score {
    font-family: var(--font-head);
    font-size: .7rem;
    color: var(--gray-2);
}

/* ── Blog Cards ─────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}
.blog-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
    box-shadow: var(--shadow-red);
}
.blog-card__img {
    width: 100%;
    height: 210px;
    overflow: hidden;
    position: relative;
}
.blog-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.blog-card:hover .blog-card__img img { transform: scale(1.06); }
.blog-card__img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.blog-card__cat {
    font-family: var(--font-head);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
    border-left: 3px solid var(--red);
    padding-left: 8px;
}
.blog-card__date {
    font-size: .8rem;
    color: var(--gray-2);
}
.blog-card__title {
    font-size: 1.05rem;
    margin-bottom: 12px;
    line-height: 1.3;
}
.blog-card__title a { color: var(--white); }
.blog-card__title a:hover { color: var(--red); }
.blog-card__excerpt {
    font-size: .9rem;
    color: var(--gray-2);
    flex: 1;
    line-height: 1.6;
}
.blog-card__footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-card__author {
    font-size: .8rem;
    color: var(--gray-2);
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-card__author-dot {
    width: 24px; height: 24px;
    background: var(--grad-fire);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: .55rem;
    font-weight: 900;
    color: #fff;
}
.blog-card__read-more {
    font-family: var(--font-head);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s;
}
.blog-card__read-more:hover { gap: 10px; color: var(--orange); }

/* ── Blog Page Layout ───────────────────────────────────────── */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.page-hero {
    padding: 120px 0 60px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 40%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(229,0,0,.05) 2px,
        rgba(229,0,0,.05) 3px
    );
    pointer-events: none;
}
.page-hero__eyebrow {
    font-family: var(--font-head);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 88px; }
.widget {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.widget__title {
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-1);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.widget__title::before {
    content: '▶ ';
    color: var(--red);
}
.cat-list { list-style: none; }
.cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { font-size: .9rem; color: var(--gray-1); }
.cat-list a:hover { color: var(--red); }
.cat-list .count {
    font-family: var(--font-head);
    font-size: .65rem;
    color: var(--gray-3);
    background: var(--bg-3);
    padding: 2px 8px;
    border-radius: 10px;
}
.recent-posts { list-style: none; }
.recent-posts li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.recent-posts li:last-child { border-bottom: none; }
.recent-posts__thumb {
    width: 54px; height: 42px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    background: var(--bg-3);
}
.recent-posts a { font-size: .88rem; color: var(--gray-1); line-height: 1.4; }
.recent-posts a:hover { color: var(--red); }
.recent-posts time { font-size: .75rem; color: var(--gray-3); display: block; margin-top: 2px; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 56px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: .75rem;
    font-weight: 700;
    color: var(--gray-1);
    transition: all .2s;
}
.pagination a:hover { border-color: var(--red); color: var(--red); background: rgba(229,0,0,.08); }
.pagination .current { background: var(--grad-fire); border-color: var(--red); color: #fff; }
.pagination .dots { border: none; color: var(--gray-3); }

/* ── Single Post ────────────────────────────────────────────── */
.post-hero {
    padding: 100px 0 0;
    background: var(--bg-1);
    position: relative;
    overflow: hidden;
}
.post-hero__img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    margin-top: 48px;
}
.post-hero__img--placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 48px;
}
.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    padding: 56px 0 96px;
}
.post-content {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
}
.post-content h2 {
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    color: var(--white);
}
.post-content h3 {
    margin: 1.5rem 0 .75rem;
    font-size: 1.1rem;
    color: var(--red);
}
.post-content p { color: var(--gray-1); margin-bottom: 1.2rem; }
.post-content ul,
.post-content ol { margin: 0 0 1.2rem 1.6rem; color: var(--gray-1); }
.post-content li { margin-bottom: .5rem; }
.post-content strong { color: var(--white); }
.post-content blockquote {
    border-left: 4px solid var(--red);
    padding: 16px 24px;
    background: var(--bg-3);
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-1);
}

/* ── Comments ───────────────────────────────────────────────── */
.comments { margin-top: 48px; }
.comments__title {
    font-size: 1rem;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.comment-item {
    background: var(--bg-3);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border-left: 3px solid var(--border);
}
.comment-item.highlight { border-left-color: var(--red); }
.comment-item__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.comment-item__avatar {
    width: 36px; height: 36px;
    background: var(--grad-fire);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: .65rem;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
}
.comment-item__author { font-weight: 600; color: var(--white); font-size: .95rem; }
.comment-item__date   { font-size: .78rem; color: var(--gray-3); }
.comment-item__text   { font-size: .9rem; color: var(--gray-1); line-height: 1.6; }

/* Comment form */
.comment-form { margin-top: 36px; }
.comment-form__title { font-size: 1rem; margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-family: var(--font-head);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-1);
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229,0,0,.15);
}
.form-control::placeholder { color: var(--gray-3); }
textarea.form-control { resize: vertical; min-height: 120px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Alert messages ─────────────────────────────────────────── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert-success { background: rgba(0,200,100,.15); border: 1px solid rgba(0,200,100,.4); color: #00c864; }
.alert-error   { background: rgba(229,0,0,.12);   border: 1px solid rgba(229,0,0,.4);   color: var(--red); }
.alert-info    { background: rgba(0,150,255,.12);  border: 1px solid rgba(0,150,255,.4);  color: #0096ff; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    background: var(--bg-0);
    border-top: 1px solid var(--border);
    padding: 72px 0 28px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}
.footer__brand-desc {
    font-size: .9rem;
    color: var(--gray-2);
    line-height: 1.7;
    margin: 16px 0 20px;
}
.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social a {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-2);
    font-size: .85rem;
    transition: border-color .2s, color .2s, background .2s;
}
.footer__social a:hover { border-color: var(--red); color: var(--red); background: rgba(229,0,0,.08); }

.footer__col-title {
    font-family: var(--font-head);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: .9rem; color: var(--gray-2); }
.footer__links a:hover { color: var(--red); padding-left: 4px; }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer__copy {
    font-size: .82rem;
    color: var(--gray-3);
}
.footer__copy a { color: var(--red); }

/* Checkered footer decoration */
.footer__checkered {
    height: 4px;
    background-image: repeating-linear-gradient(
        90deg,
        var(--white) 0px, var(--white) 8px,
        var(--bg-0)  8px, var(--bg-0)  16px
    );
    opacity: .08;
    margin-bottom: 40px;
}

/* ── Admin Panel ────────────────────────────────────────────── */
.admin-body {
    background: var(--bg-1);
    font-family: var(--font-body);
}
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--bg-0);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar__logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    color: var(--white);
}
.admin-sidebar__logo span { color: var(--red); }
.admin-nav { list-style: none; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: .85rem;
    color: var(--gray-2);
    transition: background .2s, color .2s, border-color .2s;
    border-left: 3px solid transparent;
}
.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(229,0,0,.08);
    color: var(--white);
    border-left-color: var(--red);
}
.admin-nav .icon { font-size: 1rem; }
.admin-main { padding: 36px 40px; }
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.admin-title { font-size: 1.5rem; }
.admin-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}
.admin-card__title {
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-2);
    margin-bottom: 8px;
}
.admin-card__value {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
}
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left;
    padding: 12px 16px;
    font-family: var(--font-head);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--gray-1);
    font-size: .92rem;
    vertical-align: middle;
}
.table tr:hover td { background: rgba(255,255,255,.02); }
.table tr:last-child td { border-bottom: none; }
.status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-family: var(--font-head);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.status-pill--published { background: rgba(0,200,100,.15); color: #00c864; }
.status-pill--draft     { background: rgba(255,255,255,.08); color: var(--gray-2); }

.admin-form-label {
    display: block;
    font-family: var(--font-head);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-1);
    margin-bottom: 8px;
}
.admin-form-hint { font-size: .8rem; color: var(--gray-3); margin-top: 4px; }

/* Admin login */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-0);
    position: relative;
    overflow: hidden;
}
.admin-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(229,0,0,.08) 0%, transparent 60%);
    pointer-events: none;
}
.admin-login__card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}
.admin-login__logo {
    text-align: center;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 32px;
    color: var(--white);
}
.admin-login__logo span { color: var(--red); }
.admin-login__subtitle {
    text-align: center;
    font-size: .85rem;
    color: var(--gray-2);
    margin-top: 6px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .blog-layout,
    .post-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
}

@media (max-width: 768px) {
    .navbar__nav { display: none; }
    .navbar__nav.open {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--bg-0);
        border-top: 1px solid var(--border);
        padding: 16px 0;
    }
    .navbar__nav.open a { padding: 12px 24px; }
    .navbar__toggle { display: flex; }
    .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
    .sim-grid  { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .post-content { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .admin-stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .sim-grid { grid-template-columns: 1fr; }
    .hero__cta { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}
