/*
Theme Name: Ders Cevapları Tema
Theme URI: https://cevaprehberi.com
Author: Sizin Adınız
Description: Ders kitabı cevapları ve eğitim içerikleri için optimize edilmiş, hızlı ve SEO uyumlu modern WordPress teması.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: derscevaplari
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Reset & Base
# Typography
# Layout & Container
# Header
# Main Navigation
# Buttons & Links
# Cards & Grid (Anasayfa & Kategori)
# Single Post
# Sidebar & Widgets
# Footer
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Reset & Base
--------------------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f7f6;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

img {
    height: auto;
    max-width: 100%;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    color: #222;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 20px;
}

h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
    margin-bottom: 1.5em;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005177;
}

ul, ol {
    margin: 0 0 1.5em 1.5em;
    padding: 0;
}

/*--------------------------------------------------------------
# Layout & Container
--------------------------------------------------------------*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    padding: 30px 0;
}

/* Flex Yapısı */
body.single-post .site-content .container,
body.category .site-content .container { 
    display: flex;
    justify-content: center;
    gap: 30px;
}

.content-area {
    width: 100%;
}

/* Yazı ve Kategori sayfalarında içerik genişliği */
body.single-post .content-area,
body.category .content-area {
    width: calc(100% - 350px);
    max-width: 900px;
}

/*--------------------------------------------------------------
# Sidebar & Widgets
--------------------------------------------------------------*/
.widget-area {
    width: 320px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #eee;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    margin-bottom: 30px;
}
.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #222;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}
.widget ul li a {
    color: #555;
    text-decoration: none;
}
.widget ul li a:hover {
    color: #0073aa;
}

/*--------------------------------------------------------------
# Anasayfa Fix
--------------------------------------------------------------*/
/* Anasayfada Sidebar Var, İçerik Daralsın */
body.home .site-content .container {
    display: flex;
    gap: 30px;
}

body.home .content-area {
    width: calc(100% - 350px); /* Sidebar yer açtık */
}

body.home .widget-area {
    display: block; /* Sidebarı görünür yaptık */
}

/*--------------------------------------------------------------
# Mobil Düzen
--------------------------------------------------------------*/
@media (max-width: 992px) {
    body.single-post .site-content .container,
    body.category .site-content .container {
        flex-direction: column;
    }

    .content-area {
        width: 100% !important;
        max-width: 100% !important;
    }

    .widget-area {
        width: 100%;
        position: static;
        margin-top: 30px;
    }
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative; /* Sticky yerine relative yaptık, tıklamayı engellemez */
    z-index: 10; /* Değeri düşürdük */
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    position: relative; /* Buraya eklendi */
    z-index: 11; /* Buraya eklendi */
}

.site-branding {
    display: flex;
    align-items: center;
    position: relative; /* Tıklamayı açmak için */
    z-index: 12;
}

.site-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.site-title a {
    color: #222;
    text-decoration: none;
}

.site-title a:hover {
    color: #0073aa;
}

.site-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/*--------------------------------------------------------------
# Main Navigation
--------------------------------------------------------------*/
.main-navigation {
    position: relative; /* Tıklamayı garanti altına alır */
    z-index: 13;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.main-navigation li {
    position: relative;
}

.main-navigation li a {
    font-weight: 500;
    padding: 10px 15px;
    color: #444;
    border-radius: 5px;
    transition: all 0.3s;
    display: block; /* Tıklanabilir alanı artırır */
    text-decoration: none;
}

.main-navigation li a:hover {
    background: #f0f0f0;
    color: #0073aa;
}

/* Mobil Menü Butonu */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    width: 25px;
    height: 3px;
    background: #333;
    position: absolute;
    left: 0;
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

/*--------------------------------------------------------------
# Buttons & Links
--------------------------------------------------------------*/
.read-more-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #0073aa;
}

.read-more-btn:hover {
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Cards & Grid (Anasayfa & Kategori)
--------------------------------------------------------------*/

/* Anasayfa İçerik Wrapper */
.home-content-wrapper {
    max-width: 900px; /* Yazı sayfasıyla aynı genişlik */
    margin: 0 auto 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Sınıf Listesi Bölümü */
.class-list-section {
    max-width: 900px; /* Yazı sayfasıyla aynı genişlik */
    margin: 0 auto; /* Ortala */
}

.class-list-container {
    /* Container sınıfı zaten padding veriyor, buraya ekstra gerek yok */
}

.section-header {
    margin-bottom: 20px;
    text-align: center;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.class-grid {
    display: grid;
    /* Mobilde 2 sütun, geniş ekranda 3 sütun olsun */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    margin-top: 30px;
}

.class-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.class-card:hover {
    transform: translateY(-5px);
    border-color: #0073aa;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.class-card a {
    text-decoration: none;
    color: #333;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.class-card h3 {
    margin: 0;
    font-size: 18px;
}

/*--------------------------------------------------------------
# Yazı Listesi Grid (Category Page)
--------------------------------------------------------------*/

/* Kategori Sayfası Başlığı ve Genel Alan */
.page-header {
    max-width: 900px; /* Yazı sayfasıyla aynı genişlik */
    margin: 0 auto 20px auto;
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.page-title {
    font-size: 28px;
    color: #222;
    margin-bottom: 10px;
}

.taxonomy-description { color: #555; font-size: 16px; margin-top: 10px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Kart minimum genişliği */
    gap: 25px;
    margin-top: 30px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden; /* İçerik taşmasını önler */
    
    /* Kart içindeki öğeleri dikeyde hizalamak için */
    display: flex; 
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.card-inner {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Kartın alanı doldurmasını sağlar */
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap; /* Mobilde alta geçebilir */
}

.cat-name {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: capitalize;
}

.post-date {
    color: #aaa;
}

.card-title {
    font-size: 18px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.card-title a {
    color: #333;
    text-decoration: none;
}

.card-title a:hover {
    color: #0073aa;
}

.card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Özet uzarsa butonu aşağı iter */
}

.card-footer {
    margin-top: auto; /* Butonu her zaman en alta sabitler */
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.read-more-btn .dashicons {
    margin-left: 5px;
    font-size: 16px;
}


/*--------------------------------------------------------------
# Single Post
--------------------------------------------------------------*/
.single-post-page {
    background: #f4f7f6;
}

.entry-header {
    background: #fff;
    padding: 30px 0; /* 30px YAPILDI - Diğerleriyle aynı oldu */
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.entry-title {
    font-size: 34px;
    margin: 15px 0 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb-nav {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.breadcrumb-nav a { color: #0073aa; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav .sep { margin: 0 8px; color: #ccc; }

.entry-meta {
    font-size: 14px;
    color: #777;
}

.content-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.entry-content h2 {
    font-size: 26px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 40px;
}

.entry-content h3 {
    font-size: 22px;
    margin-top: 30px;
}

.entry-content p {
    margin-bottom: 25px;
}

/* Sosyal Paylaşım */
.social-share-buttons {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.share-btn {
    padding: 8px 20px;
    border-radius: 5px;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.3s;
}

.share-btn:hover { opacity: 0.8; color: #fff; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #4267B2; }
.share-btn.twitter { background: #1DA1F2; }

/* Yazar Kutusu */
.author-box {
    display: flex;
    gap: 25px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    border: 1px solid #eee;
    align-items: center;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info h4 {
    margin: 0 0 5px;
    font-size: 18px;
}

.author-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* İlgili Yazılar */
.related-posts-section {
    margin-top: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.related-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.related-card h4 {
    font-size: 15px;
    margin: 0 0 5px;
}

.related-card a { color: #333; }
.related-card a:hover { color: #0073aa; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background: #222;
    color: #ccc;
    font-size: 15px;
    margin-top: 50px;
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid #333;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo .site-title-footer {
    font-size: 24px;
    color: #fff;
    margin: 0 0 15px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #999;
}

.footer-menu-section h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    padding: 20px 0;
    font-size: 13px;
    color: #777;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright a { color: #ccc; }

/* Scroll Top Button */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 50%; /* Yuvarlak yapıyoruz */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 0.8;
}

#scrollTopBtn:hover {
    background-color: #005177;
    opacity: 1;
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-branding {
        grid-column: span 2;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Header Mobil */
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    /* İçerikler */
    .content-wrapper {
        padding: 25px;
    }
    .entry-title { font-size: 24px; }
    .entry-header { padding: 30px 0; }

    /* Gridler */
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }

    /* Footer Mobil */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-branding {
        grid-column: span 1;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
    }

    /* Yazar Kutusu */
    .author-box {
        flex-direction: column;
        text-align: center;
    }

    /* Anasayfa Mobil Ayarı */
    .home-content-wrapper {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .class-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet ve mobilde 2 sütun */
        gap: 15px;
    }

    .class-list-section {
        padding: 0 10px; /* Kenarlardan biraz boşluk */
    }
}

@media (max-width: 480px) {
    .class-grid {
        grid-template-columns: 1fr; /* Çok küçük ekranda tek sütun */
    }
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/
.comments-area {
    margin-top: 40px;
}

.comments-title {
    font-size: 22px;
    margin-bottom: 30px;
    color: #222;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.comment-body:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #f0f0f0;
}

.comment-author-info .fn {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    display: block;
}

.comment-date {
    font-size: 12px;
    color: #999;
}

.comment-content {
    margin-bottom: 15px;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

.comment-awaiting-moderation {
    font-size: 13px;
    color: #ff9800;
    margin-bottom: 10px;
    font-style: italic;
}

.reply {
    text-align: right;
}

.reply a {
    font-size: 13px;
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
}

.reply a:hover {
    text-decoration: underline;
}

/* Yorum Formu */
.comment-respond {
    margin-top: 40px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 15px;
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #005177;
}

/* Alt Yorumlar (İç İçe) */
.children {
    margin-left: 30px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .children {
        margin-left: 15px;
    }
}

/*--------------------------------------------------------------
# Eksik Stiller ve Düzeltmeler
--------------------------------------------------------------*/

/* Sayfalama (Pagination) */
.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.nav-links .page-numbers {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* İlgili Yazılar Grid (Single Page) */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.related-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: 0.3s;
}
.related-card:hover {
    border-color: #0073aa;
    background: #fff;
}
.related-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}
.related-card span {
    font-size: 13px;
    color: #888;
}

/*Responsive Düzeltmeler */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
}


/*--------------------------------------------------------------
# S.S.S (SIKÇA SORULAN SORULAR) STİLLERİ
--------------------------------------------------------------*/

.sss-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.sss-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #222;
}

/* Tekil Soru Kutusu */
.sss-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.sss-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Soru Başlığı (Buton Gibi) */
.sss-question {
    padding: 20px;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    user-select: none; /* Metin seçilmesini engeller */
}

.sss-question:hover {
    background: #f0f0f0;
}

/* Artı/Eksi İkonu */
.sss-icon {
    font-size: 24px;
    color: #0073aa;
    font-weight: bold;
    transition: transform 0.3s;
}

/* Cevap İçeriği (Gizli) */
.sss-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s;
    background: #fff;
    color: #555;
    line-height: 1.7;
}

.sss-answer-inner {
    padding: 0 20px; /* İç boşluk */
}

/* Aktif Durum (Tıklanınca) */
.sss-item.active .sss-answer {
    max-height: 500px; /* İçerik uzunluğuna göre ayarlanır */
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.sss-item.active .sss-icon {
    transform: rotate(45deg); /* Artıyı çarpı yapar */
}

/* Responsive */
@media (max-width: 768px) {
    .sss-question {
        font-size: 15px;
        padding: 15px;
    }
}

/*--------------------------------------------------------------
# PAGE.PHP ANA DÜZENLEME (Sidebar ve Header)
--------------------------------------------------------------*/

/* 1. HEADER YÜKSEKLİĞİ AYARI */
/* Single, Category ve Page hepsi için AYNI yükseklik (30px) */
.entry-header,
.archive-header,
.page-header-area {
    background: #fff;
    padding: 30px 0 !important; /* Önemli: Yüksekliği burası belirler */
    border-bottom: 1px solid #eee;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 0;
}

/* 2. SIDEBAR VE İÇERİK YERLEŞİMİ */
/* Page sayfalarında Flex yapısını zorla */
body.page .site-content .container {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

/* İçerik Alanı */
body.page .content-area {
    width: calc(100% - 350px) !important;
    max-width: 900px !important;
    order: 1;
}

/* Sidebar Alanı */
body.page .widget-area {
    order: 2;
    width: 320px !important;
    position: sticky !important;
    top: 100px !important;
    height: fit-content !important;
    margin-top: 0 !important;
    display: block !important;
}

/* 3. MOBİL UYUMLULUK */
@media (max-width: 992px) {
    body.page .site-content .container {
        flex-direction: column !important;
    }
    body.page .content-area {
        width: 100% !important;
        max-width: 100% !important;
    }
    body.page .widget-area {
        width: 100% !important;
        position: static !important;
    }
    
    /* Mobilde header padding */
    .entry-header,
    .archive-header,
    .page-header-area {
        padding: 30px 0 !important;
    }
}

/*--------------------------------------------------------------
# ANASAYFA MOBİL DÜZENLEMESİ (Sidebar ve Başlık)
--------------------------------------------------------------*/

/* 1. ANASAYFA H1 BAŞLIK STİLİ (Sayfa başlığı gibi görünmesi için) */
body.home .page-title {
    font-size: 32px;
    margin-bottom: 10px;
    color: #222;
}

/* 2. MOBİLDE SIDEBAR DÜZENİ */
@media (max-width: 992px) {
    /* Flex yapısını dikey yapıya zorla */
    body.home .site-content .container {
        flex-direction: column !important;
    }

    /* İçerik alanını tam genişlik yap */
    body.home .content-area {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Sidebar'ı içerik alanının altına al */
    body.home .widget-area {
        width: 100% !important;
        position: static !important; /* Sabit konumu kaldır */
        margin-top: 30px; /* Üstten boşluk ver */
    }
}

/*--------------------------------------------------------------
# ÖZEL MOBİL MENÜ (LACİVERT TEMA)
--------------------------------------------------------------*/

/* --- MOBİL MENÜ BUTONU (Hamburger) --- */
.mobile-menu-btn {
    display: none; /* Masaüstünde gizli */
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    background: #005580; /* Lacivert */
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: #004060; /* Hoverda biraz daha koyu */
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- MOBİL AÇILIR PENCERE --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* Her şeyin üstünde */
    display: none;
    overflow-y: auto;
}

.mobile-menu-content {
    background: #fff;
    width: 85%;
    max-width: 350px;
    height: 100%;
    padding: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    position: relative;
    animation: slideInFromLeft 0.3s ease-out;
}

/* Animasyon */
@keyframes slideInFromLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Menü Başlığı (Lacivert Kısım) */
.menu-header {
    background: #005580; /* Lacivert */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.close-btn {
    color: #fff;
    font-size: 30px;
    text-decoration: none;
    line-height: 1;
    margin-top: -5px;
}

/* Menü Listesi */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li a {
    display: block;
    padding: 12px 20px; /* Biraz daha ferah */
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    transition: background 0.2s, padding 0.2s;
    font-size: 15px;
}

.mobile-menu-list li a:hover {
    background-color: #f0f6fa; /* Açık mavi arka plan */
    color: #005580; /* Lacivert yazı */
    padding-left: 25px;
}

/* Ayırıcı Çizgi (Opsiyonel) */
.mobile-menu-list .divider {
    height: 5px;
    background: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-top: 2px;
    padding: 0;
}

/* --- MOBİL AYARLARI (768px Altı) --- */
@media (max-width: 768px) {
    /* Butonu Göster */
    .mobile-menu-btn {
        display: flex;
    }

    /* Eski Masaüstü Menüsünü Mobilde Gizle */
    .main-navigation .desktop-menu {
        display: none !important;
    }
}

/* --- MASAÜSTÜ AYARLARI --- */
@media (min-width: 769px) {
    /* Mobil kutuyu masaüstünde gizle */
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Yorum Formu Uyarı Yazısını Gizle */
.comment-notes {
    display: none;
}