/* ============================================================
   BukanBudakEngineer — Main Stylesheet
   Design: Elegant editorial minimalism
   Fonts: Fraunces (display) + DM Sans (body) + DM Mono (code)
   ============================================================ */

/* ── CSS Variables (Light Theme) ─────────────────────────── */
:root {
    --bg:           #FAFAF8;
    --bg-card:      #FFFFFF;
    --bg-subtle:    #F4F3EF;
    --border:       #E8E6DF;
    --border-hover: #C8C4B8;

    --text:         #1A1916;
    --text-2:       #4A4742;
    --text-3:       #8C887E;

    --accent:       #D4761A;        /* Warm amber — the main brand color */
    --accent-light: #FFF3E6;
    --accent-hover: #B8621A;

    --code-bg:      #F0EEE8;
    --code-text:    #3D3A30;

    --nav-h:        64px;
    --radius:       12px;
    --radius-sm:    6px;
    --shadow:       0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    --shadow-hover: 0 4px 8px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.10);
    --transition:   0.2s ease;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'DM Sans', -apple-system, sans-serif;
    --font-mono:    'DM Mono', 'Courier New', monospace;
}

/* Dark theme overrides */
[data-theme="dark"] {
    --bg:           #141412;
    --bg-card:      #1E1D1A;
    --bg-subtle:    #252420;
    --border:       #2E2C28;
    --border-hover: #46443E;

    --text:         #F0EDE4;
    --text-2:       #B8B4A8;
    --text-3:       #6E6A60;

    --accent:       #E8893A;
    --accent-light: #2A1E0E;
    --accent-hover: #F09848;

    --code-bg:      #252420;
    --code-text:    #C8C0A8;

    --shadow:       0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
    --shadow-hover: 0 4px 8px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.4);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, textarea, select {
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--bg-card);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--narrow { max-width: 760px; }
.main { padding-top: var(--nav-h); min-height: 70vh; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}
.nav.nav--scrolled {
    box-shadow: var(--shadow);
}
.nav__inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
}
.nav__logo strong { font-weight: 600; }
.nav__logo-icon { font-size: 20px; }
.nav__logo:hover { color: var(--accent); }

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    cursor: pointer;
}
.nav__link:hover, .nav__link--active {
    color: var(--text);
    background: var(--bg-subtle);
}
.nav__dropdown { position: relative; }
.nav__dropdown-btn { font-size: 14px; font-weight: 500; }
.nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 180px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--transition);
}
.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-2);
}
.nav__dropdown-menu li a:hover { background: var(--bg-subtle); color: var(--text); }
.nav__cat-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nav__controls {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    transition: background var(--transition), color var(--transition);
}
.nav__icon-btn:hover { background: var(--bg-subtle); color: var(--text); }

/* Dark/light icon toggling */
[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon  { display: none; }
[data-theme="dark"]  .moon-icon { display: none; }
[data-theme="dark"]  .sun-icon  { display: block; }

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}
.nav__hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav__hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--border);
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
}
.hero__title em {
    font-style: italic;
    color: var(--accent);
}
.hero__sub {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 420px;
    justify-self: end;
}
.hero__bg-shape {
    position: absolute;
    inset: 0;
    background: var(--bg-subtle);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 8s ease-in-out infinite;
}
@keyframes morphShape {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}
.hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 32px;
}
.hero__stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.hero__stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hero__stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}
.hero__stat-label {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: 1.5px solid transparent;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,118,26,.3);
}
.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-hover);
}
.btn--outline:hover {
    border-color: var(--text);
    background: var(--bg-subtle);
    color: var(--text);
}
.btn--sm { padding: 7px 14px; font-size: 13px; }
.btn--danger { background: #DC2626; border-color: #DC2626; color: #fff; }
.btn--danger:hover { background: #B91C1C; border-color: #B91C1C; }

/* ── Section Titles ───────────────────────────────────────── */
.section { padding: 64px 0; }
.section--grey { background: var(--bg-subtle); }

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
}
.section-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-link:hover { color: var(--accent-hover); }

/* ── Post Cards Grid ──────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.posts-grid--list {
    grid-template-columns: 1fr;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}
.post-card__img-wrap {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-subtle);
}
.post-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card__img { transform: scale(1.04); }
.post-card__img-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-3);
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--border) 100%);
}
.post-card__cat {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}
.post-card__body { padding: 20px 24px 24px; }
.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-3);
    margin-bottom: 10px;
}
.post-card__views {
    display: flex;
    align-items: center;
    gap: 4px;
}
.post-card__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 16px;
}
.post-card__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.post-card__link:hover { gap: 8px; color: var(--accent-hover); }

/* ── Single Post ──────────────────────────────────────────── */
.post-hero {
    padding: 48px 0 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.post-hero__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-3);
}
.post-hero__cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}
.post-hero__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 20px;
}
.post-hero__excerpt {
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 32px;
    font-style: italic;
}
.post-hero__img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: 32px;
}

/* Post article content */
.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
}
.post-content h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    margin: 2em 0 0.6em;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
    color: var(--text);
}
.post-content p { margin-bottom: 1.4em; }
.post-content ul, .post-content ol {
    margin: 0 0 1.4em 1.5em;
    list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4em; }
.post-content strong { font-weight: 600; color: var(--text); }
.post-content em { font-style: italic; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content img {
    border-radius: var(--radius-sm);
    margin: 1.5em 0;
    box-shadow: var(--shadow);
}
.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 20px;
    margin: 1.5em 0;
    color: var(--text-2);
    font-style: italic;
    font-size: 18px;
}
.post-content pre {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
}
.post-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--code-bg);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
}
.post-content pre code {
    background: none;
    color: var(--code-text);
    padding: 0;
    font-size: inherit;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-label .required { color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }

/* ── Flash Messages ───────────────────────────────────────── */
.flash {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.flash--success { background: #DCFCE7; color: #166534; }
.flash--error   { background: #FEE2E2; color: #991B1B; }
.flash--info    { background: var(--accent-light); color: var(--accent); }
[data-theme="dark"] .flash--success { background: #14532D; color: #86EFAC; }
[data-theme="dark"] .flash--error   { background: #450A0A; color: #FCA5A5; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}
.pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
    text-decoration: none;
}
.pagination__btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination__btn--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination__btn--active:hover { color: #fff; }

/* ── Search Bar ───────────────────────────────────────────── */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}
.search-bar input {
    flex: 1;
    border-radius: var(--radius-sm);
}
.search-bar button { flex-shrink: 0; }

/* ── Category Badge ───────────────────────────────────────── */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

/* ── About page ───────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}
.about-avatar {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}
.about-avatar__img {
    width: 200px; height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border);
    margin: 0 auto 20px;
}
.about-avatar__placeholder {
    width: 200px; height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--bg-subtle));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    margin: 0 auto 20px;
    border: 4px solid var(--border);
}
.about-info { text-align: center; }
.about-info h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}
.about-info p { font-size: 14px; color: var(--text-3); margin-bottom: 16px; }

.about-content h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin: 2em 0 0.8em;
    color: var(--text);
}
.about-content h2:first-child { margin-top: 0; }
.about-content p { font-size: 16px; color: var(--text-2); line-height: 1.8; margin-bottom: 1.2em; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.skill-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    text-align: center;
    transition: all var(--transition);
}
.skill-item:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ── Contact page ─────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}
.contact-info h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}
.contact-info p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 32px; }
.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.contact-detail__icon {
    width: 40px; height: 40px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-detail__label { font-size: 12px; color: var(--text-3); font-weight: 500; }
.contact-detail__value { font-size: 15px; font-weight: 500; color: var(--text); }

/* ── Page Headers ─────────────────────────────────────────── */
.page-header {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.page-header__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.page-header__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 12px;
}
.page-header__sub { font-size: 17px; color: var(--text-2); max-width: 560px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
    margin-top: 80px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 12px;
    text-decoration: none;
}
.footer__logo strong { font-weight: 600; }
.footer__logo:hover { color: var(--accent); }
.footer__tagline {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer__socials { display: flex; gap: 10px; }
.footer__social {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    transition: all var(--transition);
}
.footer__social:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.footer__heading {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
}
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: 14px; color: var(--text-2); transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 10px;
}
.footer__contact svg { color: var(--accent); flex-shrink: 0; }
.footer__contact a { color: var(--text-2); }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-3);
}
.footer__bottom a { color: var(--text-3); }
.footer__bottom a:hover { color: var(--accent); }

/* ── Comments Section ─────────────────────────────────────── */
.comments-section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.comments-section h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
}
.comment {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }
.comment__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}
.comment__body {}
.comment__header { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.comment__name { font-size: 14px; font-weight: 600; color: var(--text); }
.comment__date { font-size: 12px; color: var(--text-3); }
.comment__text { font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* ── Admin Styles ─────────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    top: 0; bottom: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar__logo {
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.admin-sidebar__logo a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.admin-nav { padding: 0 12px; }
.admin-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 2px;
    text-decoration: none;
    transition: all var(--transition);
}
.admin-nav__item:hover { background: var(--bg-subtle); color: var(--text); }
.admin-nav__item--active { background: var(--accent-light); color: var(--accent); }
.admin-nav__sep {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 16px 12px 8px;
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    background: var(--bg);
}
.admin-topbar {
    height: 60px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.admin-topbar__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.admin-topbar__actions { display: flex; gap: 10px; align-items: center; }

.admin-content { padding: 32px; }

/* Admin stats cards */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-card__icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--accent-light);
}
.stat-card__num { font-size: 26px; font-weight: 700; font-family: var(--font-display); }
.stat-card__label { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* Admin table */
.admin-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    background: var(--bg-subtle);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    font-size: 14px;
    color: var(--text-2);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-subtle); }

/* Admin form */
.admin-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.admin-form h2 { font-size: 18px; font-weight: 600; margin-bottom: 24px; }

/* ── Utility Classes ──────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}
.badge--green { background: #DCFCE7; color: #166534; }
.badge--red   { background: #FEE2E2; color: #991B1B; }
.badge--gray  { background: var(--bg-subtle); color: var(--text-3); border: 1px solid var(--border); }
[data-theme="dark"] .badge--green { background: #14532D; color: #86EFAC; }
[data-theme="dark"] .badge--red   { background: #450A0A; color: #FCA5A5; }

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-0  { margin-bottom: 0; }
.empty-state {
    text-align: center;
    padding: 64px 0;
    color: var(--text-3);
    font-size: 15px;
}
.empty-state__icon { font-size: 48px; margin-bottom: 16px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero__inner        { grid-template-columns: 1fr; }
    .hero__visual       { display: none; }
    .about-grid         { grid-template-columns: 1fr; }
    .about-avatar       { position: static; display: flex; flex-direction: column; align-items: center; }
    .contact-grid       { grid-template-columns: 1fr; }
    .footer__grid       { grid-template-columns: 1fr 1fr; }
    .admin-stats        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav__links         { display: none; }
    .nav__hamburger     { display: flex; }
    .nav__links.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        gap: 4px;
        z-index: 999;
        box-shadow: var(--shadow);
    }
    .nav__dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; }
    .posts-grid         { grid-template-columns: 1fr; }
    .footer__grid       { grid-template-columns: 1fr; }
    .admin-sidebar      { display: none; }
    .admin-main         { margin-left: 0; }
    .admin-stats        { grid-template-columns: 1fr 1fr; }
    .section-header     { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .container          { padding: 0 16px; }
    .admin-stats        { grid-template-columns: 1fr; }
    .admin-content      { padding: 20px 16px; }
}
