/* =========================================
   SEK HUKUK - İÇ SAYFA STİLLERİ (blog.css)
   ========================================= */

/* ANA KONTEYNER VE IZGARA (GRID) YAPISI */
body { background-color: #f8fafc; }
.blog-page-container { max-width: 1550px; margin: 0 auto; padding: 150px 2% 100px; font-family: 'Montserrat', sans-serif; }
.blog-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }

/* --- SOL BÖLÜM: SİDEBAR --- */
.blog-sidebar { 
    background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    position: sticky; top: 120px; border: 1px solid #e2e8f0; overflow: hidden; 
}
.sidebar-widget { margin-bottom: 0; padding-bottom: 10px; }

/* Arama Kutusu */
.sidebar-search-box { padding: 25px 20px; border-bottom: 1px solid #f1f5f9; background: #fafcff; }
.search-form { position: relative; width: 100%; display: flex;}
.search-field { width: 100%; padding: 14px 15px 14px 45px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; outline: none; transition: 0.3s; }
.search-field:focus { border-color: #002347; box-shadow: 0 0 0 3px rgba(0, 35, 71, 0.08); }
.search-submit { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); background: none; color: #94a3b8; border: none; font-size: 1rem; cursor: pointer; }

/* Başlıklar */
.widget-title { font-size: 0.75rem; color: #94a3b8; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; padding: 20px 25px 10px; margin: 0; }

/* Kategoriler (Akordiyon) */
.category-list { list-style: none; padding: 0; margin: 0 0 15px 0; }
.cat-item { margin-bottom: 2px; }

.cat-link-wrapper { display: flex; align-items: center; justify-content: space-between; border-left: 4px solid transparent; transition: 0.2s; }
.cat-link-wrapper:hover { background: #f8fafc; }

.cat-link { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 25px; color: #334155; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: 0.3s; }
.cat-link i { color: #d4af37; font-size: 1.1rem; width: 18px; text-align: center; transition: 0.3s; }

/* Akordiyon Butonu */
.toggle-btn { padding: 12px 25px; cursor: pointer; color: #94a3b8; font-size: 0.85rem; transition: 0.2s; }
.toggle-btn:hover { color: #002347; }

/* Aktif Ana Kategori */
.cat-item.active-main .cat-link-wrapper { background: #002347; border-left-color: #d4af37; }
.cat-item.active-main .cat-link, .cat-item.active-main .toggle-btn { color: #fff; }
.cat-item.active-main .cat-link i { color: #fff; }

/* Alt Kategoriler */
.sub-cat-list { list-style: none; padding: 5px 0; margin: 0; display: none; background: #fff; border-bottom: 1px solid #f1f5f9; }
.cat-item.menu-open .sub-cat-list { display: block; }
.cat-item.menu-open .toggle-btn i { transform: rotate(90deg); }

.sub-cat-item a { display: block; padding: 8px 25px 8px 50px; color: #64748b; font-size: 0.85rem; font-weight: 500; text-decoration: none; position: relative; transition: 0.2s; }
.sub-cat-item a::before { content: '•'; position: absolute; left: 32px; top: 50%; transform: translateY(-50%); color: #cbd5e1; font-size: 1.2rem; }
.sub-cat-item a:hover { color: #002347; background: #f8fafc; }
.sub-cat-item.active-sub a { color: #002347; font-weight: 700; background: #f8fafc; }
.sub-cat-item.active-sub a::before { color: #d4af37; }


/* --- SAĞ BÖLÜM: YAZI KARTLARI --- */
.blog-posts-list { display: flex; flex-direction: column; gap: 35px; }

.blog-list-card { 
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 35px; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    position: relative; 
}
.blog-list-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(0, 35, 71, 0.08); border-color: #cbd5e1; }

/* Sihirli Tıklama Alanı */
.blog-card-title a::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }

/* Kategori Etiketi ve Tarih */
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 0.8rem; font-weight: 700; border-bottom: 1px solid #f1f5f9; padding-bottom: 15px;}
.blog-cat { 
    background: #f1f5f9; color: #334155; padding: 6px 12px; border-radius: 6px; 
    text-decoration: none; transition: 0.3s; display: inline-flex; align-items: center; gap: 6px;
    position: relative; z-index: 2; 
}
.blog-cat i { color: #d4af37; font-size: 0.85rem;}
.blog-cat:hover { background: #002347; color: #fff; }

.blog-date { color: #94a3b8; display: flex; align-items: center; gap: 6px;}

/* MAKALELERİN BAŞLIKLARI (Otoriter ve Kalın Yapıldı) */
.blog-card-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.9rem; 
    line-height: 1.3; 
    margin: 0 0 15px; 
    color: #002347; 
    font-weight: 800; 
    letter-spacing: -0.5px;
}
.blog-card-title a { color: inherit; text-decoration: none; transition: 0.3s; }
.blog-card-title a:hover { color: #d4af37; }

/* Makale Özeti */
.blog-card-excerpt { color: #475569; line-height: 1.7; font-size: 1.05rem; margin-bottom: 25px; font-family: 'Times New Roman', Times, serif; }

/* Devamını Oku Butonu */
.blog-read-more { 
    display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #002347; 
    text-transform: uppercase; font-size: 0.85rem; transition: 0.3s; 
    position: relative; z-index: 2; 
}
.blog-read-more:hover { color: #d4af37; gap: 12px; }

/* Sayfalama */
.blog-pagination { display: flex; justify-content: flex-start; margin-top: 40px; gap: 8px; }
.blog-pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid #cbd5e1; border-radius: 6px; color: #002347; font-weight: 700; transition: 0.3s; font-size: 0.95rem; background: #fff;}
.blog-pagination .page-numbers.current { background: #002347; color: #fff; border-color: #002347; }
.blog-pagination .page-numbers:hover:not(.current) { background: #f8fafc; color: #d4af37; }


/* --- KATEGORİ BAŞLIKLARI (Dilekçeler Sayfasıyla Aynı Yapı) --- */
.main-header { 
    display: flex; 
    flex-direction: column;
    justify-content: flex-end; 
    align-items: flex-start; 
    margin-bottom: 40px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #e2e8f0; 
}
.header-info h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 2.4rem; 
    color: #002347; 
    margin: 0; 
    font-weight: 800; 
    letter-spacing: -0.5px; 
}
.breadcrumb-lib { 
    font-size: 0.85rem; 
    color: #64748b; 
    text-transform: uppercase; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 10px; 
    font-family: 'Montserrat', sans-serif;
}
.breadcrumb-lib i { color: #d4af37; font-size: 0.7rem; }


/* --- MOBİL UYUM --- */
.mobile-tool-bar { display: none; }
.filter-overlay { display: none; }
.close-filter-btn { display: none; }

@media (max-width: 900px) {
    .blog-page-container { padding: 120px 5% 60px; }
    .blog-layout { grid-template-columns: 1fr; gap: 30px; }
    
    .mobile-tool-bar { display: flex; flex-direction: column; gap: 8px; position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 998; }
    .mobile-tool-btn { background: #002347; color: #d4af37; border: none; width: 42px; height: 42px; cursor: pointer; border-radius: 0 8px 8px 0; box-shadow: 3px 2px 10px rgba(0,0,0,0.15); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }

    .filter-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 35, 71, 0.6); backdrop-filter: blur(3px); z-index: 1003; opacity: 0; visibility: hidden; transition: 0.3s ease; }
    .filter-overlay.active { opacity: 1; visibility: visible; }

    .blog-sidebar { position: fixed; top: 0; left: -100%; right: auto; width: 280px; max-width: 80vw; height: 100vh; background: #fff; z-index: 1004; border-radius: 0; box-shadow: 10px 0 30px rgba(0,0,0,0.15); transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1); overflow-y: auto; margin: 0; }
    .blog-sidebar.active { left: 0; }

    .close-filter-btn { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #b30000; font-weight: 700; font-size: 0.95rem; cursor: pointer; margin-bottom: 20px; border-bottom: 1px solid #f1f5f9; padding: 25px 20px; text-transform: uppercase; letter-spacing: 1px; }

    .blog-list-card { padding: 25px; }
    .blog-card-title { font-size: 1.6rem; }
    .blog-pagination { justify-content: center; margin-bottom: 40px; }
}

/* --- SİHİRLİ TIKLAMA HATA ÇÖZÜMÜ --- */
/* Kartın içindeki buton ve etiketlerin tıklanabilir kalmasını (üstte kalmasını) garantiler */
.blog-card-meta, 
.blog-read-more, 
.blog-cat, 
.tag-item {
    position: relative;
    z-index: 10 !important; 
    pointer-events: auto;
}