/* ==========================================================================
   TurboMC Wiki — Otantik Minecraft GUI Teması (Ziyaretçi)
   Fontlar: Press Start 2P (sadece İngilizce marka), Pixelify Sans (Türkçe başlık/UI)
   ========================================================================== */

:root {
    /* Renkler */
    --accent: #5fce5a;          /* çim yeşili (site ayarı ezebilir) */
    --accent-d: #3c8a36;
    --accent-dd: #2c5e1c;
    --gold: #fcdb4e;
    --diamond: #5fd9d4;
    --redstone: #e0564f;

    --bg: #14161c;              /* gece taş */
    --panel: #2b313b;          /* taş panel */
    --panel-2: #232831;        /* koyu taş */
    --slot: #15181e;           /* envanter slotu içi */
    --ink: #0a0c10;            /* siyah piksel kenar */
    --line: rgba(0,0,0,.45);

    --text: #e9eef0;
    --text-dim: #9aa7ad;

    /* Fontlar */
    --font-pixel: 'Press Start 2P', monospace;
    --font-head: 'Pixelify Sans', 'Trebuchet MS', sans-serif;
    --font-body: 'Trebuchet MS', system-ui, 'Segoe UI', Roboto, sans-serif;

    /* Taş dokusu (gömülü SVG, harici istek yok) */
    --tex-stone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' fill='%232b313b'/%3E%3Crect width='12' height='12' fill='%232f3640'/%3E%3Crect x='12' y='12' width='12' height='12' fill='%2330373f'/%3E%3Crect x='3' y='4' width='3' height='3' fill='%23262b33'/%3E%3Crect x='16' y='3' width='3' height='3' fill='%23343b45'/%3E%3Crect x='8' y='15' width='3' height='3' fill='%23262b33'/%3E%3Crect x='18' y='17' width='3' height='3' fill='%23262b33'/%3E%3Crect x='6' y='9' width='2' height='2' fill='%23343b45'/%3E%3C/svg%3E");
    --tex-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='24' height='24' fill='%23181b22'/%3E%3Crect width='12' height='12' fill='%231b1f27'/%3E%3Crect x='12' y='12' width='12' height='12' fill='%231b1f27'/%3E%3Crect x='4' y='5' width='3' height='3' fill='%2314171d'/%3E%3Crect x='15' y='16' width='3' height='3' fill='%2314171d'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }

img, .pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    background-image: var(--tex-dark);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    font-size: 16px;
    display: flex;
    flex-direction: column;
}
/* İçerik alanı kalan boşluğu doldurur, footer her zaman en alta iner;
   footer normal akışta olduğu için içerik ASLA altında kalmaz. */
.layout { flex: 1 0 auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; filter: brightness(1.15); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; letter-spacing: .5px; }

/* ===== Yeniden kullanılabilir Minecraft primitive'leri ===== */
.mc-panel {
    background-color: var(--panel);
    background-image: var(--tex-stone);
    border: 3px solid var(--ink);
    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,.14),
        inset -3px -3px 0 rgba(0,0,0,.40),
        0 4px 0 rgba(0,0,0,.45);
}

.mc-btn {
    display: inline-block;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    letter-spacing: .5px;
    color: #11260a; text-shadow: 0 1px 0 rgba(255,255,255,.25);
    background: linear-gradient(#74cf52, #4e9b34);
    border: 3px solid #102309;
    padding: 11px 22px; cursor: pointer;
    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,.45),
        inset -3px -3px 0 rgba(0,0,0,.30),
        0 5px 0 var(--accent-dd),
        0 7px 8px rgba(0,0,0,.45);
    transition: transform .04s, box-shadow .04s, filter .1s;
}
.mc-btn:hover { filter: brightness(1.08); text-decoration: none; }
.mc-btn:active {
    transform: translateY(5px);
    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,.40),
        inset -3px -3px 0 rgba(0,0,0,.30),
        0 0 0 var(--accent-dd);
}
.mc-btn.gray { background: linear-gradient(#9aa3ad, #6e7782); border-color: #1c2026; color: #14171c; }
.mc-btn.gray { box-shadow: inset 2px 2px 0 rgba(255,255,255,.45), inset -3px -3px 0 rgba(0,0,0,.30), 0 5px 0 #3a4049, 0 7px 8px rgba(0,0,0,.45); }
.mc-btn.gray:active { box-shadow: inset 2px 2px 0 rgba(255,255,255,.40), inset -3px -3px 0 rgba(0,0,0,.30), 0 0 0 #3a4049; }

.mc-slot {
    background-color: var(--slot);
    border: 3px solid var(--ink);
    box-shadow:
        inset 3px 3px 0 rgba(0,0,0,.55),
        inset -2px -2px 0 rgba(255,255,255,.07);
}

/* Çim bloğu küpü (CSS, marka ikonu) */
.mc-cube {
    width: 30px; height: 30px; flex-shrink: 0;
    background:
        linear-gradient(#7ec850 0 34%, #6b4a2d 34% 100%);
    border: 2px solid var(--ink);
    box-shadow:
        inset 0 3px 0 rgba(255,255,255,.35),
        inset -3px 0 0 rgba(0,0,0,.30),
        inset 3px -3px 0 rgba(255,255,255,.08);
    image-rendering: pixelated;
}

/* ===== Üst bar (hotbar) ===== */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background-color: var(--panel-2);
    background-image: var(--tex-stone);
    border-bottom: 4px solid var(--ink);
    box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 8px 14px rgba(0,0,0,.4);
}
.topbar-inner {
    display: flex; align-items: center; gap: 16px;
    max-width: 1280px; margin: 0 auto; padding: 12px 18px;
}
.menu-toggle {
    display: none; font-family: var(--font-head); font-weight: 700;
    background: var(--slot); color: var(--text);
    border: 3px solid var(--ink); font-size: 18px; padding: 4px 12px; cursor: pointer;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.1);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; filter: none; }
.brand-name {
    font-family: var(--font-pixel); font-size: .95rem; letter-spacing: 1px;
    color: var(--accent); text-shadow: 2px 2px 0 var(--ink);
}
.brand-logo { height: 34px; width: auto; image-rendering: pixelated; }

.search-form { display: flex; flex: 1; max-width: 420px; margin-left: auto; }
.search-form input {
    flex: 1; font-family: var(--font-body); font-size: .95rem;
    background: var(--slot); border: 3px solid var(--ink); border-right: none;
    color: var(--text); padding: 9px 12px; outline: none;
    box-shadow: inset 3px 3px 0 rgba(0,0,0,.5);
}
.search-form input::placeholder { color: var(--text-dim); }
.search-form input:focus { box-shadow: inset 3px 3px 0 rgba(0,0,0,.5), 0 0 0 2px var(--accent); }
.search-form button {
    font-family: var(--font-head); background: linear-gradient(#9aa3ad,#6e7782);
    border: 3px solid var(--ink); color: #14171c; padding: 0 14px; cursor: pointer; font-size: 1.1rem;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.4);
}
.btn-discord {
    font-family: var(--font-head); font-weight: 700; letter-spacing: .5px;
    background: linear-gradient(#7b87f0,#4954c9); color: #fff; padding: 9px 16px;
    border: 3px solid #1f2452; white-space: nowrap;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.3), 0 4px 0 #2d3585;
}
.btn-discord:hover { text-decoration: none; filter: brightness(1.1); }

/* ===== Yerleşim ===== */
.layout { display: flex; max-width: 1280px; margin: 0 auto; gap: 22px; padding: 24px 18px; align-items: flex-start; }

.sidebar {
    width: 270px; flex-shrink: 0; position: sticky; top: 90px;
    background-color: var(--panel); background-image: var(--tex-stone);
    border: 3px solid var(--ink); padding: 12px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.12), inset -3px -3px 0 rgba(0,0,0,.4);
    max-height: calc(100vh - 110px); overflow-y: auto;
}
.sidebar .nav-home {
    display: block; font-family: var(--font-head); font-weight: 700; color: var(--text);
    padding: 9px 12px; background: var(--slot); border: 2px solid var(--ink);
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.4);
}
.sidebar .nav-home:hover { color: var(--accent); text-decoration: none; }
.nav-cat { margin-top: 14px; }
.nav-cat-title {
    display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700;
    color: var(--gold); padding: 6px 6px; font-size: .95rem; text-shadow: 1px 1px 0 var(--ink);
    border-bottom: 2px solid var(--line);
}
.nav-cat-title:hover { text-decoration: none; filter: brightness(1.1); }
.nav-icon { font-size: 1.1rem; }
.nav-cat ul { list-style: none; margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.nav-cat ul li a {
    display: block; padding: 7px 12px; color: var(--text-dim); font-size: .95rem;
    background: var(--slot); border: 2px solid var(--ink);
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.35);
}
.nav-cat ul li a:hover { color: var(--text); text-decoration: none; box-shadow: inset 2px 2px 0 rgba(0,0,0,.35), 0 0 0 2px var(--accent); }

.content {
    flex: 1; min-width: 0;
    background-color: var(--panel); background-image: var(--tex-stone);
    border: 3px solid var(--ink); padding: 28px 32px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.10), inset -3px -3px 0 rgba(0,0,0,.4);
}

/* ===== Hero (Minecraft manzara) ===== */
.hero {
    position: relative; overflow: hidden; text-align: center;
    border: 3px solid var(--ink); margin-bottom: 26px;
    padding: 54px 20px 96px;
    background: linear-gradient(#6db4ff 0%, #9fd3ff 55%, #cdeaff 75%);
}
.hero::before { /* güneş */
    content: ""; position: absolute; top: 26px; right: 40px; width: 54px; height: 54px;
    background: #ffe773; border: 3px solid #e8b93b; image-rendering: pixelated;
    box-shadow: 0 0 0 6px rgba(255,231,115,.25);
}
.hero::after { /* çim+toprak zemin şeridi */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
    background:
        linear-gradient(#5fae3a 0 14px, #7ec850 14px 20px, #6b4a2d 20px 100%);
    border-top: 3px solid #34611f;
    box-shadow: inset 0 -10px 0 rgba(0,0,0,.18);
}
.hero-cloud { position: absolute; top: 40px; left: 8%; width: 70px; height: 18px; background: #fff; opacity: .85; box-shadow: 22px -10px 0 0 #fff, 46px 0 0 0 #fff; }
.hero-cloud.two { top: 84px; left: 64%; transform: scale(.8); opacity: .7; }
.hero-content { position: relative; z-index: 2; }
.hero h1 {
    font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.4rem);
    color: #fff; text-shadow: 3px 3px 0 #2c5e1c, 6px 6px 0 rgba(0,0,0,.25); margin-bottom: 14px;
}
.hero-intro {
    max-width: 640px; margin: 0 auto 22px; color: #15321a; font-weight: 600;
    background: rgba(255,255,255,.55); padding: 10px 16px; border: 2px solid rgba(0,0,0,.15);
}

/* Genel buton uyumluluğu (eski sınıf adı korunur) */
.btn-primary { /* alias -> mc-btn */
    display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    color: #11260a; text-shadow: 0 1px 0 rgba(255,255,255,.25);
    background: linear-gradient(#74cf52, #4e9b34); border: 3px solid #102309;
    padding: 12px 26px; cursor: pointer;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.45), inset -3px -3px 0 rgba(0,0,0,.30), 0 5px 0 var(--accent-dd), 0 7px 8px rgba(0,0,0,.45);
    transition: transform .04s, box-shadow .04s, filter .1s;
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-primary:active { transform: translateY(5px); box-shadow: inset 2px 2px 0 rgba(255,255,255,.4), inset -3px -3px 0 rgba(0,0,0,.3), 0 0 0 var(--accent-dd); }

/* ===== Kategori slot kartları ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    background-color: var(--slot); border: 3px solid var(--ink); color: var(--text);
    padding: 26px 16px; text-align: center;
    box-shadow: inset 3px 3px 0 rgba(0,0,0,.5), inset -2px -2px 0 rgba(255,255,255,.06);
    transition: transform .08s, box-shadow .08s;
}
.cat-card:hover {
    text-decoration: none; transform: translateY(-5px);
    box-shadow: inset 3px 3px 0 rgba(0,0,0,.5), 0 0 0 3px var(--accent), 0 8px 14px rgba(0,0,0,.5);
}
.cat-card-icon { font-size: 2.6rem; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.4)); }
.cat-card-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }

/* ===== İçerik / makale ===== */
.breadcrumb { color: var(--text-dim); font-size: .92rem; margin-bottom: 18px; }
.breadcrumb a { color: var(--gold); }
.page-title { font-family: var(--font-head); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 3px solid var(--line); color: var(--text); }

.page-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.page-list li a {
    display: block; padding: 13px 16px; color: var(--text); font-weight: 600;
    background: var(--slot); border: 3px solid var(--ink);
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.4);
}
.page-list li a:hover { color: var(--accent); text-decoration: none; box-shadow: inset 2px 2px 0 rgba(0,0,0,.4), 0 0 0 2px var(--accent); transform: translateX(3px); }

.empty { color: var(--text-dim); font-style: italic; padding: 16px; background: var(--slot); border: 2px dashed var(--line); }
.search-info { color: var(--text-dim); margin-bottom: 16px; }

.article-body { font-size: 1.05rem; }
.article-body h1, .article-body h2, .article-body h3 { font-family: var(--font-head); margin: 1.4em 0 .5em; color: var(--text); }
.article-body h1 { border-bottom: 3px solid var(--line); padding-bottom: .3em; }
.article-body h2 { color: var(--accent); }
.article-body h3 { color: var(--gold); }
.article-body p { margin: .85em 0; }
.article-body ul, .article-body ol { margin: .85em 0 .85em 1.6em; }
.article-body li { margin: .35em 0; }
.article-body a { color: var(--diamond); text-decoration: underline; }
.article-body img { max-width: 100%; border: 3px solid var(--ink); }
.article-body code {
    background: var(--slot); border: 2px solid var(--ink); padding: 1px 6px;
    font-family: var(--font-pixel); font-size: .72em; color: var(--accent);
}
.article-body pre {
    background: var(--slot); border: 3px solid var(--ink); padding: 14px 16px; overflow-x: auto; margin: 1em 0;
    box-shadow: inset 3px 3px 0 rgba(0,0,0,.5);
}
.article-body pre code { background: none; border: none; padding: 0; color: var(--text); font-size: .85em; }
.article-body blockquote {
    border-left: 6px solid var(--accent); background: var(--slot);
    padding: 12px 18px; margin: 1em 0; color: var(--text-dim);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.1em 0; border: 3px solid var(--ink); }
.article-body th, .article-body td { border: 2px solid var(--ink); padding: 9px 13px; text-align: left; }
.article-body th { font-family: var(--font-head); background: var(--panel-2); color: var(--gold); }
.article-body tr:nth-child(even) td { background: rgba(0,0,0,.18); }
.article-meta {
    margin-top: 28px; padding: 12px 16px; color: var(--text-dim); font-size: .9rem;
    background: var(--slot); border: 2px solid var(--ink); display: inline-block;
}

/* ===== 404 ===== */
.not-found { text-align: center; padding: 50px 0; }
.not-found h1 { font-family: var(--font-pixel); font-size: 3.6rem; color: var(--accent); text-shadow: 4px 4px 0 var(--ink); }
.not-found p { color: var(--text-dim); margin: 22px 0 26px; font-size: 1.05rem; }
.creeper-face {
    width: 110px; height: 110px; margin: 0 auto 10px; background: #6cc24a;
    border: 3px solid var(--ink); image-rendering: pixelated; position: relative;
    box-shadow: inset 0 0 0 3px rgba(0,0,0,.1);
}
.creeper-face::before { content:""; position:absolute; top:26px; left:20px; width:20px; height:20px; background:#0d0d0d; box-shadow: 50px 0 0 #0d0d0d; }
.creeper-face::after { content:""; position:absolute; top:52px; left:44px; width:22px; height:34px; background:#0d0d0d; box-shadow:-16px 12px 0 #0d0d0d, 16px 12px 0 #0d0d0d; }

/* ===== Sayfa aksiyon çubuğu (okuma süresi + paylaşım + yazdır) ===== */
.article-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--line);
}
.article-info { color: var(--text-dim); font-size: .9rem; }
.article-actions { display: flex; gap: 8px; }
.act-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    font-size: 1.05rem; color: var(--text); background: var(--slot); border: 3px solid var(--ink); cursor: pointer;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.4);
}
.act-btn:hover { text-decoration: none; box-shadow: inset 2px 2px 0 rgba(0,0,0,.4), 0 0 0 2px var(--accent); }
.act-btn.copied { color: var(--accent); }

/* ===== Başlık çıpa linki ===== */
.article-body h2, .article-body h3 { position: relative; }
.h-anchor { margin-left: 8px; font-size: .8em; opacity: 0; text-decoration: none; vertical-align: middle; }
.article-body h2:hover .h-anchor, .article-body h3:hover .h-anchor { opacity: .65; }
.h-anchor:hover { opacity: 1 !important; text-decoration: none; }

/* ===== Önceki / Sonraki ===== */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pn-link {
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
    background: var(--slot); border: 3px solid var(--ink); color: var(--text);
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.4);
}
.pn-link:hover { text-decoration: none; box-shadow: inset 2px 2px 0 rgba(0,0,0,.4), 0 0 0 2px var(--accent); }
.pn-next { text-align: right; }
.pn-label { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: .85rem; }
.pn-title { font-weight: 600; }

/* ===== Bakım modu ===== */
.maintenance { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.maintenance-box { max-width: 480px; text-align: center; padding: 40px 32px; }
.maint-pick { font-size: 3.4rem; margin-bottom: 10px; }
.maintenance-box h1 { font-family: var(--font-head); margin-bottom: 14px; color: var(--text); }
.maint-msg { color: var(--text-dim); margin-bottom: 22px; font-size: 1.05rem; }
.maint-admin { margin-top: 20px; font-size: .9rem; }
.maint-admin a { color: var(--text-dim); }

/* ===== Duyuru çubuğu ===== */
.announce-bar {
    display: flex; align-items: center; gap: 12px; justify-content: center;
    padding: 9px 44px 9px 16px; position: relative; text-align: center;
    background: linear-gradient(#fcdb4e, #e6b800); color: #2a2100;
    font-family: var(--font-head); font-weight: 700; border-bottom: 3px solid var(--ink);
}
.announce-close {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.18); border: 2px solid rgba(0,0,0,.3); color: #2a2100;
    width: 26px; height: 26px; cursor: pointer; font-weight: 700; line-height: 1;
}
.announce-close:hover { background: rgba(0,0,0,.3); }

/* ===== Sunucu bilgi kutusu ===== */
.server-box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 26px; padding: 16px 20px;
    background-color: var(--panel); background-image: var(--tex-stone); border: 3px solid var(--ink);
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.1), inset -3px -3px 0 rgba(0,0,0,.4);
}
.server-ip-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.server-ip-label { font-family: var(--font-head); font-weight: 700; color: var(--gold); }
.server-ip {
    font-family: var(--font-pixel); font-size: .85rem; color: var(--accent);
    background: var(--slot); border: 3px solid var(--ink); padding: 8px 14px;
    box-shadow: inset 3px 3px 0 rgba(0,0,0,.5);
}
.copy-ip-btn {
    font-family: var(--font-head); font-weight: 700; color: #11260a;
    background: linear-gradient(#74cf52, #4e9b34); border: 3px solid #102309; padding: 8px 16px; cursor: pointer;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.45), 0 4px 0 var(--accent-dd); transition: transform .04s, filter .1s;
}
.copy-ip-btn:hover { filter: brightness(1.08); }
.copy-ip-btn:active { transform: translateY(4px); box-shadow: inset 2px 2px 0 rgba(255,255,255,.4), 0 0 0 var(--accent-dd); }
.copy-ip-btn.copied { background: linear-gradient(#9aa3ad,#6e7782); }
.server-status { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; }
.status-dot { width: 14px; height: 14px; border: 2px solid var(--ink); flex-shrink: 0; background: #888; }
.status-dot.online { background: #5fce5a; box-shadow: 0 0 10px #5fce5a; }
.status-dot.offline { background: var(--redstone); }
.status-dot.loading { background: var(--gold); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ===== Ana sayfa bölümleri ===== */
.home-section { margin-bottom: 30px; }
.section-title {
    font-family: var(--font-head); color: var(--text); margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 3px solid var(--line);
}
.custom-block {
    background: var(--slot); border: 3px solid var(--ink); padding: 20px 22px;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.4);
}

/* ===== İçindekiler (TOC) ===== */
.toc {
    background: var(--slot); border: 3px solid var(--ink); padding: 14px 18px; margin-bottom: 22px;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,.4); display: inline-block; min-width: 240px; max-width: 100%;
}
.toc-title { font-family: var(--font-head); font-weight: 700; color: var(--gold); display: block; margin-bottom: 8px; }
.toc ul { list-style: none; }
.toc li { margin: 4px 0; }
.toc li.toc-h3 { margin-left: 18px; font-size: .92rem; }
.toc a { color: var(--diamond); }
.toc a:hover { color: var(--accent); }

/* ===== Kod kopyalama butonu ===== */
.article-body pre { position: relative; }
.code-copy {
    position: absolute; top: 6px; right: 6px; background: var(--panel); color: var(--text);
    border: 2px solid var(--ink); padding: 3px 8px; cursor: pointer; font-size: .85rem; opacity: .6;
}
.article-body pre:hover .code-copy { opacity: 1; }

/* ===== Sayfa geri bildirimi ===== */
.page-feedback {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding: 16px 18px;
    background: var(--slot); border: 3px solid var(--ink); box-shadow: inset 2px 2px 0 rgba(0,0,0,.4);
}
.fb-q { font-family: var(--font-head); font-weight: 700; color: var(--text); }
.fb-btn {
    font-family: var(--font-head); font-weight: 700; color: var(--text);
    background: var(--panel); border: 3px solid var(--ink); padding: 7px 14px; cursor: pointer;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.08);
}
.fb-btn:hover { color: var(--accent); box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), 0 0 0 2px var(--accent); }
.page-feedback.done .fb-btn { opacity: .55; cursor: default; pointer-events: none; }
.fb-thanks { font-family: var(--font-head); font-weight: 700; color: var(--accent); }

/* ===== İlgili sayfalar ===== */
.related { margin-top: 26px; padding-top: 18px; border-top: 3px solid var(--line); }
.related-title { font-family: var(--font-head); color: var(--gold); margin-bottom: 12px; }

/* ===== Yukarı çık butonu ===== */
.back-to-top {
    position: fixed; right: 18px; bottom: 24px; z-index: 44; width: 48px; height: 48px;
    font-size: 1.3rem; cursor: pointer; color: #11260a;
    background: linear-gradient(#74cf52, #4e9b34); border: 3px solid #102309;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.45), 0 4px 0 var(--accent-dd), 0 6px 10px rgba(0,0,0,.5);
}
.back-to-top:hover { filter: brightness(1.08); }
.back-to-top:active { transform: translateY(4px); box-shadow: inset 2px 2px 0 rgba(255,255,255,.4), 0 0 0 var(--accent-dd); }

/* ===== Reklam alanları ===== */
.ad-wrap { max-width: 1280px; margin: 18px auto 0; padding: 0 18px; }
.ad-banner {
    background-color: var(--panel-2); background-image: var(--tex-stone);
    border: 3px solid var(--ink); padding: 10px; text-align: center; position: relative;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.08), inset -3px -3px 0 rgba(0,0,0,.4);
}
.ad-label {
    position: absolute; top: 4px; left: 8px; font-family: var(--font-head); font-size: .65rem;
    letter-spacing: 1px; color: var(--text-dim); text-transform: uppercase; opacity: .7;
}
.ad-banner .ad-img { max-width: 100%; height: auto; display: block; margin: 0 auto; image-rendering: auto; }
.ad-banner a { display: inline-block; }
.sidebar-ad { margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--line); }
.sidebar-ad .ad-label { position: static; display: block; margin-bottom: 6px; }
.sidebar-ad .ad-img { max-width: 100%; height: auto; border: 2px solid var(--ink); image-rendering: auto; }
.ad-inner :is(img, iframe) { max-width: 100%; }

/* ===== Footer (her zaman en altta, içerikle arasında stabil boşluk) ===== */
.site-footer {
    flex-shrink: 0; margin-top: 30px;   /* içerik ile footer arasında sabit boşluk */
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 14px 20px; color: var(--text-dim); font-size: .92rem;
    background-color: var(--panel-2); background-image: var(--tex-stone);
    border-top: 4px solid var(--ink);
    box-shadow: 0 -4px 0 rgba(0,0,0,.35);
}
.footer-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-login {
    flex-shrink: 0; display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    letter-spacing: .5px; color: #11260a; text-shadow: 0 1px 0 rgba(255,255,255,.25);
    background: linear-gradient(#74cf52, #4e9b34); border: 3px solid #102309; padding: 8px 18px;
    box-shadow: inset 2px 2px 0 rgba(255,255,255,.45), inset -3px -3px 0 rgba(0,0,0,.3), 0 4px 0 var(--accent-dd);
    transition: transform .04s, box-shadow .04s, filter .1s;
}
.footer-login:hover { text-decoration: none; filter: brightness(1.08); }
.footer-login:active { transform: translateY(4px); box-shadow: inset 2px 2px 0 rgba(255,255,255,.4), inset -3px -3px 0 rgba(0,0,0,.3), 0 0 0 var(--accent-dd); }

/* ===== Responsive ===== */

/* Tablet / küçük masaüstü */
@media (max-width: 1024px) {
    .layout { gap: 16px; }
    .sidebar { width: 230px; }
}

/* Mobil: tek sütun + açılır menü */
@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .search-form { order: 3; max-width: 100%; flex-basis: 100%; margin-left: 0; }
    .topbar-inner { flex-wrap: wrap; gap: 12px; }
    .layout { flex-direction: column; padding: 16px 14px; }
    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; width: 82%; max-width: 320px;
        max-height: none; transform: translateX(-100%); transition: transform .25s; padding-top: 64px;
    }
    .sidebar.open { transform: translateX(0); box-shadow: 6px 0 30px rgba(0,0,0,.7); }
    .content { width: 100%; padding: 22px 18px; }
    .hero { padding: 40px 16px 80px; }
    .ad-wrap { padding: 0 14px; }
}

/* Geniş tabloları küçük ekranda yatay kaydır */
@media (max-width: 760px) {
    .article-body table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* Telefon */
@media (max-width: 560px) {
    body { font-size: 15px; }
    .layout { padding: 14px 10px; }
    .content { padding: 18px 14px; }
    .hero { padding: 30px 12px 66px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-intro { font-size: .92rem; }
    .topbar-inner { padding: 10px 12px; }
    .brand-name { font-size: .78rem; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .cat-card { padding: 20px 10px; }
    .cat-card-icon { font-size: 2.1rem; }
    .article-body { font-size: 1rem; }
    .article-meta { display: block; }
    .site-footer { padding: 9px 12px; gap: 10px; font-size: .82rem; }
    .footer-login { padding: 7px 13px; font-size: .85rem; }
}

/* Çok dar telefon */
@media (max-width: 380px) {
    .cat-grid { grid-template-columns: 1fr; }
    .brand-name { display: none; }
    .prev-next { grid-template-columns: 1fr; }
}

/* ===== Yazdır (print-friendly) ===== */
@media print {
    body { background: #fff !important; color: #000 !important; padding: 0; display: block; }
    .topbar, .sidebar, .site-footer, .announce-bar, .ad-wrap, .sidebar-ad,
    .toc, .page-feedback, .related, .prev-next, .article-bar, .back-to-top,
    .breadcrumb, .menu-toggle { display: none !important; }
    .layout { display: block; padding: 0; max-width: 100%; }
    .content { background: #fff !important; border: none !important; box-shadow: none !important; padding: 0; color: #000; }
    .article-body { color: #000; }
    .article-body a { color: #000; text-decoration: underline; }
    .article-body h1, .article-body h2, .article-body h3 { color: #000; border: none; }
    .article-body pre, .article-body code, .article-body th, .article-body td {
        background: #f4f4f4 !important; color: #000 !important; border-color: #999 !important;
    }
    .code-copy, .h-anchor { display: none !important; }
}
