/* ------------------------------------------------------------------
   Kâğıt — yazı tipi yüzleri
------------------------------------------------------------------ */
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../vendor/fonts/fraunces-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../vendor/fonts/fraunces-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../vendor/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../vendor/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------
   Renk ve ölçü değişkenleri
------------------------------------------------------------------ */
:root {
    color-scheme: light;

    --bg: #f6f2ea;
    --bg-deep: #efe9dd;
    --surface: #fbf9f4;
    --surface-2: #efe8dc;
    --surface-3: #e6ddce;
    --ink: #1c1b18;
    --ink-soft: #3d3a33;
    --muted: #746f65;
    --muted-2: #948d81;
    --line: #e1d9ca;
    --line-strong: #cfc5b3;

    --accent: #a8472f;
    --accent-strong: #84331f;
    --accent-soft: #f2ddd4;
    --accent-ink: #ffffff;
    --gold: #ad8446;
    --green: #3f6b4f;
    --green-soft: #dce9df;
    --amber: #93651f;
    --amber-soft: #f6e9cc;
    --red: #9b3535;
    --red-soft: #f4dada;

    --sidebar-bg: #1d1b17;
    --sidebar-ink: #f3eee4;
    --sidebar-muted: #a9a294;
    --sidebar-line: #322e27;

    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --shadow-sm: 0 1px 2px rgba(28, 27, 24, .04);
    --shadow: 0 16px 40px -24px rgba(28, 27, 24, .35);
    --shadow-lg: 0 40px 80px -48px rgba(28, 27, 24, .45);

    --header-h: 76px;
    --container: 1180px;

    --bs-body-font-family: var(--font-ui);
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--muted);
    --bs-link-color: var(--accent);
    --bs-link-hover-color: var(--accent-strong);
    --bs-emphasis-color: var(--ink);
}

[data-theme="dark"] {
    color-scheme: dark;

    --bg: #131311;
    --bg-deep: #0e0e0d;
    --surface: #1b1a17;
    --surface-2: #23211d;
    --surface-3: #2b2823;
    --ink: #f2ede3;
    --ink-soft: #ded7ca;
    --muted: #a29b8e;
    --muted-2: #827b6f;
    --line: #302c25;
    --line-strong: #413b32;

    --accent: #d77b5f;
    --accent-strong: #e99980;
    --accent-soft: #39251e;
    --accent-ink: #1b120f;
    --gold: #d1a568;
    --green: #86b596;
    --green-soft: #1f2d24;
    --amber: #ddb36c;
    --amber-soft: #2f2718;
    --red: #dc8b8b;
    --red-soft: #342020;

    --sidebar-bg: #0f0f0e;
    --sidebar-line: #292620;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 20px 50px -30px rgba(0, 0, 0, .8);
    --shadow-lg: 0 50px 100px -50px rgba(0, 0, 0, .9);

    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--muted);
    --bs-link-color: var(--accent);
    --bs-link-hover-color: var(--accent-strong);
    --bs-emphasis-color: var(--ink);
}

/* ------------------------------------------------------------------
   Temel
------------------------------------------------------------------ */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--ink); }

a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent); }
p { margin: 0 0 1rem; }
img { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 550;
    line-height: 1.12;
    letter-spacing: -.018em;
    color: var(--ink);
    margin: 0;
}

.container { max-width: var(--container); }

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    background: var(--ink);
    color: var(--bg);
    padding: .6rem 1rem;
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); color: var(--bg); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}
.eyebrow.is-plain::before { display: none; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.text-accent { color: var(--accent) !important; }
.font-display { font-family: var(--font-display); }

.rule {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0;
}

/* ------------------------------------------------------------------
   Butonlar
------------------------------------------------------------------ */
.btn {
    font-family: var(--font-ui);
    font-weight: 550;
    font-size: .875rem;
    border-radius: 999px;
    padding: .62rem 1.15rem;
    letter-spacing: -.005em;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }

.btn-accent {
    --bs-btn-color: var(--accent-ink);
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: var(--accent-ink);
    --bs-btn-hover-bg: var(--accent-strong);
    --bs-btn-hover-border-color: var(--accent-strong);
    --bs-btn-active-color: var(--accent-ink);
    --bs-btn-active-bg: var(--accent-strong);
    --bs-btn-active-border-color: var(--accent-strong);
    box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn-ink {
    --bs-btn-color: var(--bg);
    --bs-btn-bg: var(--ink);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-color: var(--bg);
    --bs-btn-hover-bg: var(--accent);
    --bs-btn-hover-border-color: var(--accent);
    --bs-btn-active-color: var(--bg);
    --bs-btn-active-bg: var(--accent);
    --bs-btn-active-border-color: var(--accent);
}

.btn-outline-ink {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--line-strong);
    --bs-btn-hover-color: var(--bg);
    --bs-btn-hover-bg: var(--ink);
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-color: var(--bg);
    --bs-btn-active-bg: var(--ink);
    --bs-btn-active-border-color: var(--ink);
    background: transparent;
}

.btn-ghost {
    color: var(--muted);
    border: 1px solid transparent;
    background: transparent;
}
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-soft);
}
.btn-icon:hover { color: var(--accent); border-color: var(--line-strong); background: var(--surface); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .86rem;
    font-weight: 600;
    color: var(--accent);
}
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------------
   Formlar
------------------------------------------------------------------ */
.form-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink-soft);
    margin-bottom: .4rem;
}
.form-control, .form-select {
    background-color: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: .66rem .85rem;
    font-size: .93rem;
    box-shadow: none;
}
.form-control::placeholder { color: var(--muted-2); }
.form-control:focus, .form-select:focus {
    background-color: var(--surface);
    color: var(--ink);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23746f65' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m2 5 6 6 6-6'/%3E%3C/svg%3E"); }
.form-text { font-size: .78rem; color: var(--muted); }
.form-check-input { background-color: var(--surface); border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.input-group-text {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--muted);
    border-radius: var(--radius-sm);
    font-size: .85rem;
}

/* ------------------------------------------------------------------
   Üst menü
------------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled {
    border-color: var(--line);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.site-navbar { min-height: var(--header-h); padding: .7rem 0; }
.navbar-brand.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--ink);
    padding: 0;
    margin-right: 0;
}
.brand-mark {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 3px;
    transform: rotate(45deg);
    display: inline-block;
    flex: 0 0 auto;
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand-mark { transform: rotate(225deg); }
.brand-sub {
    display: block;
    font-family: var(--font-ui);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .1rem;
}

.site-navbar .navbar-nav { gap: .15rem; }
.site-navbar .nav-link {
    font-size: .87rem;
    font-weight: 500;
    color: var(--muted);
    padding: .5rem .85rem;
    border-radius: 999px;
    position: relative;
}
.site-navbar .nav-link:hover { color: var(--ink); }
.site-navbar .nav-link.active { color: var(--ink); }
.site-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .16rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%);
}
.navbar-toggler {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .45rem .6rem;
    color: var(--ink);
    box-shadow: none !important;
}
.navbar-toggler i { font-size: 1.15rem; }

.nav-actions { display: flex; align-items: center; gap: .4rem; }
.nav-search {
    position: relative;
    width: 180px;
    transition: width .25s ease;
}
.nav-search:focus-within { width: 230px; }
.nav-search .form-control {
    background: transparent;
    border-color: transparent;
    border-radius: 999px;
    padding: .45rem .8rem .45rem 2.2rem;
    font-size: .84rem;
    height: 38px;
}
.nav-search .form-control:focus {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: none;
}
.nav-search .bi {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .85rem;
    pointer-events: none;
}

.theme-toggle { color: var(--muted); border: 0; background: transparent; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle:hover { color: var(--ink); background: var(--surface-2); }
[data-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }
[data-theme="light"] .theme-toggle .bi-sun { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .bi-sun { display: none; }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    flex: 0 0 auto;
    background: var(--accent);
}
.avatar-sm { width: 28px; height: 28px; font-size: .62rem; }
.avatar-lg { width: 56px; height: 56px; font-size: .95rem; }
.avatar-xl { width: 76px; height: 76px; font-size: 1.2rem; }
.avatar-tone-1 { background: #a8472f; }
.avatar-tone-2 { background: #3f6b4f; }
.avatar-tone-3 { background: #5d4a7a; }
.avatar-tone-4 { background: #9a6a2f; }
.avatar-tone-5 { background: #2f5f6b; }

.user-menu .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .22rem .7rem .22rem .22rem;
    color: var(--ink);
    font-size: .8rem;
    font-weight: 550;
}
.user-menu .dropdown-toggle::after { border: 0; content: "\F282"; font-family: bootstrap-icons; font-size: .7rem; color: var(--muted); margin-left: .1rem; }
.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: .4rem;
    font-size: .88rem;
}
.dropdown-item { border-radius: 9px; padding: .55rem .75rem; color: var(--ink-soft); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-2); color: var(--ink); }
.dropdown-item i { color: var(--muted); margin-right: .5rem; width: 1rem; }
.dropdown-divider { border-color: var(--line); }

/* ------------------------------------------------------------------
   Duyurular
------------------------------------------------------------------ */
.flash-stack {
    position: fixed;
    top: calc(var(--header-h) + 14px);
    right: 20px;
    z-index: 1500;
    width: min(390px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.flash {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: .8rem .95rem;
    box-shadow: var(--shadow);
    font-size: .86rem;
    animation: flash-in .35s cubic-bezier(.2,.8,.2,1);
}
.flash.is-dismissing { animation: flash-out .25s ease forwards; }
.flash i { color: var(--accent); margin-top: .1rem; }
.flash.success { border-left-color: var(--green); }
.flash.success i { color: var(--green); }
.flash.danger { border-left-color: var(--red); }
.flash.danger i { color: var(--red); }
.flash.info { border-left-color: var(--gold); }
.flash.info i { color: var(--gold); }
.flash-close {
    margin-left: auto;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1;
    padding: .1rem;
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes flash-out { to { opacity: 0; transform: translateX(20px); } }

/* ------------------------------------------------------------------
   Ana sayfa
------------------------------------------------------------------ */
.page-home { padding-bottom: 4rem; }

.hero-wrap { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.hero-featured {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 440px;
    box-shadow: var(--shadow-sm);
    animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
}
.hero-copy {
    padding: clamp(2rem, 4.5vw, 3.75rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
    position: relative;
}
.hero-copy .eyebrow { margin-bottom: .1rem; }
.hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3.65rem);
    font-weight: 550;
    line-height: 1.02;
    letter-spacing: -.03em;
}
.hero-title a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s ease; }
.hero-title a:hover { color: var(--ink); background-size: 100% 1px; }
.hero-excerpt {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 46ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--muted);
    margin-top: .25rem;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.hero-actions { display: flex; align-items: center; gap: 1.1rem; margin-top: .5rem; flex-wrap: wrap; }
.hero-media {
    position: relative;
    overflow: hidden;
    background: var(--surface-2);
    min-height: 280px;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.hero-featured:hover .hero-media img { transform: scale(1.035); }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 20%, transparent), transparent 40%);
    pointer-events: none;
}
.hero-number {
    position: absolute;
    right: 1.5rem;
    bottom: .7rem;
    font-family: var(--font-display);
    font-size: 4rem;
    color: rgba(255,255,255,.5);
    line-height: 1;
    z-index: 1;
}

.section { padding-top: clamp(3rem, 6vw, 5rem); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.section-head .eyebrow { margin-bottom: .55rem; }
.section-head p { color: var(--muted); font-size: .9rem; margin: .35rem 0 0; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2rem);
}
.post-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.post-card:nth-child(2) { animation-delay: .06s; }
.post-card:nth-child(3) { animation-delay: .12s; }
.post-card:nth-child(4) { animation-delay: .18s; }
.post-card:nth-child(5) { animation-delay: .24s; }
.post-card:nth-child(6) { animation-delay: .3s; }

.post-card-media {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-media .chip {
    position: absolute;
    left: .8rem;
    top: .8rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(8px);
    color: var(--ink);
    border: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.post-card-body { padding: 1rem .15rem 0; display: flex; flex-direction: column; flex: 1; }
.post-card-title {
    font-size: 1.34rem;
    font-weight: 550;
    line-height: 1.24;
    letter-spacing: -.02em;
    margin: .1rem 0 .55rem;
}
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.65;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .75rem;
    color: var(--muted);
    padding-top: .8rem;
    border-top: 1px solid var(--line);
}
.post-card-author { display: flex; align-items: center; gap: .45rem; color: var(--ink-soft); font-weight: 500; }
.post-card-date { white-space: nowrap; }
.read-time { display: inline-flex; align-items: center; gap: .3rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .27rem .65rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .055em;
    text-transform: uppercase;
    line-height: 1.4;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid transparent;
    white-space: nowrap;
}
.chip-muted { background: var(--surface-2); color: var(--muted); }
.chip-soft { background: var(--surface-2); color: var(--ink-soft); }
.chip-lg { font-size: .76rem; padding: .4rem .9rem; }

.cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 45%),
        linear-gradient(135deg, var(--surface-2), var(--surface-3));
    position: relative;
    overflow: hidden;
}
.cover-fallback::before {
    content: "";
    width: 42%;
    aspect-ratio: 1;
    border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: 50%;
    transform: translate(20%, 10%);
}
.cover-fallback::after {
    content: "";
    position: absolute;
    width: 26%;
    aspect-ratio: 1;
    background: color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: 50%;
    transform: translate(60%, -40%);
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .84rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all .18s ease;
}
.category-pill .count { color: var(--muted-2); font-size: .72rem; }
.category-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ------------------------------------------------------------------
   Arşiv + kenar çubuğu
------------------------------------------------------------------ */
.page-archive { padding-top: 2.5rem; padding-bottom: 5rem; }
.archive-head {
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
    max-width: 760px;
}
.archive-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: .6rem 0 .6rem; }
.archive-head p { color: var(--muted); font-size: 1rem; margin: 0; }

.archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.archive-layout .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2rem; }
.side-block { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.side-block-title {
    font-family: var(--font-ui);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .9rem;
}
.side-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.side-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    font-size: .9rem;
    color: var(--ink-soft);
    border-bottom: 1px dashed color-mix(in srgb, var(--line) 75%, transparent);
}
.side-cat-list a:hover { color: var(--accent); }
.side-cat-list .count { font-size: .74rem; color: var(--muted-2); }

.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; display: flex; flex-direction: column; gap: .9rem; }
.popular-list li { counter-increment: pop; display: flex; gap: .8rem; }
.popular-list li::before {
    content: counter(pop, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: .85rem;
    color: var(--accent);
    opacity: .75;
    line-height: 1.5;
    flex: 0 0 auto;
}
.popular-list a { font-size: .87rem; font-weight: 500; line-height: 1.45; color: var(--ink-soft); }
.popular-list a:hover { color: var(--accent); }
.popular-list .views { display: block; font-size: .7rem; color: var(--muted-2); margin-top: .2rem; }

.side-about {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.side-about .brand { font-size: 1.35rem; margin-bottom: .6rem; }
.side-about p { font-size: .84rem; color: var(--muted); line-height: 1.65; margin-bottom: .9rem; }

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
}
.empty-state i { font-size: 1.8rem; display: block; margin-bottom: .8rem; color: var(--muted-2); }
.empty-state strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); font-weight: 500; margin-bottom: .3rem; }

.pagination-wrap { margin-top: 3rem; display: flex; justify-content: center; }
.pagination { gap: .3rem; }
.pagination .page-link {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    border-radius: 999px !important;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    margin: 0;
}
.pagination .page-link:hover { border-color: var(--line-strong); color: var(--accent); }
.pagination .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pagination .page-item.disabled .page-link { opacity: .4; }

/* ------------------------------------------------------------------
   Tek yazı
------------------------------------------------------------------ */
.page-post { padding-bottom: 5rem; }
.post-header {
    max-width: 850px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0 2rem;
    text-align: center;
}
.post-header h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -.03em;
    margin: 1rem 0 1.1rem;
}
.post-dek { font-size: 1.1rem; color: var(--muted); line-height: 1.7; max-width: 620px; margin: 0 auto 1.6rem; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: .65rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.post-meta .avatar { margin-right: .1rem; }
.post-meta a { color: var(--ink-soft); font-weight: 500; }
.post-meta a:hover { color: var(--accent); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.post-cover {
    max-width: 1020px;
    margin: 0 auto;
    aspect-ratio: 16 / 8;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
    position: relative;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .cover-fallback { min-height: 100%; }

.post-layout { max-width: 760px; margin: 0 auto; padding-top: 3rem; }
.prose {
    font-family: var(--font-display);
    font-size: clamp(1.06rem, 1.5vw, 1.16rem);
    font-weight: 380;
    line-height: 1.85;
    color: var(--ink-soft);
    letter-spacing: .002em;
}
.prose > p:first-of-type::first-letter {
    float: left;
    font-size: 3.7em;
    line-height: .82;
    padding: .08em .12em 0 0;
    color: var(--accent);
    font-weight: 500;
}
.prose h2 { font-size: clamp(1.55rem, 2.4vw, 1.95rem); margin: 2.6rem 0 .9rem; color: var(--ink); }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 .7rem; color: var(--ink); }
.prose p { margin-bottom: 1.35rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-strong); }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; padding-left: .25rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
    margin: 2.2rem 0;
    padding: .2rem 0 .2rem 1.6rem;
    border-left: 2px solid var(--accent);
    font-size: 1.32rem;
    line-height: 1.55;
    font-style: italic;
    color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); margin: 1.8rem 0; }
.prose pre {
    background: var(--sidebar-bg);
    color: #f3eee4;
    border-radius: var(--radius);
    padding: 1.2rem 1.35rem;
    overflow-x: auto;
    font-size: .82rem;
    line-height: 1.7;
    margin: 1.8rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .86em;
    background: var(--surface-2);
    padding: .12em .38em;
    border-radius: 5px;
    color: var(--accent);
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: 1em; }
.prose hr { border-color: var(--line); margin: 2.5rem 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.tag-link {
    font-size: .75rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .32rem .75rem;
    background: var(--surface);
}
.tag-link:hover { color: var(--accent); border-color: var(--accent); }

.author-box {
    margin-top: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}
.author-box .avatar { width: 54px; height: 54px; font-size: .95rem; }
.author-box h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.author-box .role { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.author-box p { font-size: .86rem; color: var(--muted); margin: .5rem 0 0; line-height: 1.65; }

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent);
    z-index: 2000;
    transition: width .08s linear;
}

/* Yorumlar */
.comments-section { max-width: 760px; margin: 4rem auto 0; scroll-margin-top: calc(var(--header-h) + 20px); }
.comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 2rem; margin-bottom: 1.5rem; }
.comments-head h2 { font-size: 1.7rem; }
.comments-head span { color: var(--muted); font-size: .82rem; }

.comment-list { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.comment { display: flex; gap: .9rem; }
.comment-body { flex: 1; min-width: 0; }
.comment-top { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; margin-bottom: .3rem; }
.comment-top strong { font-size: .88rem; font-weight: 650; }
.comment-top time { font-size: .72rem; color: var(--muted-2); }
.comment-text { font-size: .92rem; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.comment-reply-btn {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    padding: 0;
    margin-top: .4rem;
}
.comment-reply-btn:hover { color: var(--accent); }
.comment-children {
    list-style: none;
    padding: 0 0 0 1.3rem;
    margin: 1.2rem 0 0;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.comment-form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
}
.comment-form-card h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.comment-form-card .hint { font-size: .8rem; color: var(--muted); margin-bottom: 1.2rem; }
.comment-replying {
    display: none;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 8px;
    padding: .45rem .7rem;
    margin-bottom: .9rem;
}
.comment-replying.is-visible { display: flex; }
.comment-replying button { border: 0; background: none; color: inherit; margin-left: auto; font-size: .8rem; }

/* İlgili yazılar */
.related-section { margin-top: 4.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-section .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.preview-banner {
    margin-top: 1rem;
    background: var(--amber-soft);
    color: var(--amber);
    border-radius: var(--radius-sm);
    padding: .65rem 1rem;
    font-size: .82rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
}

/* ------------------------------------------------------------------
   Hakkında
------------------------------------------------------------------ */
.about-wrap { max-width: 860px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) 0 5rem; }
.about-wrap h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); margin: .7rem 0 1.5rem; }
.about-lead { font-size: 1.25rem; line-height: 1.65; color: var(--ink-soft); font-family: var(--font-display); margin-bottom: 2rem; }
.about-body { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.85; color: var(--ink-soft); }
.about-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about-meta .num { font-family: var(--font-display); font-size: 1.8rem; display: block; line-height: 1; }
.about-meta .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ------------------------------------------------------------------
   Giriş / kayıt
------------------------------------------------------------------ */
.page-auth main { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 2.5rem 0 4rem; }
.page-auth main > .container { width: 100%; }
.auth-shell { display: grid; grid-template-columns: 1fr 480px; gap: 0; max-width: 1040px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.auth-aside {
    background: var(--sidebar-bg);
    color: var(--sidebar-ink);
    padding: clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-aside::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    right: -120px;
    bottom: -120px;
}
.auth-aside::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--accent);
    border-radius: 50%;
    right: -30px;
    bottom: -20px;
    opacity: .9;
}
.auth-aside .brand { color: var(--sidebar-ink); font-size: 1.5rem; }
.auth-aside blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.25;
    letter-spacing: -.02em;
    margin: 3rem 0;
    color: var(--sidebar-ink);
    position: relative;
    z-index: 1;
}
.auth-aside .aside-note { font-size: .78rem; color: var(--sidebar-muted); position: relative; z-index: 1; }
.auth-panel { padding: clamp(2rem, 4vw, 3.2rem); }
.auth-panel h1 { font-size: 2rem; margin-bottom: .4rem; }
.auth-panel .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.8rem; }
.auth-panel .form-control { padding: .75rem .9rem; }
.auth-panel .btn { width: 100%; padding: .75rem 1rem; }
.auth-alt { text-align: center; font-size: .84rem; color: var(--muted); margin-top: 1.3rem; }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-foot { text-align: center; margin-top: 1.5rem; font-size: .78rem; color: var(--muted-2); }

/* ------------------------------------------------------------------
   Profil
------------------------------------------------------------------ */
.page-profile { padding: 3rem 0 5rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.3rem, 3vw, 2rem);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.panel-head h2 { font-size: 1.45rem; }
.panel-head p { font-size: .82rem; color: var(--muted); margin: .25rem 0 0; }
.profile-card { text-align: center; }
.profile-card .avatar { margin: 0 auto .8rem; }
.profile-card h3 { font-size: 1.3rem; }
.profile-card .role { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.profile-stats .num { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; display: block; }
.profile-stats .lbl { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mini-post-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.mini-post-list a { display: flex; flex-direction: column; gap: .15rem; padding-bottom: .75rem; border-bottom: 1px dashed var(--line); }
.mini-post-list .t { font-size: .87rem; font-weight: 500; line-height: 1.4; }
.mini-post-list .m { font-size: .7rem; color: var(--muted); }

/* ------------------------------------------------------------------
   Alt bilgi
------------------------------------------------------------------ */
.site-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 55%, var(--bg));
    padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand .brand { font-size: 1.7rem; margin-bottom: .7rem; }
.footer-brand p { font-size: .86rem; color: var(--muted); max-width: 32ch; line-height: 1.7; }
.footer-title { font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .85rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .9rem;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .75rem;
    color: var(--muted-2);
}
.footer-bottom a { color: var(--muted); }

/* ------------------------------------------------------------------
   Yönetim paneli
------------------------------------------------------------------ */
.admin-body { background: var(--bg); }

.admin-shell { min-height: 100vh; }
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 252px;
    background: var(--sidebar-bg);
    color: var(--sidebar-ink);
    display: flex;
    flex-direction: column;
    z-index: 1100;
    border-right: 1px solid var(--sidebar-line);
    transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.admin-sidebar-head { padding: 1.4rem 1.35rem 1.1rem; border-bottom: 1px solid var(--sidebar-line); }
.admin-sidebar .brand { color: var(--sidebar-ink); font-size: 1.45rem; }
.admin-sidebar .brand:hover { color: var(--sidebar-ink); }
.admin-sidebar .brand-mark { background: var(--accent); }
.admin-sidebar .brand-sub { color: var(--sidebar-muted); }
.admin-nav { padding: 1rem .75rem; display: flex; flex-direction: column; gap: .15rem; overflow-y: auto; flex: 1; }
.admin-nav-label { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sidebar-muted); padding: .9rem .65rem .4rem; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .58rem .75rem;
    border-radius: 9px;
    color: var(--sidebar-muted);
    font-size: .85rem;
    font-weight: 500;
    position: relative;
}
.admin-nav a i { font-size: 1rem; width: 1.1rem; text-align: center; opacity: .9; }
.admin-nav a:hover { color: var(--sidebar-ink); background: rgba(255,255,255,.045); }
.admin-nav a.active { color: var(--sidebar-ink); background: rgba(255,255,255,.075); }
.admin-nav a.active::before {
    content: "";
    position: absolute;
    left: -.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
}
.admin-nav .badge-count {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .3rem;
}
.admin-sidebar-foot { padding: .9rem .75rem 1.1rem; border-top: 1px solid var(--sidebar-line); }
.admin-user-card { display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border-radius: 10px; }
.admin-user-card:hover { background: rgba(255,255,255,.04); }
.admin-user-card .meta { min-width: 0; }
.admin-user-card .name { font-size: .82rem; font-weight: 600; color: var(--sidebar-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-card .role { font-size: .65rem; color: var(--sidebar-muted); text-transform: uppercase; letter-spacing: .08em; }
.admin-logout { color: var(--sidebar-muted); border: 0; background: none; padding: .35rem; font-size: .9rem; margin-left: auto; }
.admin-logout:hover { color: #e58a74; }

.admin-main { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
    height: 70px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 clamp(1rem, 3vw, 2.25rem);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 900;
}
.admin-topbar h1 { font-family: var(--font-ui); font-size: 1rem; font-weight: 650; letter-spacing: -.01em; }
.admin-topbar .crumb { font-size: .75rem; color: var(--muted); }
.admin-topbar .top-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.admin-burger { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; width: 38px; height: 38px; align-items: center; justify-content: center; color: var(--ink); }
.admin-content { padding: clamp(1.25rem, 3vw, 2.25rem); max-width: 1280px; width: 100%; margin: 0 auto; flex: 1; }
.admin-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,9,.5);
    z-index: 1050;
    backdrop-filter: blur(2px);
}
.admin-backdrop.is-open { display: block; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.page-head p { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.2rem;
    position: relative;
    overflow: hidden;
}
.stat-card .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: .9rem;
    font-size: 1rem;
}
.stat-card.tone-green .stat-icon { background: var(--green-soft); color: var(--green); }
.stat-card.tone-gold .stat-icon { background: var(--amber-soft); color: var(--amber); }
.stat-card.tone-blue .stat-icon { background: color-mix(in srgb, #2f5f6b 12%, var(--surface)); color: #2f5f6b; }
[data-theme="dark"] .stat-card.tone-blue .stat-icon { color: #8bb8c4; background: #1c2b2f; }
.stat-card .value { font-family: var(--font-display); font-size: 2.05rem; line-height: 1; letter-spacing: -.02em; }
.stat-card .label { font-size: .74rem; color: var(--muted); margin-top: .35rem; display: flex; align-items: center; gap: .35rem; }
.stat-card .sub { position: absolute; right: 1rem; top: 1.1rem; font-size: .68rem; color: var(--muted-2); }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.panel-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.panel-card-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-card-head h3 { font-family: var(--font-ui); font-size: .88rem; font-weight: 650; letter-spacing: 0; }
.panel-card-head .link { font-size: .74rem; color: var(--accent); font-weight: 600; }
.panel-card-body { padding: 1.2rem; }
.panel-card-body.is-flush { padding: 0; }

.chart-bars { display: flex; align-items: flex-end; gap: .8rem; height: 180px; padding-top: .5rem; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; height: 100%; justify-content: flex-end; }
.chart-bar-track { width: 100%; max-width: 46px; height: 100%; display: flex; align-items: flex-end; background: linear-gradient(to top, var(--surface-2), transparent); border-radius: 6px 6px 3px 3px; overflow: hidden; }
.chart-bar { width: 100%; background: linear-gradient(to top, var(--accent-strong), var(--accent)); border-radius: 6px 6px 3px 3px; min-height: 3px; transition: height .5s ease; }
.chart-bar-label { font-size: .62rem; color: var(--muted); white-space: nowrap; }
.chart-bar-value { font-size: .68rem; font-weight: 600; color: var(--ink-soft); }

.table-wrap { overflow-x: auto; }
.table-clean { width: 100%; border-collapse: collapse; font-size: .84rem; }
.table-clean th {
    text-align: left;
    font-size: .64rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 650;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    background: color-mix(in srgb, var(--surface-2) 40%, transparent);
}
.table-clean td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-clean tr:last-child td { border-bottom: 0; }
.table-clean tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.table-title { font-weight: 550; color: var(--ink); display: block; max-width: 380px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-sub { display: block; font-size: .7rem; color: var(--muted-2); }
.table-actions { display: flex; gap: .25rem; justify-content: flex-end; }
.table-actions .btn { padding: .3rem .5rem; border-radius: 7px; color: var(--muted); }
.table-actions .btn:hover { background: var(--surface-2); color: var(--ink); }
.table-actions .btn.text-danger:hover { background: var(--red-soft); color: var(--red); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .64rem;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .2rem .55rem;
    border-radius: 999px;
    white-space: nowrap;
}
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-published, .status-approved { background: var(--green-soft); color: var(--green); }
.status-draft, .status-pending { background: var(--amber-soft); color: var(--amber); }
.status-spam { background: var(--red-soft); color: var(--red); }
.status-admin { background: var(--accent-soft); color: var(--accent); }
.status-editor { background: var(--green-soft); color: var(--green); }
.status-author { background: var(--surface-2); color: var(--muted); }

.admin-toolbar { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.admin-toolbar .search-box { position: relative; flex: 1; min-width: 200px; max-width: 330px; }
.admin-toolbar .search-box i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8rem; }
.admin-toolbar .search-box .form-control { padding-left: 2.1rem; height: 38px; font-size: .83rem; }
.admin-toolbar .form-select { height: 38px; font-size: .8rem; padding-top: .25rem; padding-bottom: .25rem; max-width: 150px; }
.admin-toolbar .spacer { flex: 1; }

.admin-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.admin-tabs a, .admin-tabs button {
    border: 0;
    background: none;
    padding: .65rem .9rem;
    font-size: .82rem;
    font-weight: 550;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.admin-tabs .count { font-size: .65rem; background: var(--surface-2); border-radius: 999px; padding: .05rem .4rem; color: var(--muted); }
.admin-tabs a.active, .admin-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.admin-tabs a.active .count, .admin-tabs button.active .count { background: var(--accent-soft); color: var(--accent); }

.comment-admin-list { display: flex; flex-direction: column; }
.comment-admin-item { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; gap: .85rem; }
.comment-admin-item:last-child { border-bottom: 0; }
.comment-admin-main { flex: 1; min-width: 0; }
.comment-admin-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; }
.comment-admin-top strong { font-size: .83rem; }
.comment-admin-top .email { font-size: .72rem; color: var(--muted); }
.comment-admin-text { font-size: .84rem; color: var(--ink-soft); line-height: 1.6; margin: 0 0 .45rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.comment-admin-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .7rem; color: var(--muted); }
.comment-admin-meta a:hover { color: var(--accent); }
.comment-admin-actions { display: flex; align-items: flex-start; gap: .3rem; flex-shrink: 0; }
.comment-admin-actions .btn { padding: .3rem .5rem; font-size: .75rem; border-radius: 7px; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: .9rem; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn.success:hover { background: var(--green-soft); color: var(--green); }
.icon-btn.danger:hover { background: var(--red-soft); color: var(--red); }

.admin-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1.25rem; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 1.25rem; }
.editor-side { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 90px; }
.title-input {
    font-family: var(--font-display) !important;
    font-size: clamp(1.45rem, 2.5vw, 2rem) !important;
    padding: .85rem 1rem !important;
    font-weight: 500;
    letter-spacing: -.02em;
}
textarea.content-editor {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: .84rem !important;
    line-height: 1.7 !important;
    min-height: clamp(420px, 52vh, 680px);
    resize: vertical;
    background: var(--surface) !important;
}
.editor-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); padding: 0 1rem; }
.editor-tabs button { border: 0; background: none; padding: .75rem .7rem; font-size: .8rem; font-weight: 550; color: var(--muted); border-bottom: 2px solid transparent; }
.editor-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.editor-preview { padding: 1.5rem; min-height: 440px; }
.editor-preview .prose { font-size: 1rem; }

.cover-preview {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    aspect-ratio: 16 / 9;
    background: var(--surface-2) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .78rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview .placeholder { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.cover-preview .placeholder i { font-size: 1.4rem; }

.tag-input-wrap { display: flex; flex-wrap: wrap; gap: .35rem; padding: .45rem; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); }
.tag-input-wrap input { border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .8rem; flex: 1; min-width: 90px; padding: .2rem .3rem; }
.tag-input-wrap .tag-pill { display: inline-flex; align-items: center; gap: .3rem; background: var(--surface-2); border-radius: 999px; padding: .18rem .55rem; font-size: .72rem; color: var(--ink-soft); }
.tag-input-wrap .tag-pill button { border: 0; background: none; color: var(--muted); font-size: .7rem; padding: 0; line-height: 1; }

.modal-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); }
.modal-header { border-bottom: 1px solid var(--line); padding: 1.15rem 1.4rem; }
.modal-title { font-size: 1.25rem; }
.modal-body { padding: 1.4rem; }
.modal-footer { border-top: 1px solid var(--line); padding: .9rem 1.4rem; }
.modal-backdrop.show { opacity: .45; }
.btn-close { filter: var(--btn-close-filter, none); }
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1); }

.admin-toast-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1800; display: flex; flex-direction: column; gap: .5rem; width: min(360px, calc(100vw - 2.5rem)); }
.admin-toast {
    background: var(--sidebar-bg);
    color: var(--sidebar-ink);
    border-radius: 11px;
    padding: .75rem .9rem;
    font-size: .82rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    animation: flash-in .3s ease;
}
.admin-toast i { color: #8fc4a0; margin-top: .05rem; }
.admin-toast.error i { color: #e58a74; }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.loading-block { padding: 3rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; color: var(--muted); font-size: .82rem; }
.spinner-border { color: var(--accent); }

.settings-section { margin-bottom: 2rem; }
.settings-section h3 { font-family: var(--font-ui); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: 1rem; }

.user-cell { display: flex; align-items: center; gap: .6rem; }
.user-cell .meta { min-width: 0; }

/* ------------------------------------------------------------------
   Animasyonlar
------------------------------------------------------------------ */
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
.fade-up { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }


/* ------------------------------------------------------------------
   İlk kurulum sihirbazı
------------------------------------------------------------------ */
.install-body { background: var(--bg); }
.install-shell { display: grid; grid-template-columns: 360px minmax(0, 1fr); min-height: 100vh; }
.install-aside {
    background: var(--sidebar-bg);
    color: var(--sidebar-ink);
    padding: 2.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    border-right: 1px solid var(--sidebar-line);
}
.install-aside::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    right: -160px;
    bottom: -100px;
    pointer-events: none;
}
.install-aside .brand { color: var(--sidebar-ink); font-size: 1.55rem; margin-bottom: 2.2rem; display: inline-flex; }
.install-aside .brand:hover { color: var(--sidebar-ink); }
.install-aside .brand-sub { color: var(--sidebar-muted); }
.install-aside-lead {
    color: var(--sidebar-muted);
    font-size: .92rem;
    line-height: 1.7;
    max-width: 27ch;
    margin-bottom: 2.4rem;
}
.install-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .2rem; position: relative; z-index: 1; }
.install-steps li { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem 0; color: var(--sidebar-muted); }
.install-steps li strong { display: block; font-size: .85rem; font-weight: 600; color: inherit; }
.install-steps li small { display: block; font-size: .7rem; color: var(--sidebar-muted); opacity: .8; margin-top: .1rem; }
.install-steps li.active strong, .install-steps li.done strong { color: var(--sidebar-ink); }
.install-steps .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--sidebar-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 650;
    flex: 0 0 auto;
    background: transparent;
}
.install-steps li.active .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.install-steps li.done .step-num { background: rgba(255,255,255,.1); border-color: transparent; color: #9ac7a8; }
.install-aside-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .66rem;
    color: var(--sidebar-muted);
    border-top: 1px solid var(--sidebar-line);
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

.install-main {
    padding: clamp(1.5rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.install-card {
    width: 100%;
    max-width: 760px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow);
}
.install-head { margin-bottom: 1.8rem; }
.install-head h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: .7rem 0 .6rem; letter-spacing: -.03em; }
.install-head p { color: var(--muted); font-size: .93rem; line-height: 1.7; margin: 0; max-width: 58ch; }
.install-alert { border-radius: 12px; font-size: .85rem; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-soft); }
.install-alert.alert-danger { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 20%, var(--line)); color: var(--red); }
.install-alert.alert-success { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 20%, var(--line)); color: var(--green); }
.install-hint {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    background: var(--surface-2);
    border-radius: 10px;
    padding: .75rem .9rem;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 1.2rem;
}
.install-hint i { color: var(--accent); margin-top: .1rem; }
.install-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.install-actions .btn-lg { padding: .78rem 1.4rem; font-size: .92rem; }
.install-foot {
    width: 100%;
    max-width: 760px;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .68rem;
    color: var(--muted-2);
    margin-top: 1.25rem;
}

.requirement-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.requirement { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.requirement:last-child { border-bottom: 0; }
.requirement-icon { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; flex: 0 0 auto; }
.requirement.ok .requirement-icon { background: var(--green-soft); color: var(--green); }
.requirement.fail .requirement-icon { background: var(--red-soft); color: var(--red); }
.requirement-body { min-width: 0; flex: 1; }
.requirement-body strong { display: block; font-size: .82rem; font-weight: 550; }
.requirement-body small { display: block; font-size: .72rem; color: var(--muted); margin-top: .08rem; word-break: break-word; }
.requirement-state { font-size: .64rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.requirement.ok .requirement-state { color: var(--green); }
.requirement.fail .requirement-state { color: var(--red); }

.driver-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: 1.4rem; }
.driver-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    gap: .75rem;
    cursor: pointer;
    background: var(--surface);
    transition: border-color .18s ease, background-color .18s ease;
}
.driver-card:hover { border-color: var(--line-strong); }
.driver-card.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent); }
.driver-card input { position: absolute; opacity: 0; pointer-events: none; }
.driver-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 1rem; }
.driver-card.active .driver-icon { background: var(--accent-soft); color: var(--accent); }
.driver-card strong { display: block; font-size: .86rem; margin-bottom: .15rem; }
.driver-card small { display: block; font-size: .72rem; line-height: 1.5; color: var(--muted); }
.db-fields { margin-bottom: .2rem; }
.form-section { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.4rem; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section h2 { font-family: var(--font-ui); font-size: .8rem; font-weight: 650; letter-spacing: .02em; color: var(--ink); margin-bottom: 1rem; display: flex; align-items: center; gap: .45rem; }
.form-section h2 i { color: var(--accent); font-size: .9rem; }
.demo-switch { display: flex; gap: .75rem; padding: .9rem 1rem; background: var(--surface-2); border-radius: 12px; }
.demo-switch .form-check-input { margin-left: 0; flex: 0 0 auto; margin-top: .2rem; }
.demo-switch .form-check-label { font-size: .84rem; }
.demo-switch .form-check-label strong { display: block; font-weight: 600; }
.demo-switch .form-check-label small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.5; margin-top: .15rem; }

.install-complete { text-align: center; padding: .5rem 0; }
.complete-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}
.install-complete h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin: .5rem auto .8rem; max-width: 500px; }
.install-complete > p { color: var(--muted); font-size: .94rem; line-height: 1.7; max-width: 480px; margin: 0 auto 1.8rem; }
.complete-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: .5rem; }
.complete-summary span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .2rem; }
.complete-summary strong { display: block; font-size: .76rem; font-weight: 550; word-break: break-word; }

@media (max-width: 991.98px) {
    .install-shell { grid-template-columns: 1fr; }
    .install-aside { position: static; height: auto; padding: 1.2rem 1.3rem; flex-direction: row; align-items: center; gap: 1rem; }
    .install-aside .brand { margin: 0; }
    .install-aside-lead, .install-steps, .install-aside-foot { display: none; }
    .install-aside::after { display: none; }
    .install-main { min-height: calc(100vh - 66px); justify-content: flex-start; padding: 1.1rem; }
    .install-card { padding: 1.35rem; border-radius: var(--radius-lg); }
    .install-foot { padding: 0 .2rem; }
}
@media (max-width: 575.98px) {
    .driver-grid { grid-template-columns: 1fr; }
    .complete-summary { grid-template-columns: 1fr; }
    .install-actions { flex-direction: column-reverse; align-items: stretch; }
    .install-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------
   Duyarlı tasarım
------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-editor-grid { grid-template-columns: 1fr; }
    .editor-side { position: static; }
}

@media (max-width: 991.98px) {
    :root { --header-h: 68px; }
    .hero-featured { grid-template-columns: 1fr; }
    .hero-media { aspect-ratio: 16 / 9; min-height: 0; order: -1; }
    .hero-media::after { background: linear-gradient(0deg, color-mix(in srgb, var(--surface) 30%, transparent), transparent 45%); }
    .hero-copy { padding: 2rem; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .archive-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
    .sidebar .side-about { grid-column: span 2; }
    .profile-grid { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; max-width: 520px; }
    .auth-aside { display: none; }
    .footer-grid { grid-template-columns: 1.5fr 1fr; }
    .footer-grid > :last-child { grid-column: span 2; }
    .admin-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .admin-sidebar.is-open { transform: none; }
    .admin-main { margin-left: 0; }
    .admin-burger { display: inline-flex; }
    .admin-content { padding: 1.25rem; }
    .reading-progress { z-index: 1900; }
}

@media (max-width: 767.98px) {
    .navbar-collapse { padding: 1rem 0 .6rem; }
    .nav-search { width: 100%; margin: .6rem 0; }
    .nav-search:focus-within { width: 100%; }
    .nav-actions { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); width: 100%; }
    .site-navbar .navbar-nav { gap: 0; }
    .site-navbar .nav-link { padding: .55rem .2rem; }
    .site-navbar .nav-link.active::after { display: none; }
    .site-navbar .nav-link.active { color: var(--accent); }
    .hero-copy { padding: 1.5rem; gap: .9rem; }
    .hero-excerpt { font-size: .94rem; -webkit-line-clamp: 3; }
    .post-grid, .archive-layout .post-grid, .related-section .post-grid { grid-template-columns: 1fr; }
    .post-card-media { aspect-ratio: 16 / 10; }
    .section-head { align-items: flex-start; flex-direction: column; gap: .6rem; }
    .sidebar { grid-template-columns: 1fr; }
    .sidebar .side-about { grid-column: auto; }
    .post-header { text-align: left; }
    .post-meta { justify-content: flex-start; }
    .post-dek { margin-left: 0; }
    .post-cover { aspect-ratio: 16 / 10; border-radius: var(--radius); }
    .prose { font-size: 1.03rem; }
    .author-box { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid > :last-child { grid-column: auto; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .stat-card { padding: .9rem; }
    .stat-card .value { font-size: 1.7rem; }
    .admin-topbar { padding: 0 1rem; }
    .admin-topbar h1 { font-size: .92rem; }
    .admin-content { padding: 1rem; }
    .chart-bars { height: 150px; gap: .4rem; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .comment-admin-item { flex-direction: column; }
    .comment-admin-actions { justify-content: flex-end; }
    .table-clean { min-width: 620px; }
}

@media (max-width: 480px) {
    .container { padding-left: 1.1rem; padding-right: 1.1rem; }
    .hero-title { font-size: 2rem; }
    .stat-grid { grid-template-columns: 1fr; }
    .admin-toolbar .search-box { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
