/* ==========================================================================
   1. TEMEL DEĞİŞKENLER VE GENEL STİLLER
   ========================================================================== */
:root {
    --header-bg: #00695c; 
    /*
     * Renk paleti ayarları ve tipografi
     *
     *  - header ve vurgu renkleri yeşilin daha modern bir tonuyla güncellendi.
     *  - altın vurgular daha sıcak bir altın tonu ile öne çıkarıldı.
     *  - kart gölgeleri daha yumuşak hale getirildi.
     */
    --accent-color: #00897b;
    --body-bg: #f7fbfa;
    --card-bg: #ffffff;
    --text-color: #333;
    --beyaz: #FFFFFF;
    --altin: #d4af37;
    /* Yumuşak gölgeler için varsayılan derinlik azaltıldı */
    --golge: 0 6px 18px rgba(0, 0, 0, .07);
    --font-baslik: 'Lora', serif;
    --font-metin: 'Montserrat', sans-serif;
    --font-arapca: 'Scheherazade New', serif;
}

/* Geliştirilmiş Koyu Mod Renkleri */
body.dark-mode {
    --header-bg: #1a202c;
    --accent-color: #66d9c1; 
    --body-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #d1d5db;
    /* Koyu modda da arka plan desenleri uygulandı */
    background-image:
        linear-gradient(145deg, rgba(102, 217, 193, 0.07) 0%, rgba(102, 217, 193, 0.02) 100%),
        linear-gradient(to bottom, #121212 0%, #1a2420 100%);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-metin);
    /*
     * Arka plan için modern, gözü yormayan bir gradyan ve zarif desen kullanıldı.
     * İlk gradyan, alt renk geçişi sağlarken ikinci gradyan sayfaya hafif bir doku verir.
     */
    background-color: var(--body-bg);
    background-image:
        linear-gradient(145deg, rgba(0, 105, 92, 0.03) 0%, rgba(0, 105, 92, 0.01) 100%),
        linear-gradient(to bottom, #f7fbfa 0%, #eef8f4 100%);
    color: var(--text-color);
    line-height: 1.75;
    font-size: 16px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-color); text-decoration: none; }
body.dark-mode a { color: var(--accent-color); }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   2. GELİŞTİRMELERİN STİLLERİ (Tema, Scroll vb.)
   ========================================================================== */

#progress-bar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    height: 4px; 
    background: var(--altin); 
    width: 0%; 
    z-index: 1001; 
    transition: width 0.1s; 
}

.theme-switch-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-left: 15px; 
}
.theme-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--altin); }
input:checked + .slider:before { transform: translateX(20px); }

#scrollTopBtn { 
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: var(--header-bg); 
    color: white; 
    cursor: pointer; 
    padding: 12px; 
    border-radius: 50%; 
    font-size: 18px; 
    width: 45px; 
    height: 45px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
    opacity: 0; 
    transition: opacity 0.3s, visibility 0.3s; 
    visibility: hidden; 
}
#scrollTopBtn.show { opacity: 1; visibility: visible; }

/* ZİKİR SAYACI GELİŞTİRME STİLLERİ */
.counter-info { display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; margin-top: 15px; opacity: 0.8; }
.progress-bar-container { width: 100%; background-color: #eee; border-radius: 5px; height: 10px; margin: 15px 0 5px; }
body.dark-mode .progress-bar-container { background-color: #333; }
.progress-bar { width: 0%; height: 100%; background-color: var(--altin); border-radius: 5px; transition: width 0.3s ease-in-out; }

.card, .btn-read-more { transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.card:hover, .btn-read-more:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }

/* ==========================================================================
   3. GELİŞMİŞ ARAMA BUTONU STİLLERİ
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-icon-btn {
    background: none;
    border: none;
    color: var(--beyaz);
    font-size: 1.1em;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
    margin-left: 10px;
}
.nav-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-overlay-content {
    width: 90%;
    max-width: 700px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.search-overlay.active .search-overlay-content {
    transform: scale(1);
}

.search-overlay-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}
.search-overlay-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

#site-search-form {
    display: flex;
    border-bottom: 3px solid var(--altin);
}
#search-overlay-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 2rem;
    padding: 15px 5px;
    font-family: var(--font-baslik);
}
#search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
#site-search-form button {
    background: none;
    border: none;
    color: var(--altin);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 15px;
    transition: color 0.2s;
}
#site-search-form button:hover {
    color: #fff;
}
@media (max-width: 768px) {
    #search-overlay-input { font-size: 1.5rem; }
    #site-search-form button { font-size: 1.3rem; }
}

/* ==========================================================================
   4. ANA SAYFA STİLLERİ (FORMATLANDI)
   ========================================================================== */

.site-header {
    background-color: var(--header-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--golge);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* YENİ: Logo Stilleri Güncellendi */
.brand .logo {
    width: 50px;       
    height: 50px;      
    border-radius: 50%; 
    object-fit: cover; 
    vertical-align: middle; 
}
.brand h1 {
    font-size: 1.8em;
    margin: 0;
}
.brand h1 a {
    color: var(--beyaz);
    text-decoration: none;
}
.main-nav {
    display: flex;
    align-items: center;
}
.main-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}
.main-nav .nav-menu a {
    color: var(--beyaz);
    font-weight: 500;
    font-size: .9em;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background-color .3s;
}
.main-nav .nav-menu a:hover {
    background-color: rgba(255, 255, 255, .15);
}

/* --- Ana İçerik Alanı --- */
main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Yeni: Kenar çubuğu kaldırıldığında ana içerik alanının tam genişlikte görünmesi için */
main.no-toc {
    /* Varsayılan grid düzenini kaldırarak içeriği tek kolon halinde göster */
    display: block;
    /* Üst ve yan boşlukları ana düzenle tutarlı olacak şekilde koru */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 30px;
}

/* GELİŞTİRİLMİŞ KENAR ÇUBUĞU (TOC) */
.toc {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; 
    background-color: var(--card-bg);
}
body.dark-mode .toc {
    border-color: #333;
}
.toc-title {
    background-color: #f7f7f7;
    padding: 12px 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}
body.dark-mode .toc-title {
    background-color: #2a2a2a;
}
.toc-title::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .3s ease-in-out;
}
.toc-title.closed::after {
    transform: translateY(-50%) rotate(-90deg);
}

.toc-content {
    transition: max-height .4s ease-in-out, padding .4s ease-in-out;
    padding: 0;
}
.toc-content.closed {
    max-height: 0;
    overflow: hidden;
}
.toc-content ul { 
    list-style: none; 
    margin: 0;
    padding: 0;
}
.toc-content a {
    display: block;
    padding: 8px 15px;
    font-size: .9em;
    border-bottom: 1px solid #f0f0f0;
}
body.dark-mode .toc-content a {
    border-bottom-color: #333;
}
.toc-content a:hover { 
    background-color: #f5f5f5; 
}
body.dark-mode .toc-content a:hover {
     background-color: #2c2c2c;
}
.toc-content a:last-child {
    border-bottom: none;
}
.toc-category {
    margin-top: 15px;
    padding: 5px 15px;
    font-weight: 700;
    color: var(--accent-color);
    font-size: .95em;
}
.toc-content ul li:first-child .toc-category { 
    margin-top: 0; 
    padding-top: 10px;
}
/* / KENAR ÇUBUĞU SONU */

/* --- Bölümler ve Grid (Izgara) --- */
section { margin-bottom: 40px; }
.grid { display: grid; gap: 20px; }
.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive sütun düzenleri: 992px altında 3 ve 4 kolon yapılarını iki kolona düşür,
   600px altında tüm kartları tek kolona yerleştir. */
@media (max-width: 992px) {
    .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

.section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    /* Başlıklar altın rengiyle vurgulanır ve okunabilirlik için Lora fontu kullanılır */
    color: var(--altin);
    font-family: var(--font-baslik);
}
.lead {
    font-size: 1.2em;
    color: #555;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 20px auto;
}
body.dark-mode .lead {
    color: #b0b0b0;
}

/* Fade-in animation for hero title */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#hero .hero-title {
    animation: fadeInUp 1.2s ease-out forwards;
}

/* Style for Hadis Sözlüğü input and results */
#hadis-sozlugu input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 8px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 4px;
    font-size: 1em;
    margin: 0.5rem 0;
}
#hadis-sozlugu .sozluk-sonuclar ul {
    margin-top: 0.5rem;
    list-style-type: disc;
    padding-left: 1.5rem;
    font-size: 0.95em;
}

/* Inline stiller buraya taşındı */
#hero .bismillah-hero {
    font-size: 3.5em; 
    text-align: center; 
    font-family: var(--font-arapca);
    color: var(--accent-color);
}
#hero .hero-title {
    font-size: 2.2em; 
    text-align: center; 
    color: var(--header-bg); 
    font-family: 'Scheherazade New', serif;
}
body.dark-mode #hero .hero-title {
    color: var(--accent-color);
}
#sitede-neler-bulabilirsiniz {
    padding: 25px; 
    margin-bottom: 30px;
}
#sitede-neler-bulabilirsiniz h2 {
    text-align: center; 
    color: var(--accent-color); 
    font-family: var(--font-baslik); 
    margin-bottom: 15px;
}
#sitede-neler-bulabilirsiniz p {
    font-size: 1.05em; 
    line-height: 1.8; 
    text-align: center;
}
.section-divider {
    margin: 40px auto; 
    width: 50%; 
    border: 0; 
    border-top: 1px solid #ddd;
}
body.dark-mode .section-divider {
    border-top-color: #333;
}

/* --- Kart, Buton, Zikir vb. --- */
.card {
    /* Kartlarda Flat Design 2.0 anlayışına uygun olarak hafif gradyan ve yumuşak gölgeler uygulanır */
    background-color: var(--card-bg);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--golge);
}

/* Koyu mod için kart arka planını ve gölgesini uyarlama */
body.dark-mode .card {
    background-color: var(--card-bg);
    background-image: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 1) 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
.btn-read-more {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--beyaz);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin-top: 20px;
}
body.dark-mode .btn-read-more {
    background-color: var(--accent-color);
    color: #121212;
}
blockquote, .ayet {
    font-family: var(--font-baslik);
    font-style: italic;
    font-size: 1.1em;
}
.chip {
    display: inline-block;
    font-size: .8em;
    background-color: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 10px;
    font-style: normal;
}
body.dark-mode .chip {
    background-color: #333;
    color: #ccc;
}

/* --- Zikir Sayacı --- */
.counter-card { text-align: center; }
.count {
    font-size: 4em;
    font-weight: 700;
    color: var(--header-bg);
}
body.dark-mode .count { color: var(--accent-color); }
.counter-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}
.counter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
}
body.dark-mode .counter-btn {
    color: #121212;
    background-color: var(--accent-color);
}
#zikirSearch {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 20px;
    background-color: var(--card-bg);
    color: var(--text-color);
}
body.dark-mode #zikirSearch {
    border-color: #444;
}
.zikir-item {
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}
.zikir-item.active {
    border: 2px solid var(--header-bg);
    box-shadow: 0 0 10px rgba(0, 105, 92, .3);
}
body.dark-mode .zikir-item.active {
     border-color: var(--accent-color);
     box-shadow: 0 0 10px var(--accent-color);
}
.zikir-item small {
    font-size: .85em;
    opacity: .8;
}

/* --- Günün Sözü & Paylaşım --- */
#gunun-sozu {
    text-align: center;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--golge);
    border-left: 5px solid var(--header-bg);
}
body.dark-mode #gunun-sozu {
    border-left-color: var(--accent-color);
}
#gunun-sozu blockquote {
    font-size: 1.3em;
    font-style: italic;
    margin: 0;
}
#gunun-sozu .kaynak {
    display: block;
    margin-top: 15px;
    font-size: 1em;
    font-weight: bold;
    color: var(--header-bg);
}
body.dark-mode #gunun-sozu .kaynak {
    color: var(--accent-color);
}
.social-share { text-align: center; margin-top: 20px; }
.social-share a { display: inline-flex; align-items:center; justify-content:center; gap: 8px; margin: 0 8px; padding: 8px 14px; border-radius: 5px; color: white; font-size: 0.9em; text-decoration: none; }
.share-twitter { background-color: #1DA1F2; }
.share-facebook { background-color: #1877F2; }
.share-whatsapp { background-color: #25D366; }

/* GÜNÜN ESMA'SI KARTI */
#gunun-esmasi {
    text-align: center;
    border-left: 5px solid var(--altin);
    padding: 30px;
}
.esma-baslik {
    font-size: 1em;
    font-weight: bold;
    color: var(--header-bg);
    text-transform: uppercase;
    opacity: 0.8;
}
body.dark-mode .esma-baslik {
    color: var(--accent-color);
}
.esma-ad {
    font-family: var(--font-arapca);
    font-size: 2.5em;
    font-weight: 700;
    color: var(--altin);
    margin: 5px 0;
}
.esma-anlam {
    font-style: italic;
    font-size: 1.05em;
    margin-bottom: 20px;
    opacity: 0.9;
}
#gunun-esma-zikret {
    margin-top: 0;
    background-color: var(--altin);
    color: #000;
    font-weight: bold;
}
body.dark-mode #gunun-esma-zikret {
    color: #000;
}
#gunun-esma-zikret:hover {
    background-color: #c9a430;
}
/* / GÜNÜN ESMA'SI */

/* --- Ezan Vakitleri --- */
#prayer-times { background-color: var(--card-bg); border-radius: 12px; padding: 20px; box-shadow: var(--golge); }
.prayer-header { text-align: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
body.dark-mode .prayer-header { border-bottom-color: #333; }
.prayer-header h3 { font-size: 1.5em; color: var(--header-bg); margin: 0; }
body.dark-mode .prayer-header h3 { color: var(--accent-color); }
.prayer-header p { font-size: 1em; opacity: 0.8; margin: 5px 0 0; }
.city-selector-wrapper { position: relative; display: inline-block; width: 100%; max-width: 300px; margin-top: 10px; }
#city-selector { width: 100%; padding: 8px 30px 8px 12px; border-radius: 5px; border: 1px solid #ccc; font-size: 1em; appearance: none; -webkit-appearance: none; background-color: var(--card-bg); color: var(--text-color); }
body.dark-mode #city-selector { border-color: #444; }
.city-selector-wrapper::after { content: '▼'; font-size: 12px; position: absolute; top: 50%; right: 12px; transform: translateY(-50%); pointer-events: none; }
.prayer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 15px; text-align: center; margin-top:15px; }
.prayer-time { padding: 10px; border-radius: 8px; }
.prayer-time.active { 
    background-color: var(--altin); 
    color: #000;
    font-weight: bold;
}
.prayer-time.active .saat { 
    color: #000;
}
.prayer-time .vakit { font-weight: bold; font-size: 1em; }
.prayer-time .saat { font-size: 1.4em; color: var(--accent-color); font-weight: bold; }
#next-prayer-info { text-align: center; margin-top: 20px; font-size: 1.2em; }
#next-prayer-info .vakit-adi { font-weight: bold; color: var(--header-bg); }
body.dark-mode #next-prayer-info .vakit-adi { color: var(--accent-color); }
.loader { text-align: center; padding: 20px; font-size: 1.2em; }

/* --- Öne Çıkan Ay Bölümü --- */
.featured-month-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--golge);
    padding: 30px;
    margin-bottom: 40px;
    border-left: 6px solid var(--header-bg);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}
body.dark-mode .featured-month-section {
     border-left-color: var(--accent-color);
}
.featured-month-section h2 {
    font-family: 'Lora', serif;
    font-size: 2em;
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.featured-month-section .intro-text {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
}
.featured-month-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}
.featured-month-section li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    font-size: 1.05em;
}
.featured-month-section li::before {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--altin);
    margin-right: 12px;
    margin-top: 5px;
}
.featured-month-section .details-button {
    display: inline-block;
    background-color: var(--header-bg);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.2s;
}
.featured-month-section .details-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}
body.dark-mode .featured-month-section .details-button {
    background-color: var(--accent-color);
    color: #121212;
}
body.dark-mode .featured-month-section .details-button:hover {
    background-color: var(--altin);
}

/* HAFTANIN KISSASI KARTI */
#haftanin-kissasi {
    border-left: 5px solid var(--header-bg);
    padding: 30px;
}
body.dark-mode #haftanin-kissasi {
    border-left-color: var(--accent-color);
}
#haftanin-kissasi .kissa-title {
    margin-bottom: 20px;
    text-align: left;
    font-family: var(--font-baslik);
    color: var(--accent-color);
    font-size: 1.8em;
    display: flex; /* İkonu yanına almak için */
    align-items: center;
    gap: 10px;
}
.kissa-hikaye {
    font-style: italic;
    font-size: 1.05em;
    opacity: 0.9;
}
.kissa-divider {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #eee;
}
body.dark-mode .kissa-divider {
    border-top-color: #333;
}
.kissa-hisse {
    font-size: 1.05em;
}
.kissa-hisse strong {
    color: var(--header-bg);
}
body.dark-mode .kissa-hisse strong {
    color: var(--accent-color);
}
/* / HAFTANIN KISSASI */

/* --- Footer --- */
.footer {
    background-color: var(--accent-color);
    color: rgba(255, 255, 255, .7);
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}
body.dark-mode .footer {
    background-color: #1a202c;
}
.footer-links a {
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
    text-decoration: none;
    margin: 0 15px;
}
.footer-links a:hover {
    text-decoration: underline;
    color: var(--beyaz);
}
.copyright {
    margin-top: 15px;
    font-size: .9em;
}

/* ==========================================================================
   5. MOBİL UYUMLULUK (Media Queries)
   ========================================================================== */

/* Masaüstü için Sticky/Scrollable Kenar Çubuğu */
@media (min-width: 769px) {
    .toc-container {
        position: sticky;
        top: 30px; 
        align-self: start;
    }
    .toc-content {
        max-height: calc(100vh - 180px); 
        overflow-y: auto;
    }
}

@media (max-width: 992px) {
    main { grid-template-columns: 220px 1fr; }
    .cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .brand { order: 0; }
    .main-nav {
        order: 1;
        width: 100%;
        justify-content: space-between;
    }
    .main-nav .nav-menu {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        border-top: 1px solid rgba(255, 255, 255, .2);
        width: 100%;
        padding-top: 10px;
        margin-top: 10px;
    }
    .nav-icon-btn { margin-left: 0; }
    .theme-switch-wrapper { margin-left: 0; }

    main { display: block; }
    .toc-container {
        margin-bottom: 30px;
    }
    .grid.cols-2, .grid.cols-3, .grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Ek Mobil İyileştirmeler ve Hamburger Menü
   ========================================================== */

/* iOS safe-area desteği */
.site-header {
    padding-top: calc(15px + env(safe-area-inset-top));
}

/* Dokunmatik hedefleri büyüt */
button,
.btn-read-more,
.btn-primary,
.nav-menu a,
.nav-icon-btn {
    min-height: 44px;
}

/* Hamburger buton stili */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    /* Hero slider mobilde daha küçük olsun */
    .hero-slider {
        height: 42vh;
    }
    .hero-slider .slide-overlay {
        left: 6%;
        bottom: 10%;
        max-width: 88%;
        padding: 14px 16px;
    }
    .hero-slider .slide-overlay h2 {
        font-size: 1.5rem;
    }
    .hero-slider .slide-overlay p {
        font-size: 1rem;
    }

    /* Başlık ve navigasyon sütun düzeninde */
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .main-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    /* Hamburger buton görünür olsun */
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Menü varsayılan kapalı */
    .main-nav .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 6px;
        padding-top: 12px;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .main-nav .nav-menu.active {
        display: flex;
    }

    /* Mobil menü linkleri tam genişlikte */
    .main-nav .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 12px 14px;
    }

    /* TOC kartı köşeleri yuvarlatılmış */
    .toc {
        border-radius: 12px;
    }
}

/* Hareket kısıtlamalarını tercih eden kullanıcılar için */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}


    /* ================================================
       4+. YENİ TANITIM VE REKLAM BÖLÜMLERİ STİLLERİ
       ================================================ */
    .promo-section,
    .user-ad-section {
        background-color: var(--card-bg);
        border-radius: 12px;
        padding: 20px;
        box-shadow: var(--golge);
        margin-bottom: 24px;
    }
    .promo-section h2,
    .user-ad-section h2 { margin-top: 0; color: var(--accent-color); }
    .user-ad-section p { opacity: .9; }
  /* ==========================================================
   GÜÇLENDİRİLMİŞ OTOMATİK ÇEVİRİ GİZLEME
   ========================================================== */

/* Bu, Google'ın gerçek menüsünü hedef alır */
#google_translate_element {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
}

/* Bu, sizin menüyü içine alan kutuyu hedef alır */
.language-selector {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* Google'ın çeviri yaptıktan sonra sayfanın en üstüne eklediği
  "Orijinalini Göster" çubuğunu (toolbar) gizler.
*/
body > #goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
}

/* Üstteki çubuk gizlendiğinde, Google sayfanın üstüne 40px boşluk ekler.
  Bu kod, o çirkin boşluğu kaldırır ve sayfayı tekrar en üste yapıştırır.
*/
body.translated-ltr {
    top: 0 !important;
}
body.translated-rtl {
    top: 0 !important;
}



/* ==========================================================================
   GELİŞMİŞ ARAMA VE KEŞFET STİLLERİ
   ========================================================================== */

#advanced-search-hero {
    background: linear-gradient(135deg, var(--header-bg) 0%, var(--accent-color) 100%);
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    color: var(--beyaz);
    margin-bottom: 40px;
    box-shadow: var(--golge);
}

.search-title {
    font-family: var(--font-baslik);
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--beyaz);
}

.search-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Arama Kutusu Tasarımı */
.main-search-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto 25px;
    display: flex;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 50px;
    background: var(--beyaz);
    overflow: hidden;
    padding: 5px;
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2em;
}

#mega-search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 15px 15px 15px 50px; /* İkon için boşluk */
    font-size: 1.1em;
    border-radius: 50px 0 0 50px;
    color: var(--text-color);
}

#mega-search-btn {
    background-color: var(--altin);
    border: none;
    color: #fff;
    padding: 0 35px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 50px;
    transition: background 0.3s;
}

#mega-search-btn:hover {
    background-color: #c9a430;
}

/* Hızlı Etiketler (Chips) */
.quick-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tag-label {
    font-weight: 500;
    opacity: 0.8;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--beyaz);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.filter-chip:hover {
    background: var(--beyaz);
    color: var(--header-bg);
    transform: translateY(-2px);
}

/* Ruh Hali Kartları */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.mood-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--golge);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.mood-card:hover {
    border-color: var(--altin);
    transform: translateY(-5px);
}

.mood-card.active {
    background-color: var(--body-bg);
    border-color: var(--header-bg);
}

.mood-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Sonuç Kartları için Eklemeler */
.result-card-highlight {
    border-left: 5px solid var(--altin);
}

.result-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--body-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    color: var(--header-bg);
}

body.dark-mode #mega-search-input {
    background-color: #2d3748;
    color: var(--beyaz);
}
body.dark-mode .main-search-wrapper {
     background-color: #2d3748;
}

/* ======================================================================
   12. HERO SLIDER & FEATURED SECTIONS (Yeni)
   =====================================================================*/
/* Hero slider styling */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slider .slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}
.hero-slider .slide-overlay {
    position: absolute;
    bottom: 20%;
    left: 10%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-radius: 8px;
    color: #fff;
    max-width: 50%;
}
.hero-slider .slide-overlay h2 {
    font-family: var(--font-baslik);
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--altin);
}
.hero-slider .slide-overlay p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}
.hero-slider .btn-primary {
    background-color: var(--altin);
    color: var(--beyaz);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.hero-slider .btn-primary:hover {
    background-color: var(--header-bg);
}
.hero-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}
.hero-slider #prev-slide {
    left: 15px;
}
.hero-slider #next-slide {
    right: 15px;
}

/* Editor's picks section */
.editors-picks {
    margin: 40px 0;
}
.picks-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.pick-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--golge);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.pick-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.pick-card .pick-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: var(--beyaz);
}
.pick-card .pick-info h3 {
    font-size: 1.1rem;
    font-family: var(--font-baslik);
    margin: 0;
}

/* Popular topics section */
.popular-topics {
    margin: 40px 0;
}
.topics-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.topic-card {
    text-align: center;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--golge);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.topic-card i {
    font-size: 2.2rem;
    color: var(--altin);
    margin-bottom: 10px;
}
.topic-card h4 {
    font-family: var(--font-baslik);
    margin-bottom: 5px;
    font-size: 1.2rem;
}
.topic-card p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/*
 * Ensure our hero slider and featured sections occupy the full width
 * of the main content grid. Without these rules, the grid places
 * each section in the first column, leaving the second column empty.
 */
.hero-slider,
.editors-picks,
.popular-topics {
    grid-column: 1 / -1;
}





/* ================================
   Pazartesi & Yıl Sonu Özel - Premium iyileştirme
   ================================ */

:root{
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
  --shadow-soft-2: 0 12px 36px rgba(0,0,0,.10);
}

body{
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main.no-toc{
  padding-top: 18px;
}

/* Typography */
.hero-title{
  letter-spacing: -.2px;
  line-height: 1.18;
}

.lead{
  line-height: 1.75;
  font-size: 1.05rem;
  opacity: .92;
}

.section-title{
  line-height: 1.25;
  letter-spacing: -.2px;
}

.card p{
  line-height: 1.78;
}

/* Card premium look */
.card{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.dark-mode .card{
  border-color: rgba(255,255,255,.10);
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-2);
}

/* Mini TOC (chip) - mobile friendly */
.mini-toc{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 6px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mini-toc::-webkit-scrollbar{ display:none; }

.mini-toc a{
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
body.dark-mode .mini-toc a{
  border-color: rgba(255,255,255,.12);
}
.mini-toc a:hover{
  transform: translateY(-1px);
}

/* Quote + Note */
blockquote{
  border-left: 4px solid var(--altin);
  padding: 14px 14px;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,.03);
}
body.dark-mode blockquote{
  background: rgba(255,255,255,.06);
}

.note{
  border-left: 4px solid var(--altin);
  padding: 12px 14px;
  border-radius: var(--radius-md);
}

/* Buttons / focus */
a, button{
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline: 3px solid rgba(255, 193, 7, .55);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Ad spacing (reduce CLS feel) */
.ad-wrap{
  padding: 10px 0;
}

/* Responsive tweaks */
@media (max-width: 768px){
  .hero-title{ font-size: 1.55rem; }
  .lead{ font-size: 1rem; }
  .card{ border-radius: 16px; }
}
