/*
Theme Name: Tıbbi Wiki
Theme URI: https://example.com/tibbi-wiki
Author: Tıbbi Wiki Tema
Author URI: https://example.com
Description: Doktorlar ve sağlık profesyonelleri için Wikipedia tarzında modern, hızlı ve okunabilir bir tema. Referans sistemi, infobox, içindekiler tablosu, kategori ağacı ve admin panelinden yönetilebilen reklam alanları içerir.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tibbi-wiki
Tags: medical, encyclopedia, wiki, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. CSS DEĞİŞKENLERİ
   ========================================================================== */
:root {
    /* Wikipedia-benzeri taban renkler */
    --wiki-bg: #ffffff;
    --wiki-bg-soft: #f8f9fa;
    --wiki-bg-muted: #eaecf0;
    --wiki-border: #a2a9b1;
    --wiki-border-soft: #c8ccd1;
    --wiki-border-light: #eaecf0;

    --wiki-text: #202122;
    --wiki-text-soft: #54595d;
    --wiki-text-muted: #72777d;

    --wiki-link: #0645ad;
    --wiki-link-hover: #0b62d6;
    --wiki-link-visited: #0b0080;
    --wiki-link-new: #ba0000;
    --wiki-link-external-icon: #54595d;

    /* Tıbbi vurgu — header/aksanlar için kullanıcı paletinden */
    --med-navy: #071a2f;
    --med-blue-deep: #0b2545;
    --med-blue-mid: #1a6fb5;
    --med-blue-bright: #2e8fd4;
    --med-teal: #12b886;
    --med-amber: #f59f00;
    --med-red: #fa5252;

    /* Tipografi */
    --font-serif: 'Linux Libertine', 'Georgia', 'Times', 'Source Serif Pro', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

    /* Boyutlar */
    --content-max: 1140px;
    --gutter: 24px;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
}

/* ==========================================================================
   2. TEMEL RESET VE TİPOGRAFİ
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.9375rem; /* 15px gövde — Wikipedia gibi */
    line-height: 1.65;
    color: var(--wiki-text);
    background: var(--wiki-bg-muted);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--wiki-link);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--wiki-link-hover); text-decoration: underline; }
a:visited { color: var(--wiki-link-visited); }
a.external { color: var(--wiki-link); }
a.external::after {
    content: " ↗";
    font-size: .85em;
    color: var(--wiki-link-external-icon);
    margin-left: 1px;
}
a.broken, a.new { color: var(--wiki-link-new); }

p { margin: 0 0 .9em; }
hr { border: none; border-top: 1px solid var(--wiki-border-light); margin: 1.5em 0; }

/* Wikipedia tarzı serif başlıklar */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: normal;
    color: var(--wiki-text);
    margin: 1.2em 0 .4em;
    line-height: 1.3;
}
h1 { font-size: 1.85rem; border-bottom: 1px solid var(--wiki-border-light); padding-bottom: .25em; margin-top: 0; }
h2 { font-size: 1.5rem;  border-bottom: 1px solid var(--wiki-border-light); padding-bottom: .25em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
h6 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--wiki-text-soft); }

ul, ol { margin: .4em 0 1em; padding-left: 1.6em; }
li { margin-bottom: .25em; }

blockquote {
    margin: 1em 0;
    padding: .75em 1.25em;
    background: var(--wiki-bg-soft);
    border-left: 4px solid var(--med-blue-mid);
    color: var(--wiki-text-soft);
    font-style: italic;
}

code, pre, kbd, samp { font-family: var(--font-mono); font-size: .9em; }
code { background: var(--wiki-bg-soft); padding: 1px 5px; border-radius: 3px; border: 1px solid var(--wiki-border-light); }
pre {
    background: var(--wiki-bg-soft);
    border: 1px solid var(--wiki-border-light);
    border-radius: var(--radius-md);
    padding: 1em;
    overflow-x: auto;
}
pre code { background: none; border: none; padding: 0; }

table {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
    font-size: .9rem;
    background: var(--wiki-bg);
}
table.wikitable { border: 1px solid var(--wiki-border); }
table.wikitable th, table.wikitable td { border: 1px solid var(--wiki-border-soft); padding: .45em .75em; text-align: left; vertical-align: top; }
table.wikitable th { background: var(--wiki-bg-muted); font-weight: 600; }
table.wikitable tr:nth-child(even) td { background: #fafbfc; }

/* ==========================================================================
   3. ANA SAYFA YAPISI
   ========================================================================== */
.site-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    background: var(--wiki-bg);
    border-left: 1px solid var(--wiki-border-soft);
    border-right: 1px solid var(--wiki-border-soft);
    min-height: 100vh;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--med-navy);
    color: #fff;
    padding: 8px 16px;
    z-index: 999;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   4. ÜST BANT (top bar)
   ========================================================================== */
.topbar {
    background: linear-gradient(160deg, var(--med-navy) 0%, var(--med-blue-deep) 50%, var(--med-blue-mid) 100%);
    color: #cbd5e1;
    font-size: .8rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar-links { display: flex; gap: 16px; }
.topbar-user { display: flex; gap: 12px; align-items: center; }
.topbar-user .pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--med-teal);
    box-shadow: 0 0 0 0 rgba(18,184,134,.7);
    animation: pulse-teal 2s infinite;
}
@keyframes pulse-teal {
    0%   { box-shadow: 0 0 0 0 rgba(18,184,134,.6); }
    70%  { box-shadow: 0 0 0 7px rgba(18,184,134,0); }
    100% { box-shadow: 0 0 0 0 rgba(18,184,134,0); }
}

/* ==========================================================================
   5. SİTE BAŞLIĞI VE LOGO
   ========================================================================== */
.site-header {
    background: var(--wiki-bg);
    border-bottom: 1px solid var(--wiki-border-soft);
    padding: 18px 24px 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}
.site-branding { display: flex; align-items: center; gap: 14px; }
.site-logo {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--med-blue-mid), var(--med-teal));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
    box-shadow: 0 2px 8px rgba(11,37,69,.15);
}
.site-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.1;
    margin: 0;
    color: var(--wiki-text);
}
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; color: var(--med-blue-mid); }
.site-tagline {
    font-size: .8rem;
    color: var(--wiki-text-muted);
    font-style: italic;
    margin-top: 2px;
}

/* Arama */
.site-search { width: 100%; max-width: 400px; }
.site-search form { display: flex; gap: 0; }
.site-search input[type="search"] {
    flex: 1;
    border: 1px solid var(--wiki-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 8px 12px;
    font-family: var(--font-sans);
    font-size: .9rem;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.site-search input[type="search"]:focus {
    border-color: var(--med-blue-mid);
    box-shadow: 0 0 0 2px rgba(46,143,212,.15);
}
.site-search button {
    background: var(--wiki-bg-muted);
    border: 1px solid var(--wiki-border);
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .9rem;
    transition: background .15s;
}
.site-search button:hover { background: #d4d8de; }

/* Header sağ — kullanıcı / butonlar */
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn-primary {
    background: linear-gradient(135deg, var(--med-blue-mid), var(--med-blue-bright));
    color: #fff; border: none; padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: .85rem; font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,143,212,.3); color: #fff; text-decoration: none; }

/* ==========================================================================
   6. NAVİGASYON SEKMELERİ (Wiki tabs)
   ========================================================================== */
.wiki-tabs {
    background: var(--wiki-bg-soft);
    border-bottom: 1px solid var(--wiki-border-soft);
    padding: 0 24px;
    display: flex;
    gap: 0;
    overflow-x: auto;
}
.wiki-tabs a {
    padding: 10px 16px;
    color: var(--wiki-link);
    font-size: .85rem;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.wiki-tabs a:hover {
    background: var(--wiki-bg);
    text-decoration: none;
    border-bottom-color: var(--wiki-border-light);
}
.wiki-tabs a.active {
    background: var(--wiki-bg);
    color: var(--wiki-text);
    border-bottom-color: var(--med-blue-mid);
    font-weight: 600;
}

/* ==========================================================================
   7. ANA İÇERİK ALANI (iki kolon)
   ========================================================================== */
.content-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
}
.left-sidebar {
    background: var(--wiki-bg-soft);
    border-right: 1px solid var(--wiki-border-soft);
    padding: 20px 16px;
    font-size: .85rem;
}
.left-sidebar h3 {
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--wiki-text-soft);
    border-bottom: 1px solid var(--wiki-border-light);
    padding-bottom: 4px;
    margin: 16px 0 6px;
}
.left-sidebar ul { list-style: none; padding: 0; margin: 0 0 12px; }
.left-sidebar li { margin: 0; padding: 2px 0; }
.left-sidebar li a { display: block; padding: 3px 0; }

.main-content {
    padding: 24px 32px 60px;
    min-width: 0; /* prevents grid overflow */
}

/* Sayfa başlığı bloğu (Wikipedia "From the encyclopedia" tarzı) */
.page-title-block {
    border-bottom: 1px solid var(--wiki-border-light);
    margin-bottom: 16px;
    padding-bottom: 6px;
}
.page-title-block h1 {
    border: none;
    padding: 0;
    margin: 0 0 4px;
}
.page-title-meta {
    font-size: .85rem;
    color: var(--wiki-text-muted);
    font-style: italic;
}

/* Makale meta satırı */
.article-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    font-size: .8rem;
    color: var(--wiki-text-muted);
    padding: 8px 12px;
    background: var(--wiki-bg-soft);
    border: 1px solid var(--wiki-border-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.article-meta .meta-item { display: flex; align-items: center; gap: 6px; }
.article-meta .meta-icon { color: var(--med-blue-mid); }

/* ==========================================================================
   8. İNFOBOX (Wikipedia sağ kutu)
   ========================================================================== */
.infobox {
    float: right;
    width: 300px;
    margin: 0 0 16px 24px;
    background: var(--wiki-bg-soft);
    border: 1px solid var(--wiki-border);
    border-radius: var(--radius-md);
    font-size: .85rem;
    overflow: hidden;
    clear: right;
}
.infobox-header {
    background: linear-gradient(160deg, var(--med-navy), var(--med-blue-deep), var(--med-blue-mid));
    color: #fff;
    padding: 12px 14px;
    text-align: center;
}
.infobox-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
.infobox-subtitle {
    font-size: .75rem;
    color: rgba(255,255,255,.75);
    font-style: italic;
    margin-top: 2px;
}
.infobox-image {
    padding: 10px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid var(--wiki-border-light);
}
.infobox-image img { display: inline-block; max-width: 100%; border-radius: var(--radius-sm); }
.infobox-image-caption { font-size: .75rem; color: var(--wiki-text-muted); margin-top: 6px; font-style: italic; }
.infobox table { width: 100%; margin: 0; }
.infobox th, .infobox td {
    padding: 6px 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--wiki-border-light);
}
.infobox th {
    background: var(--wiki-bg-muted);
    font-weight: 600;
    width: 40%;
    font-size: .8rem;
    color: var(--wiki-text-soft);
}
.infobox-section-header {
    background: var(--wiki-bg-muted) !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: var(--med-blue-deep) !important;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: .75rem !important;
}

/* ==========================================================================
   9. İÇİNDEKİLER (Table of Contents)
   ========================================================================== */
.toc {
    display: inline-block;
    background: var(--wiki-bg-soft);
    border: 1px solid var(--wiki-border-soft);
    border-radius: var(--radius-md);
    padding: 12px 18px 12px 14px;
    margin: 16px 0;
    font-size: .9rem;
    min-width: 280px;
}
.toc-title {
    font-family: var(--font-sans);
    font-size: .85rem;
    font-weight: 700;
    color: var(--wiki-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-toggle {
    background: none;
    border: none;
    color: var(--wiki-link);
    font-size: .75rem;
    cursor: pointer;
    margin-left: auto;
}
.toc ol, .toc ul { list-style: none; padding-left: 18px; margin: 0; counter-reset: toc-item; }
.toc > ol, .toc > ul { padding-left: 0; }
.toc li {
    position: relative;
    padding: 2px 0;
    counter-increment: toc-item;
}
.toc > ol > li::before, .toc > ul > li::before {
    content: counters(toc-item, ".") " ";
    color: var(--wiki-text-muted);
    font-family: var(--font-mono);
    font-size: .8rem;
    margin-right: 4px;
}
.toc.collapsed ol, .toc.collapsed ul { display: none; }

/* ==========================================================================
   10. UYARI / NOTLAR / DİKKAT KUTULARI
   ========================================================================== */
.notice-box {
    border-left: 4px solid;
    background: var(--wiki-bg-soft);
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    gap: 12px;
}
.notice-box .notice-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.notice-box .notice-content { flex: 1; }
.notice-box .notice-title { font-weight: 700; margin-bottom: 4px; }
.notice-info    { border-color: var(--med-blue-mid); }
.notice-info    .notice-icon { color: var(--med-blue-mid); }
.notice-warning { border-color: var(--med-amber); background: #fff8e6; }
.notice-warning .notice-icon { color: var(--med-amber); }
.notice-danger  { border-color: var(--med-red); background: #fff0f0; }
.notice-danger  .notice-icon { color: var(--med-red); }
.notice-success { border-color: var(--med-teal); background: #effaf5; }
.notice-success .notice-icon { color: var(--med-teal); }

/* Tıbbi disclaimer kutusu */
.medical-disclaimer {
    border: 1px solid var(--med-amber);
    background: #fff8e6;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-size: .85rem;
}
.medical-disclaimer strong { color: #a06600; }

/* ==========================================================================
   11. RESİMLER VE ŞEKİLLER (figure)
   ========================================================================== */
.wp-block-image, figure {
    margin: 1em 0;
}
.wp-block-image figcaption, figure figcaption {
    font-size: .82rem;
    color: var(--wiki-text-muted);
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--wiki-border-light);
    background: var(--wiki-bg-soft);
}
.alignright {
    float: right;
    margin: 0 0 12px 18px;
    max-width: 320px;
    border: 1px solid var(--wiki-border-soft);
    background: var(--wiki-bg-soft);
    padding: 4px;
    border-radius: var(--radius-sm);
}
.alignleft {
    float: left;
    margin: 0 18px 12px 0;
    max-width: 320px;
    border: 1px solid var(--wiki-border-soft);
    background: var(--wiki-bg-soft);
    padding: 4px;
    border-radius: var(--radius-sm);
}
.aligncenter { margin: 1em auto; text-align: center; }

/* ==========================================================================
   12. REFERANSLAR
   ========================================================================== */
.references {
    font-size: .85rem;
    color: var(--wiki-text-soft);
}
.references ol { padding-left: 24px; }
.references li { margin-bottom: 6px; line-height: 1.5; }
.references li::marker { color: var(--med-blue-mid); }
.references cite, .references em { font-style: italic; color: var(--wiki-text); }
.references a { word-break: break-word; }

sup.reference {
    font-size: .75em;
    vertical-align: super;
    line-height: 0;
}
sup.reference a {
    background: var(--wiki-bg-soft);
    border: 1px solid var(--wiki-border-light);
    padding: 0 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
}
sup.reference a:hover { background: var(--med-blue-mid); color: #fff; text-decoration: none; }

/* ==========================================================================
   13. KATEGORİ KUTUSU (alt)
   ========================================================================== */
.category-box {
    margin-top: 32px;
    padding: 10px 14px;
    background: var(--wiki-bg-soft);
    border: 1px solid var(--wiki-border-soft);
    border-radius: var(--radius-md);
    font-size: .85rem;
}
.category-box-label {
    display: inline-block;
    font-weight: 700;
    color: var(--wiki-text-soft);
    margin-right: 8px;
}
.category-box a {
    display: inline-block;
    margin: 0 6px 4px 0;
    padding: 2px 10px;
    background: var(--wiki-bg);
    border: 1px solid var(--wiki-border-soft);
    border-radius: 12px;
    font-size: .8rem;
}
.category-box a:hover { background: var(--med-blue-mid); color: #fff; border-color: var(--med-blue-mid); text-decoration: none; }

/* ==========================================================================
   14. REKLAM ALANLARI
   ========================================================================== */
.ad-zone {
    margin: 18px 0;
    text-align: center;
    position: relative;
}
.ad-zone-label {
    display: block;
    font-size: .65rem;
    color: var(--wiki-text-muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}
.ad-zone-inner {
    display: inline-block;
    max-width: 100%;
    padding: 0;
    background: transparent;
}
.ad-zone-placeholder {
    border: 1px dashed var(--wiki-border-soft);
    background: var(--wiki-bg-soft);
    color: var(--wiki-text-muted);
    padding: 20px;
    font-size: .85rem;
    border-radius: var(--radius-md);
}
.ad-zone img { display: inline-block; }

/* ==========================================================================
   15. PAGİNATİON
   ========================================================================== */
.pagination {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 32px 0;
    font-size: .9rem;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid var(--wiki-border-soft);
    border-radius: var(--radius-sm);
    background: var(--wiki-bg);
    color: var(--wiki-link);
}
.pagination .current {
    background: var(--med-blue-mid);
    color: #fff;
    border-color: var(--med-blue-mid);
    font-weight: 600;
}
.pagination a:hover { background: var(--wiki-bg-soft); text-decoration: none; }

/* ==========================================================================
   16. ARŞİV / LİSTE GÖRÜNÜMÜ
   ========================================================================== */
.archive-list { list-style: none; padding: 0; }
.archive-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--wiki-border-light);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
}
.archive-item-thumb { background: var(--wiki-bg-muted); border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; }
.archive-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-item-title { font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 6px; }
.archive-item-title a { color: var(--wiki-link); }
.archive-item-meta { font-size: .8rem; color: var(--wiki-text-muted); margin-bottom: 8px; }
.archive-item-excerpt { font-size: .9rem; color: var(--wiki-text-soft); }

/* ==========================================================================
   17. YORUMLAR
   ========================================================================== */
.comments-area {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--wiki-border-light);
}
.comments-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.comment-list { list-style: none; padding: 0; }
.comment-list li { margin-bottom: 16px; }
.comment-body {
    padding: 14px 18px;
    background: var(--wiki-bg-soft);
    border: 1px solid var(--wiki-border-light);
    border-radius: var(--radius-md);
}
.comment-author { font-weight: 600; color: var(--wiki-text); }
.comment-meta { font-size: .8rem; color: var(--wiki-text-muted); margin-bottom: 8px; }
.comment-content { font-size: .9rem; }
.comment-respond input, .comment-respond textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--wiki-border-soft);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    margin-bottom: 10px;
}
.comment-respond input[type="submit"] {
    width: auto;
    background: var(--med-blue-mid);
    color: #fff;
    border: none;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: var(--radius-md);
    font-weight: 600;
}
.comment-respond input[type="submit"]:hover { background: var(--med-blue-deep); }

/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--wiki-bg-soft);
    border-top: 1px solid var(--wiki-border-soft);
    padding: 32px 24px 16px;
    color: var(--wiki-text-soft);
    font-size: .85rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 24px;
}
.footer-col h4 {
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--wiki-text);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--wiki-border-light);
    padding-bottom: 4px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 3px 0; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--wiki-border-light);
    padding-top: 16px;
    font-size: .8rem;
    color: var(--wiki-text-muted);
}

/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .content-wrap { grid-template-columns: 1fr; }
    .left-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--wiki-border-soft);
    }
    .infobox {
        float: none;
        width: 100%;
        margin: 0 0 16px;
    }
    .site-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .site-search { max-width: 100%; }
    .header-actions { justify-content: flex-end; }
    .alignright, .alignleft { float: none; max-width: 100%; margin: 1em 0; }
}

@media (max-width: 600px) {
    .main-content { padding: 16px 16px 40px; }
    .topbar-inner { padding: 6px 16px; }
    .site-header { padding: 14px 16px 10px; }
    .site-title { font-size: 1.4rem; }
    .wiki-tabs { padding: 0 16px; font-size: .8rem; }
    .archive-item { grid-template-columns: 70px 1fr; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
}

/* ==========================================================================
   20. UTILITY VE WORDPRESS GEREKLİ SINIFLAR
   ========================================================================== */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.sticky { position: relative; }
.bypostauthor { }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.gallery-item img { border: 1px solid var(--wiki-border-soft); padding: 4px; background: var(--wiki-bg-soft); border-radius: var(--radius-sm); }
.gallery-caption { font-size: .8rem; color: var(--wiki-text-muted); padding: 4px 6px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--wiki-text-muted); padding: 4px 8px; }

/* ==========================================================================
   21. DÜZENLE BUTONU (her başlığın sağına)
   ========================================================================== */
.section-edit-link {
    font-size: .75rem;
    color: var(--wiki-text-muted);
    margin-left: 12px;
    font-family: var(--font-sans);
    font-weight: normal;
    vertical-align: middle;
}
.section-edit-link::before { content: "[ "; }
.section-edit-link::after { content: " ]"; }
