:root {
    --ink: #1c1c1e;
    --muted: #6b6b70;
    --line: #e6e5e2;
    --bg: #faf9f7;
    --accent: #b3502f;
    --accent-contrast: #ffffff;
    --card-bg: #ffffff;
    --shape-scale: 1;
    --radius: calc(10px * var(--shape-scale));
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-mono: 'JetBrains Mono', 'Courier New', Consolas, monospace;
    --heading-tracking: -0.02em;
    --heading-transform: none;
}

[data-theme="dark"] {
    --ink: #f2f0ea;
    --muted: #8f8f89;
    --line: #292926;
    --bg: #0c0c0b;
    --accent: #cbe25c;
    --accent-contrast: #14140f;
    --card-bg: #131311;
}

/* ===================================================
   SİTE TEMALARI — 5 farklı görsel kimlik
   Her tema sadece vurgu rengi, başlık fontu ve şekil
   ölçeğini (köşe yuvarlaklığı) değiştirir; içerik
   yapısı aynı kalır. Admin > Ayarlar'dan seçilir.
   =================================================== */

/* Modern Minimal: keskin köşeler, siyah vurgu, sans-serif başlıklar */
[data-site-theme="modern"] {
    --accent: #18181b;
    --accent-contrast: #ffffff;
    --shape-scale: 0.3;
    --font-serif: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --heading-tracking: -0.03em;
}
[data-site-theme="modern"][data-theme="dark"] { --accent: #f2f0ea; --accent-contrast: #14140f; }

/* Dergi: cesur kırmızı, iri Playfair başlıklar, ince köşeler, büyük harf navigasyon */
[data-site-theme="magazine"] {
    --accent: #c81d3f;
    --accent-contrast: #ffffff;
    --shape-scale: 0.5;
    --font-serif: 'Playfair Display', Georgia, serif;
    --heading-tracking: -0.01em;
}
[data-site-theme="magazine"][data-theme="dark"] { --accent: #ff5577; --accent-contrast: #14140f; }

/* Doğa: yeşil vurgu, çok yuvarlak köşeler, sakin ve yumuşak his */
[data-site-theme="nature"] {
    --accent: #3f7d54;
    --accent-contrast: #ffffff;
    --shape-scale: 1.9;
    --font-serif: 'Fraunces', Georgia, serif;
}
[data-site-theme="nature"][data-theme="dark"] { --accent: #7fd99a; --accent-contrast: #0d1f13; }

/* Gece Mavisi: indigo vurgu, teknolojik Space Grotesk başlıklar, orta köşe */
[data-site-theme="night"] {
    --accent: #3b5bdb;
    --accent-contrast: #ffffff;
    --shape-scale: 0.65;
    --font-serif: 'Space Grotesk', -apple-system, sans-serif;
    --heading-tracking: -0.02em;
}
[data-site-theme="night"][data-theme="dark"] { --accent: #7c9bff; --accent-contrast: #0b0e1f; }

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    transition: background .2s ease, color .2s ease;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--card-bg);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 18px 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-text { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font-serif); }
.logo-img { height: 38px; width: 38px; object-fit: cover; border-radius: calc(8px * var(--shape-scale)); display: block; }

.header-icons { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: calc(6px * var(--shape-scale));
    font-size: 1.2rem;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--ink);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, transform .15s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(12deg); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--ink);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, background .15s, color .15s;
}
.search-toggle:hover { border-color: var(--accent); color: var(--accent); }

.search-bar {
    max-height: 0;
    overflow: hidden;
    background: var(--card-bg);
    border-bottom: 1px solid transparent;
    transition: max-height .25s ease, border-color .25s ease;
}
.search-bar.open { max-height: 90px; border-bottom-color: var(--line); }
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    color: var(--muted);
}
.search-form input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 1rem;
    color: var(--ink);
    font-family: inherit;
}
.search-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: calc(6px * var(--shape-scale));
    font-size: 0.86rem;
    cursor: pointer;
    flex-shrink: 0;
}

.search-page-form { display: flex; gap: 10px; max-width: 520px; margin-bottom: 8px; }
.search-page-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: calc(8px * var(--shape-scale));
    font-size: 0.95rem;
    background: var(--card-bg);
    color: var(--ink);
}

/* ===== Etiket pilleri (yazı sayfası) ===== */
.tag-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-pill {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    padding: 5px 12px;
    border-radius: calc(20px * var(--shape-scale));
    transition: background .15s;
}
.tag-pill:hover { background: var(--accent); color: #fff; }

/* ===== Paylaşım butonları ===== */
.share-buttons { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* ===== Okuma ilerleme çubuğu ===== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    z-index: 500;
    transition: width .1s linear;
}

/* ===== İçindekiler kutusu ===== */
.toc-box {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: calc(10px * var(--shape-scale));
    padding: 18px 22px;
    margin: 24px 0;
}
.toc-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 10px;
}
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.toc-list a { font-size: 0.9rem; color: var(--ink); }
.toc-list a:hover { color: var(--accent); }
.toc-level-3 { padding-left: 18px; font-size: 0.86rem; }

/* ===== Beğeni butonu ===== */
.post-actions { margin-top: 20px; }
.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: calc(30px * var(--shape-scale));
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
}
.like-btn:hover { border-color: #e0574c; color: #e0574c; }
.like-btn--active { background: #fdecea; border-color: #e0574c; color: #e0574c; }

/* ===== 404 sayfası ===== */
.not-found { text-align: center; padding: 40px 0 20px; }
.not-found-code {
    display: block;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}
.not-found .page-title { margin-bottom: 8px; }
.share-label { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--share-color, var(--accent));
    border: none;
    cursor: pointer;
    transition: transform .15s ease;
}
.share-btn:hover { transform: translateY(-2px) scale(1.08); }

/* ===== Benzer Yazılar ===== */
.related-posts { margin-top: 48px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.related-card {
    border: 1px solid var(--line);
    border-radius: calc(12px * var(--shape-scale));
    overflow: hidden;
    background: var(--card-bg);
    transition: transform .15s, box-shadow .15s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.08); }
.related-card img,
.related-card-placeholder { width: 100%; height: 120px; object-fit: cover; display: block; }
.related-card-placeholder { background: linear-gradient(135deg, #efece4, #ddd6c4); }
.related-card-title {
    display: block;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
}

/* ===== Yorumlar ===== */
.comments-section { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments-empty { color: var(--muted); font-size: 0.9rem; }
.comments-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.comment-item { display: flex; gap: 14px; }
.comment-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.comment-name { font-weight: 700; font-size: 0.9rem; }
.comment-date { color: var(--muted); font-size: 0.78rem; }
.comment-text { margin: 4px 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }

.comment-form {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: calc(12px * var(--shape-scale));
    padding: 22px;
}
.comment-form h3 { margin: 0 0 14px; font-size: 1rem; }
.comment-form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.comment-form-row input {
    flex: 1;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: calc(6px * var(--shape-scale));
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
}
.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: calc(6px * var(--shape-scale));
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.comment-form-note { color: var(--muted); font-size: 0.78rem; margin: 10px 0 0; }
.comment-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.main-nav a {
    margin-left: 18px;
    font-size: 0.92rem;
    color: var(--muted);
    transition: color .15s, opacity .15s;
}
.main-nav a:first-child { margin-left: 0; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.nav-cat-link { color: var(--nav-color, var(--muted)); font-weight: 600; }
.main-nav a.nav-cat-link:hover { opacity: .72; }

/* "Diğer" açılır menü */
.nav-more { display: inline-block; margin-left: 18px; position: relative; }
.nav-more summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .15s;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover { color: var(--accent); }
.nav-more[open] summary { color: var(--accent); }
.nav-more-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: calc(10px * var(--shape-scale));
    padding: 8px;
    min-width: 170px;
    box-shadow: 0 12px 26px rgba(0,0,0,.10);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 20;
}
.nav-more-panel a {
    display: block;
    margin-left: 0 !important;
    padding: 8px 10px;
    border-radius: calc(6px * var(--shape-scale));
    font-size: 0.88rem;
    white-space: nowrap;
}
.nav-more-panel a:hover { background: var(--bg); }

.main-content { padding: 0 0 60px; }
.main-content-inner { padding-top: 40px; }

/* ===== Akış araç çubuğu: "AKIŞ" başlığı + kategori pilleri ===== */
.feed-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
}
.feed-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--muted);
    flex-shrink: 0;
}
.pill-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: calc(30px * var(--shape-scale));
    border: 1.5px solid var(--pill-color, var(--line));
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--pill-color, var(--muted));
    background: transparent;
    transition: border-color .15s, background .15s, color .15s, transform .18s ease, box-shadow .18s ease;
}
.pill:hover {
    background: var(--pill-color, var(--accent));
    border-color: var(--pill-color, var(--accent));
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 16px -6px var(--pill-color, var(--accent));
}
.pill-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    opacity: .75;
}
.pill-active {
    background: var(--pill-color, var(--accent));
    border-color: var(--pill-color, var(--accent));
    color: #fff;
}
.pill-active .pill-count { opacity: .9; }
.pill-active:hover { color: #fff; }
.pill-all { --pill-color: var(--accent); }

/* ===== Akış listesi (satır satır yazılar) ===== */
.feed-list { display: flex; flex-direction: column; }

.feed-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
    transition: background .15s;
}
.feed-item:hover { background: var(--card-bg); }
.feed-item:hover .feed-item-title { color: var(--accent); }

.feed-item-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--line);
    color: var(--muted);
}
.feed-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.feed-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.feed-item-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.3;
    transition: color .15s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.feed-item-excerpt {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.feed-item-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.feed-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.feed-tag--category {
    color: var(--tag-color, var(--accent));
    background: color-mix(in srgb, var(--tag-color, var(--accent)) 14%, transparent);
    padding: 3px 9px;
    border-radius: calc(20px * var(--shape-scale));
    font-weight: 600;
}
.feed-item-date {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

/* ===== Hero / Kapak Alanı ===== */
/* Kategori banner'ıyla aynı oran ve mekanizma kullanılır, böylece tüm kapak
   görselleri (site kapağı + kategori kapakları) tutarlı boyutta görünür. */
.hero {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 4 / 1;
    min-height: 220px;
    max-height: 400px;
    background-color: #2b2b2e;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6));
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-logo {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    margin-bottom: 14px;
    background: #fff;
}
.hero-title { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; letter-spacing: var(--heading-tracking); margin: 0 0 8px; }
.hero-tagline { font-size: 1.05rem; opacity: .92; margin: 0; }

/* ===== Manşet Slider ===== */
.headline-slider {
    position: relative;
    margin-top: 32px;
    border-radius: calc(18px * var(--shape-scale));
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,.10);
}
.headline-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.headline-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 450px;
    display: flex;
    align-items: flex-end;
    background-color: #23231f;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
}
.headline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.05) 100%);
}
.headline-content {
    position: relative;
    z-index: 1;
    padding: 32px 36px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.headline-cat { align-self: flex-start; }
.headline-title {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.headline-excerpt {
    font-size: 0.95rem;
    opacity: .88;
    max-width: 640px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.headline-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    z-index: 2;
}
.headline-arrow:hover { background: rgba(0,0,0,.55); }
.headline-arrow--prev { left: 16px; }
.headline-arrow--next { right: 16px; }
.headline-dots {
    position: absolute;
    bottom: 18px;
    right: 24px;
    display: flex;
    gap: 7px;
    z-index: 2;
}
.headline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
    transition: background .15s, transform .15s;
}
.headline-dot.active { background: #fff; transform: scale(1.25); }

/* ===== Kategori kapak banner'ı ===== */
/* Hero (site kapağı) ile birebir aynı oran/yükseklik kullanılır, tüm kapak
   görselleri sitede tutarlı boyutta görünür. */
.category-banner {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    aspect-ratio: 4 / 1;
    max-height: 400px;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}
.category-banner-overlay { position: absolute; inset: 0; }
.category-banner-inner { position: relative; z-index: 1; }
.category-banner-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.category-banner-count {
    margin: 10px 0 0;
    color: rgba(255,255,255,.9);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ===== Ana sayfa galeri bölümü ===== */
.gallery-section { padding: 50px 0 10px; }
.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.gallery-filter { display: flex; gap: 6px; }
.gallery-filter-btn {
    background: none;
    border: 1px solid var(--line);
    border-radius: calc(20px * var(--shape-scale));
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
}
.gallery-filter-btn:hover { border-color: var(--accent); color: var(--ink); }
.gallery-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.gallery-see-all {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
    transition: opacity .15s;
}
.gallery-see-all:hover { opacity: .75; }

/* ===== Galeri sayfası (galeri.php) tür sekmeleri ===== */
.gallery-type-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.gallery-type-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    transition: all .15s;
}
.gallery-type-tab span { font-family: var(--font-mono); font-size: 0.74rem; opacity: .7; }
.gallery-type-tab:hover { border-color: var(--accent); color: var(--ink); }
.gallery-type-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: calc(12px * var(--shape-scale));
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--card-bg);
}
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.08); }
.gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* ===== Lightbox ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 86vh; }
.lightbox-content img,
.lightbox-content video {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: calc(8px * var(--shape-scale));
    display: block;
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* ===== Öne çıkan yazı ===== */
.featured-post {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    transition: box-shadow .15s;
}
.featured-post:hover { box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.featured-post-img {
    background-size: cover;
    background-position: center;
    min-height: 260px;
}
.featured-post-img--placeholder { background: linear-gradient(135deg, #e8e4dc, #d8d2c4); }
.featured-post-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; }
.featured-post-title { font-size: 1.5rem; margin: 8px 0 12px; line-height: 1.3; }
.featured-post-title:hover { color: var(--accent); }

.section-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: var(--heading-tracking);
    margin: 0 0 20px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: var(--heading-tracking);
    margin: 0 0 28px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .5; }
.breadcrumb-current { color: var(--ink); font-weight: 600; }

/* ===== Önizleme banner'ı ===== */
.preview-banner {
    background: #fff4e0;
    color: #8a5a10;
    border-bottom: 1px solid #f0dcae;
    font-size: 0.88rem;
    padding: 12px 0;
    text-align: center;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: calc(18px * var(--shape-scale));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 34px rgba(28,28,30,.10);
    border-color: transparent;
}

.post-cover-wrap {
    display: block;
    overflow: hidden;
    position: relative;
}
.post-cover-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.14) 100%);
    opacity: 0;
    transition: opacity .25s ease;
}
.post-card:hover .post-cover-wrap::after { opacity: 1; }

.post-cover {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.post-card:hover .post-cover { transform: scale(1.06); }

.post-cover--placeholder {
    height: 190px;
    background: linear-gradient(135deg, #efece4, #ddd6c4);
}

.post-card-body { padding: 22px 22px 24px; }

.post-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    font-weight: 700;
    background: rgba(179, 80, 47, 0.09);
    padding: 4px 11px;
    border-radius: calc(20px * var(--shape-scale));
    margin-bottom: 12px;
}

.post-title { font-size: 1.15rem; margin: 0 0 10px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em; }
.post-title a { transition: color .15s; }
.post-title a:hover { color: var(--accent); }

.post-excerpt {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    color: var(--muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.post-meta-dot { opacity: .6; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; }
.pagination a {
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: calc(6px * var(--shape-scale));
    font-size: 0.88rem;
    color: var(--muted);
    transition: border-color .15s, color .15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination-arrow { font-weight: 700; }
.pagination-ellipsis { color: var(--muted); padding: 0 4px; user-select: none; }

.empty-state { color: var(--muted); padding: 30px 0; }

.single-post .post-cover-large {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 20px 0;
}
.single-post .post-content { font-size: 1.05rem; margin-top: 20px; }
.single-post .post-content p { margin: 0 0 1.1em; }
.single-post .post-content img { max-width: 100%; border-radius: calc(8px * var(--shape-scale)); margin: 10px 0; }

/* Editörden (Quill) gelen biçimlendirme sınıfları */
.post-content .ql-align-center { text-align: center; }
.post-content .ql-align-right { text-align: right; }
.post-content .ql-align-justify { text-align: justify; }
.post-content .ql-font-serif { font-family: Georgia, 'Times New Roman', serif; }
.post-content .ql-font-monospace { font-family: 'Courier New', Consolas, monospace; }
.post-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 0 0 1.2em;
    padding: 4px 0 4px 18px;
    color: var(--muted);
    font-style: italic;
}
.post-content pre.ql-syntax,
.post-content pre {
    background: #1e1e1e;
    color: #e6e6e6;
    padding: 16px 18px;
    border-radius: calc(8px * var(--shape-scale));
    overflow-x: auto;
    font-family: 'Fira Code', Consolas, Menlo, monospace;
    font-size: 0.88rem;
    margin: 0 0 1.2em;
    line-height: 1.5;
}
.post-content ul, .post-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.post-content h2, .post-content h3 { scroll-margin-top: 20px; }

.site-footer {
    position: relative;
    background: #17171a;
    margin-top: 60px;
    color: #a8a8a2;
    font-size: 0.85rem;
}
.site-footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #e0574c, #e08a2f, #3fa35a, #2f9db8, #4169e1, #8a5fd1, #d1497f, #c9a227);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding: 44px 20px 36px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col--social { align-items: flex-start; }
.footer-logo { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-tagline { margin: 0; font-size: 0.86rem; line-height: 1.55; max-width: 320px; color: #8c8c86; }
.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 4px;
}
.footer-link-list { display: flex; flex-direction: column; gap: 8px; }
.footer-link-list a { color: #a8a8a2; font-size: 0.86rem; transition: color .15s; }
.footer-link-list a:hover { color: var(--accent); }

.social-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--social-color, var(--accent));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform .18s ease, box-shadow .18s ease;
}
.social-icon:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 16px -6px var(--social-color, var(--accent));
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0;
}
.footer-bottom p { margin: 0; font-size: 0.8rem; color: #9a9a94; }
.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-credit { color: #8f8f89; }
.footer-credit a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.footer-credit a:hover { text-decoration: underline; }

/* ===== Admin ===== */
.admin-body { background: #f2f1ee; }
.admin-wrap { max-width: 980px; margin: 40px auto; padding: 0 20px; }
.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 24px;
}
.admin-nav { display: flex; gap: 6px; margin-bottom: 28px; align-items: center; flex-wrap: wrap; }
.admin-nav a { font-size: 0.9rem; color: var(--muted); padding: 8px 15px; border-radius: calc(20px * var(--shape-scale)); transition: background .15s, color .15s, transform .15s; border: 1px solid var(--line); }
.admin-nav a:hover { color: var(--accent); background: #fdf0ea; border-color: var(--accent); transform: translateY(-1px); }
.admin-nav a.active { color: #fff; font-weight: 600; background: var(--accent); border-color: var(--accent); }
.admin-nav .spacer { flex: 1; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--stat-color, var(--accent));
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
}
.stat-number { font-size: 1.7rem; font-weight: 700; color: var(--stat-color, var(--ink)); font-family: var(--font-mono); }
.stat-label { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

/* ===== Tema seçici (Ayarlar sayfası) ===== */
.theme-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.theme-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 14px 14px 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.theme-option:hover { border-color: var(--accent); }
.theme-option--active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(179,80,47,.12); }
.theme-option input { position: absolute; top: 12px; right: 12px; width: auto; margin: 0; }
.theme-swatch { width: 30px; height: 30px; border-radius: 50%; display: block; }
.theme-option-name { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.theme-option-desc { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }

/* ===== Ayarlar sayfası sekmeleri ===== */
.settings-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.settings-tab {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 9px 18px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
}
.settings-tab:hover { border-color: var(--accent); color: var(--ink); }
.settings-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.settings-pane { margin-bottom: 0; }

/* ===== Admin arama kutusu (yazılar, medya) ===== */
.admin-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    margin: 16px 0;
    max-width: 420px;
    color: var(--muted);
}
.admin-search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    background: none;
    color: var(--ink);
}
.admin-search-form--compact { margin: 0; max-width: 320px; }
.admin-search-clear { font-size: 0.8rem; color: var(--accent); white-space: nowrap; }

/* ===== Medya sayfası: ekleme sekmeleri + filtre çubuğu ===== */
.media-add-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.media-add-tab {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}
.media-add-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.media-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 16px;
}
.media-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.media-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}
.media-filter-tab span { font-family: var(--font-mono); font-size: 0.72rem; opacity: .7; }
.media-filter-tab:hover { border-color: var(--accent); color: var(--ink); }
.media-filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.media-filter-tab.active span { opacity: .9; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input[type=text],
.form-group input[type=password],
.form-group input[type=file],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: calc(6px * var(--shape-scale));
    font-size: 0.95rem;
    font-family: inherit;
}
.form-group textarea { min-height: 260px; resize: vertical; }

#editor-wrap { border-radius: calc(6px * var(--shape-scale)); overflow: hidden; border: 1px solid var(--line); }
#editor-wrap .ql-toolbar { border: none; border-bottom: 1px solid var(--line); background: #fafafa; }
#editor-wrap .ql-container { border: none; font-size: 1rem; min-height: 320px; }
#editor-wrap .ql-editor { min-height: 320px; }
#editor.editor-drag-over .ql-editor { background: #fdf0ea; outline: 2px dashed var(--accent); outline-offset: -4px; }

.draft-restore-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #fff4e0;
    border: 1px solid #f0dcae;
    color: #8a5a10;
    border-radius: calc(10px * var(--shape-scale));
    padding: 12px 18px;
    margin-bottom: 18px;
    font-size: 0.88rem;
}
.draft-restore-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: calc(6px * var(--shape-scale));
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}
.btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 14px -6px var(--accent); }
.btn-secondary { background: #6b6b70; }
.btn-secondary:hover { box-shadow: 0 6px 14px -6px #6b6b70; }
.btn-danger { background: #c0392b; }
.btn-danger:hover { box-shadow: 0 6px 14px -6px #c0392b; }
.btn-small { padding: 5px 12px; font-size: 0.8rem; }

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}
table.admin-table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; }

.alert { padding: 12px 16px; border-radius: calc(6px * var(--shape-scale)); margin-bottom: 18px; font-size: 0.9rem; }
.alert-success { background: #e5f6e8; color: #1c6b2a; }
.alert-error { background: #fdecea; color: #b3261e; }

.status-badge { font-size: 0.72rem; padding: 2px 8px; border-radius: calc(20px * var(--shape-scale)); }
.status-published { background: #e5f6e8; color: #1c6b2a; }
.status-draft { background: #f1eee6; color: #8a7a52; }
.status-scheduled { background: #e6eefc; color: #2952a3; }

/* ===== Medya Kütüphanesi (admin) ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.media-grid-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: calc(10px * var(--shape-scale));
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg);
}
.media-grid-item img,
.media-grid-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-type-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: calc(20px * var(--shape-scale));
}
.media-grid-item--pickable { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.media-grid-item--pickable:hover { transform: scale(1.04); box-shadow: 0 8px 18px rgba(0,0,0,.15); }

/* Medya kütüphanesi kartları — kontroller her zaman görünür */
.media-card {
    border: 1px solid var(--line);
    border-radius: calc(12px * var(--shape-scale));
    overflow: hidden;
    background: var(--card-bg);
}
.media-card-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--bg); }
.media-card-thumb img,
.media-card-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-video-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #2a2a28, #111); }
.media-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px;
    border-top: 1px solid var(--line);
}
.media-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 5px 9px 5px 6px;
    border-radius: calc(20px * var(--shape-scale));
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--line);
    white-space: nowrap;
}
.media-toggle-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background .15s; flex-shrink: 0; }
.media-toggle--on { background: #e5f6e8; color: #1c6b2a; border-color: #cdeed3; }
.media-toggle--on .media-toggle-dot { background: #2fa35a; }
.media-toggle--press.media-toggle--on { background: #fdf0e0; color: #a5680f; border-color: #f2ddb0; }
.media-toggle--press.media-toggle--on .media-toggle-dot { background: #d1922f; }

.media-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px 8px;
}
.media-card-tags input {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: calc(6px * var(--shape-scale));
    font-size: 0.76rem;
    background: var(--bg);
    color: var(--ink);
}
.media-card-tags button {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: calc(6px * var(--shape-scale));
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* ===== Medya Seçici Modal ===== */
.media-picker-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.media-picker-overlay.open { display: flex; }
.media-picker-modal {
    background: var(--card-bg);
    border-radius: calc(14px * var(--shape-scale));
    width: 100%;
    max-width: 720px;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.media-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}
.media-picker-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); line-height: 1; }
.media-picker-tabs { display: flex; gap: 4px; padding: 10px 20px 0; border-bottom: 1px solid var(--line); }
.media-picker-tab {
    background: none;
    border: none;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.media-picker-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.media-picker-body { padding: 18px 20px; overflow-y: auto; }
.media-picker-pane .media-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.media-picker-empty { color: var(--muted); font-size: 0.88rem; grid-column: 1 / -1; }

/* ===================================================
   MOBİL UYUM
   =================================================== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 14px;
        gap: 4px;
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        margin-left: 0;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
    }
    .nav-more { margin-left: 0; }
    .nav-more summary { padding: 8px 0; border-bottom: 1px solid var(--line); }
    .nav-more-panel {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 12px;
        margin-top: 4px;
    }

    .hero { aspect-ratio: 16 / 9; min-height: 200px; max-height: 320px; padding: 20px 16px; }
    .hero-title { font-size: 1.7rem; }
    .hero-tagline { font-size: 0.92rem; }
    .hero-logo { width: 64px; height: 64px; }

    .headline-slider { margin-top: 20px; border-radius: calc(14px * var(--shape-scale)); }
    .headline-slide { height: 280px; }
    .headline-content { padding: 20px; gap: 8px; }
    .headline-title { font-size: 1.3rem; }
    .headline-excerpt { font-size: 0.85rem; -webkit-line-clamp: 2; }
    .headline-arrow { width: 32px; height: 32px; font-size: 1.1rem; }
    .headline-dots { bottom: 12px; right: 16px; }

    .footer-inner { flex-direction: column; gap: 22px; padding: 34px 16px 26px; }

    .category-banner { min-height: 200px; max-height: 320px; aspect-ratio: 16 / 9; padding: 20px 16px; }
    .category-banner-title { font-size: 2rem; }

    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
    .gallery-section { padding: 34px 0 6px; }

    .media-picker-modal { max-height: 90vh; }
    .media-picker-body { padding: 14px; }

    .featured-post { grid-template-columns: 1fr; }
    .featured-post-img { min-height: 180px; }
    .featured-post-body { padding: 20px; }
    .featured-post-title { font-size: 1.25rem; }

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

    .page-title { font-size: 1.5rem; }

    .feed-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
    .pill { padding: 6px 12px; font-size: 0.72rem; }

    .feed-item { gap: 14px; padding: 16px 2px; align-items: flex-start; }
    .feed-item-thumb { width: 44px; height: 44px; }
    .feed-item-title { font-size: 1.05rem; white-space: normal; }
    .feed-item-date { font-size: 0.72rem; }
    .feed-item { flex-wrap: wrap; }
    .feed-item-date { order: 3; width: 100%; margin-left: 64px; margin-top: -4px; }

    /* Admin panel */
    .admin-wrap { margin: 20px auto; padding: 0 14px; }
    .admin-nav-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .admin-brand { font-weight: 700; font-size: 1rem; }
    .admin-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 20px;
    }
    .admin-nav.open { display: flex; }
    .admin-nav .spacer { display: none; }
    .admin-nav a { padding: 9px 13px; width: 100%; border-bottom: 1px solid var(--line); border-radius: calc(6px * var(--shape-scale)); }
    .admin-nav a.active { border-bottom-color: transparent; }

    .admin-card { padding: 20px; }
    table.admin-table { display: block; overflow-x: auto; white-space: nowrap; }

    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-number { font-size: 1.4rem; }
    .dashboard-grid { grid-template-columns: 1fr !important; }
}

@media (min-width: 769px) {
    .nav-toggle { display: none; }
    .admin-nav-bar { display: none; }
}

/* ===================================================================
   TEMA BAZLI DÜZEN FARKLILIKLARI
   Aynı HTML yapısı (feed-item, pill, nav) kullanılıyor ama her tema
   bunları tamamen farklı şekilde diziyor — liste / ızgara / kartlı
   manşet gibi. Böylece sadece renk değil, gerçek bir düzen farkı olur.
   =================================================================== */

/* --------------------------------------------------
   MODERN MİNİMAL — 2 sütunlu editoryal ızgara, kare
   görseller, çizgi ayraçlar, düz metin nav/filtre
   -------------------------------------------------- */
[data-site-theme="modern"] .main-nav a.nav-cat-link {
    background: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}
[data-site-theme="modern"] .main-nav a.nav-cat-link:hover { border-bottom-color: currentColor; }

[data-site-theme="modern"] .pill {
    background: none !important;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 6px 10px 6px 0;
    color: var(--muted);
}
[data-site-theme="modern"] .pill:hover,
[data-site-theme="modern"] .pill-active {
    background: none !important;
    color: var(--ink) !important;
    border-bottom-color: var(--pill-color, var(--accent));
    transform: none;
    box-shadow: none;
}

[data-site-theme="modern"] .feed-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}
[data-site-theme="modern"] .feed-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 26px 22px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
[data-site-theme="modern"] .feed-item:nth-child(2n) { border-right: none; }
[data-site-theme="modern"] .feed-item-thumb { width: 100%; height: 190px; border-radius: 0; }
[data-site-theme="modern"] .feed-item-thumb img { border-radius: 0; }
[data-site-theme="modern"] .feed-item-meta { order: -1; }
[data-site-theme="modern"] .feed-item-title { white-space: normal; font-size: 1.15rem; }
[data-site-theme="modern"] .feed-item-excerpt {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
[data-site-theme="modern"] .feed-tag--category {
    background: none;
    color: var(--muted);
    padding: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

/* --------------------------------------------------
   DERGİ — 3 sütunlu görsel ağırlıklı kart manşet,
   metin görselin üstünde, büyük harf/aralıklı nav
   -------------------------------------------------- */
[data-site-theme="magazine"] .main-nav a { text-transform: uppercase; font-size: 0.78rem; letter-spacing: .08em; font-weight: 700; }

[data-site-theme="magazine"] .pill {
    background: var(--pill-color, var(--line));
    color: #fff;
    border: none;
    font-weight: 800;
}
[data-site-theme="magazine"] .pill:hover,
[data-site-theme="magazine"] .pill-active { background: var(--pill-color, var(--accent)); color: #fff; }

[data-site-theme="magazine"] .feed-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
[data-site-theme="magazine"] .feed-item {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border: none;
    border-radius: calc(14px * var(--shape-scale));
    overflow: hidden;
    aspect-ratio: 3 / 4;
    color: #fff;
}
[data-site-theme="magazine"] .feed-item-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    z-index: 0;
}
[data-site-theme="magazine"] .feed-item-thumb img { border-radius: 0; }
[data-site-theme="magazine"] .feed-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 78%);
    z-index: 1;
    pointer-events: none;
}
[data-site-theme="magazine"] .feed-item-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 18px 16px 6px;
    gap: 8px;
}
[data-site-theme="magazine"] .feed-item-title {
    color: #fff;
    font-size: 1.15rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
[data-site-theme="magazine"] .feed-item-excerpt { display: none; }
[data-site-theme="magazine"] .feed-item-date {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,.8);
    padding: 0 16px 16px;
}

/* --------------------------------------------------
   DOĞA — yumuşak, gölgeli kart ızgarası, geniş
   köşe yuvarlaklığı, sakin nefes alan boşluklar
   -------------------------------------------------- */
[data-site-theme="nature"] .feed-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
[data-site-theme="nature"] .feed-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: calc(22px * var(--shape-scale));
    background: var(--card-bg);
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
    transition: transform .18s ease, box-shadow .18s ease;
}
[data-site-theme="nature"] .feed-item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.09); }
[data-site-theme="nature"] .feed-item-thumb { width: 100%; height: 170px; border-radius: calc(16px * var(--shape-scale)); }
[data-site-theme="nature"] .feed-item-thumb img { border-radius: inherit; }
[data-site-theme="nature"] .feed-item-title { white-space: normal; }
[data-site-theme="nature"] .feed-item-excerpt {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------
   GECE MAVİSİ — sık/kompakt liste, mono meta veriler,
   köşeli küçük görseller, "terminal" hissi
   -------------------------------------------------- */
[data-site-theme="night"] .main-nav a { font-family: var(--font-mono); font-size: 0.82rem; }
[data-site-theme="night"] .pill { font-family: var(--font-mono); }

[data-site-theme="night"] .feed-item { gap: 14px; padding: 13px 8px; }
[data-site-theme="night"] .feed-item:hover { background: var(--card-bg); border-left: 2px solid var(--accent); padding-left: 6px; }
[data-site-theme="night"] .feed-item-thumb { width: 38px; height: 38px; border-radius: calc(6px * var(--shape-scale)); }
[data-site-theme="night"] .feed-item-thumb img { border-radius: inherit; }
[data-site-theme="night"] .feed-item-title { font-size: 1.05rem; }
[data-site-theme="night"] .feed-item-excerpt { display: none; }
[data-site-theme="night"] .feed-tag--category { font-family: var(--font-mono); }

/* --------------------------------------------------
   Mobilde tüm ızgara temaları tek sütuna iner
   -------------------------------------------------- */
@media (max-width: 768px) {
    [data-site-theme="modern"] .feed-list { grid-template-columns: 1fr; }
    [data-site-theme="modern"] .feed-item { border-right: none !important; }
    [data-site-theme="magazine"] .feed-list { grid-template-columns: 1fr 1fr; }
    [data-site-theme="magazine"] .feed-item { aspect-ratio: 1 / 1; }
    [data-site-theme="nature"] .feed-list { grid-template-columns: 1fr; }
}
