/* GENEL AYARLAR VE KUTU MODELİ */
* {
    box-sizing: border-box;
}
body {
    background-color: #f6f6f6; /* Arkada Wikipedia'nın o hafif grisi */
    margin: 0;
    font-family: sans-serif, Arial, Helvetica;
    color: #202122;
}
a {
    color: #0645ad;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}


/* Logo Tasarımı ve Boyutlandırması */
.site-title img.custom-logo {
    max-height: 60px; /* Header'a tam oturması için ideal boyut */
    width: auto;
    display: block;
}

/* 1. TAVAN (HEADER) VE ARAMA ÇUBUĞU */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #a2a9b1;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}
.site-title h1 {
    margin: 0;
    font-family: 'Linux Libertine', Georgia, serif; /* Klasik ansiklopedi fontu */
    font-size: 1.8em;
}
.site-title a {
    color: #000;
}
.site-description {
    font-size: 0.85em;
    color: #54595d;
}
.header-search form {
    display: flex;
}
.header-search input {
    padding: 8px 12px;
    border: 1px solid #a2a9b1;
    border-radius: 2px 0 0 2px;
    outline: none;
    width: 250px;
}
.header-search button {
    padding: 8px 15px;
    background-color: #3366cc;
    color: #ffffff;
    border: 1px solid #3366cc;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    font-weight: bold;
}
.header-search button:hover {
    background-color: #2a4b8d;
}

/* 2. ANA GÖVDE (YAN YANA YERLEŞİM) */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 30px; /* Menü ile içerik arasındaki boşluk */
}

/* 3. SOL NAVİGASYON (SİDEBAR) */
.site-sidebar {
    flex: 0 0 180px; /* Menüyü sola sabitle, genişliği 180px olsun */
}
.wiki-widget {
    margin-bottom: 25px;
}
.widget-title {
    font-size: 0.85em;
    color: #54595d;
    border-bottom: 1px solid #c8ccd1;
    padding-bottom: 5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.wiki-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}
.wiki-widget li {
    margin-bottom: 6px;
}

/* 4. ANA İÇERİK KUTUSU (BEYAZ SAYFA) */
.site-main {
    flex: 1; /* Kalan tüm sağ boşluğu doldur */
    background-color: #ffffff;
    border: 1px solid #a2a9b1;
    padding: 30px 40px;
    min-height: 500px; /* Sayfa boşken bile beyaz alan büyük görünsün */
}
.entry-header h1, .entry-header h2 {
    font-family: 'Linux Libertine', Georgia, serif;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 8px;
    margin-top: 0;
}
.entry-content {
    font-size: 1.05em;
    line-height: 1.7;
}

/* 5. ALT BİLGİ (FOOTER) */
.site-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.85em;
    color: #54595d;
    margin-top: 40px;
}
.site-footer p {
    margin: 5px 0;
}

/* MOBİL DÜZENLEME - 900px altındaki ekranlar için */
@media screen and (max-width: 900px) {
    #mobile-menu-toggle { display: block !important; margin: 10px auto; }
    
    .site-sidebar {
        display: none; /* Mobilde menüyü gizle */
        background: #fff;
        padding: 20px;
        border: 1px solid #a2a9b1;
        margin-top: 10px;
    }
    
    .site-sidebar.active {
        display: block; /* Menüye tıklandığında göster */
    }
}
@media screen and (max-width: 900px) {
    
    /* 1. Ana konteyneri dikey yap */
    .main-container {
        flex-direction: column;
        padding: 0 10px;
    }

    /* 2. Sol menüyü (sidebar) içeriğin ÜSTÜNE al */
    .site-sidebar {
        flex: 1;
        position: relative; /* Sticky özelliğini mobilde iptal ediyoruz */
        top: 0;
        margin-bottom: 20px;
        width: 100%;
        max-height: none;
    }

    /* 3. Arama kutusunu mobilde tam genişlik yap */
    .header-container {
        flex-direction: column;
    }
    .header-search input {
        width: 100%;
        margin-top: 10px;
    }

    /* 4. İçerik alanını ferahlat */
    .site-main {
        padding: 15px;
    }

    /* 5. Mobilde içindekiler tablosunu daha kompakt yap */
    .wiki-sidebar-toc-container {
        width: 100% !important;
    }
}


/* Gelişmiş Yapışkan Yan Menü Sistemi */
.site-sidebar {
    flex: 0 0 220px; /* Genişliği biraz artırdık rahat okunsun diye */
    position: sticky;
    top: 90px; /* Header'ın altında sabit kalma mesafesi */
    align-self: flex-start;
    max-height: calc(100vh - 120px); /* Ekrandan taşarsa kendi içinde kayar */
    overflow-y: auto;
    padding-right: 5px;
}

/* Sidebar içindeki scrollbarı şıklaştırıp gizleyelim */
.site-sidebar::-webkit-scrollbar {
    width: 4px;
}
.site-sidebar::-webkit-scrollbar-thumb {
    background: #c8ccd1;
    border-radius: 2px;
}

/* istenen sayfalar */
/* Eksik Maddeler Listesi - Sütun Sistemi */
.eksik-maddeler-grid {
    display: grid !important;
    /* Masaüstünde 3 sütun */
    grid-template-columns: repeat(3, 1fr);
}

/* Tabletlerde 2 sütun */
@media screen and (max-width: 1024px) {
    .eksik-maddeler-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobilde tek sütun */
@media screen and (max-width: 600px) {
    .eksik-maddeler-grid {
        grid-template-columns: 1fr;
    }
}

/* Şablon (Navbox) Tasarımı */
.wiki-navbox {
    border: 1px solid #a2a9b1;
    background-color: #f8f9fa;
    padding: 15px;
    margin: 25px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Şablon içindeki başlığı vurgula */
.wiki-navbox h3 {
    margin-top: 0;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    font-size: 1.2em;
    color: #333;
}
.wiki-navbox { border: 1px solid #a2a9b1; margin: 20px 0; background: #f8f9fa; border-radius: 4px; }
.navbox-header { background: #e9e9e9; padding: 8px; cursor: pointer; display: flex; justify-content: space-between; }
.navbox-content { padding: 15px; display: none; border-top: 1px solid #a2a9b1; }
.toggle-icon { font-size: 0.8em; color: #555; }

/* Dinamik Menü Tasarımı */
.wiki-dinamik-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wiki-dinamik-menu li {
    margin-bottom: 8px;
}
.wiki-dinamik-menu li a {
    text-decoration: none;
    color: #0645ad; /* Klasik Wiki Mavi Link Rengi */
    font-weight: bold;
}
.wiki-dinamik-menu li a:hover {
    text-decoration: underline;
}
/* Alt Menü Tasarımı ve Madde İşaretlerini Kaldırma */
/* --- ALT MENÜ KESİN ÇÖZÜM --- */
.site-footer ul,
.site-footer .footer-links,
.footer-nav ul,
.footer-nav div > ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.site-footer li,
.site-footer ul li,
.footer-nav li {
    list-style: none !important;
    list-style-type: none !important;
    background-image: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer li::before,
.site-footer li::after,
.footer-nav li::before,
.footer-nav li::after {
    display: none !important;
    content: none !important;
}

.site-footer li a,
.footer-nav li a {
    color: #555 !important;
    font-size: 0.9em !important;
    text-decoration: none !important;
    display: block !important;
}

.site-footer li a:hover,
.footer-nav li a:hover {
    text-decoration: underline !important;
}
/* En Maddeler Sayfası Tasarımı */
.wiki-rapor-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.wiki-rapor-box {
    flex: 1;
    min-width: 300px;
    background: #fff;
    border: 1px solid #a2a9b1;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wiki-rapor-box h3 {
    border-bottom: 2px solid #eaecf0;
    padding-bottom: 10px;
    margin-top: 0;
    color: #000;
}

.wiki-rapor-box ul {
    list-style: none;
    padding: 0;
}

.wiki-rapor-box li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.wiki-rapor-box li a {
    display: block;
}

