/* GÜNDÜZ MODU (Varsayılan) */
:root {
    --bg-body: #F6F6EF;
    --bg-card: #FFFFFF;
    --primary: #D32F2F;
    --text-main: #2D3748;
    --text-article: #1A202C;
    --text-light: #718096;
    --border-color: #E2E8F0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --color-up: #10B981;
    --color-down: #EF4444;
    --weather-bg: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* GECE MODU */
[data-theme="dark"] {
    --bg-body: #111827; 
    --bg-card: #1F2937; 
    --text-main: #F9FAFB; 
    --text-article: #E5E7EB;
    --text-light: #9CA3AF; 
    --border-color: #374151; 
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --weather-bg: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0; padding: 0; line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }

/* HEADER TASARIMI */
header { background-color: var(--bg-card); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; transition: background-color 0.3s ease; }
.header-inner { max-width: 1250px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Alfa Slab One', serif; font-size: 28px; color: var(--primary); letter-spacing: -1px; text-transform: lowercase; }
.nav-wrapper { display: flex; align-items: center; }
nav { display: flex; gap: 12px; align-items: center; }
nav a { font-weight: 600; font-size: 13px; letter-spacing: -0.3px; color: var(--text-main); text-transform: uppercase; transition: color 0.3s; }
nav a:hover { color: var(--primary); }
nav a.active { color: var(--primary) !important; border-bottom: 2px solid var(--primary); padding-bottom: 3px; }

/* Gece Modu Butonu */
.theme-toggle { background: none; border: none; color: var(--text-main); font-size: 20px; cursor: pointer; padding: 5px; margin-left: 15px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s, color 0.3s; }
.theme-toggle:hover { transform: rotate(15deg); color: var(--primary); }

/* ANA YAPI */
.container { max-width: 1250px; margin: 30px auto 40px; padding: 0 20px; display: grid; grid-template-columns: 1fr 350px; gap: 30px; }

/* FİNANS BARI */
.finance-wrapper { max-width: 1250px; margin: 20px auto 0; padding: 0 20px; }
.finance-bar { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px 25px; display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; border-left: 4px solid var(--primary); transition: background-color 0.3s; }
.finance-bar::-webkit-scrollbar { display: none; }
.finance-item { display: flex; flex-direction: column; min-width: 100px; cursor: pointer; }
.finance-title { font-size: 11px; font-weight: 800; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.finance-data { display: flex; align-items: center; gap: 6px; }
.finance-value { font-size: 16px; font-weight: 800; transition: color 0.3s; }
.finance-diff { font-size: 12px; font-weight: 600; display: flex; align-items: center; }
.trend-up { color: var(--color-up); }
.trend-down { color: var(--color-down); }
@keyframes flash { 0% { opacity: 0.3; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
.update-flash { animation: flash 0.5s ease-out; }

/* SLIDER */
.slider-wrapper { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 30px; transition: background-color 0.3s; }
.main-slide { position: relative; height: 450px; cursor: pointer; overflow: hidden; }
.main-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.main-slide:hover img { transform: scale(1.03); }
.slide-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); padding: 40px 30px 20px; color: white; }
.slide-overlay h2 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.3; }
.slider-controls { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; padding: 0 15px; box-sizing: border-box; }
.slider-btn { background: rgba(255,255,255,0.2); backdrop-filter: blur(5px); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; pointer-events: auto; font-size: 18px; transition: background 0.3s; }
.slider-btn:hover { background: var(--primary); }
.thumbnail-row { display: flex; gap: 8px; padding: 15px; background: var(--bg-card); overflow-x: auto; transition: background-color 0.3s; }
.thumbnail-row::-webkit-scrollbar { height: 6px; }
.thumbnail-row::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
.thumb { min-width: calc(10% - 8px); height: 60px; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: 0.5; transition: all 0.3s; border: 2px solid transparent; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { opacity: 1; border-color: var(--primary); }
.thumb:hover { opacity: 0.8; }

/* GRID HABERLER */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.news-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-card-img { height: 200px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.category-badge { color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.news-card-content h3 { margin: 0 0 10px 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.news-card-content h3 a:hover { color: var(--primary); }
.news-date { font-size: 13px; color: var(--text-light); font-weight: 600; margin-top: auto; }

/* KATEGORİ VE KONU ŞERİTLERİ (VİTRİN) */
.category-section { max-width: 1250px; margin: 0 auto 50px auto; padding: 0 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; transition: border-color 0.3s;}
.section-header h2 { margin: 0; font-size: 24px; color: var(--text-main); transition: color 0.3s; }
.section-header h2 span { color: var(--primary); }
.section-link { font-size: 14px; font-weight: 600; color: var(--primary); }
.row-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.row-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, background-color 0.3s; }
.row-card:hover { transform: translateY(-5px); }
.row-card img { width: 100%; height: 140px; object-fit: cover; }
.row-card-content { padding: 15px; }
.row-card-content h4 { margin: 0; font-size: 15px; line-height: 1.4; }
.row-card-content h4 a:hover { color: var(--primary); }

/* KATEGORİ & KONU ÖZEL (SAYFA BAŞLIĞI) */
.page-header { background: var(--bg-card); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; border-left: 5px solid var(--primary); }
.page-header h1 { margin: 0; font-size: 28px; font-weight: 800; color: var(--primary); }
.page-header h1 span { color: var(--text-main); }
.page-header p { margin: 5px 0 0 0; color: var(--text-light); font-weight: 600; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 50px 20px; background: var(--bg-card); border-radius: var(--radius); color: var(--text-light); }

/* HABER DETAY (MAKALE) */
.article-wrapper { background: var(--bg-card); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.article-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.article-category { background: var(--primary); color: white; padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.article-date { color: var(--text-light); font-size: 14px; font-weight: 600; }
.article-title { font-size: 36px; font-weight: 800; line-height: 1.3; margin: 0 0 30px 0; color: var(--text-article); transition: color 0.3s ease; }
.article-main-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
.article-content { font-family: 'Merriweather', serif; font-size: 18px; line-height: 1.8; color: var(--text-article); transition: color 0.3s ease; }
.article-content p { margin-bottom: 25px; }
.article-content strong, .article-content b { font-weight: 700; color: inherit; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; display: block; }

/* SIDEBAR & SEKMELER */
.sidebar-inner { background: var(--bg-card); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); position: sticky; top: 90px; transition: background-color 0.3s ease; }
.weather-widget { background: var(--weather-bg); border-radius: var(--radius); padding: 20px; color: white; margin-bottom: 25px; box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; transition: background 0.3s; }
.weather-info h4 { margin: 0; font-size: 18px; font-weight: 800; }
.weather-info p { margin: 5px 0 0; font-size: 13px; opacity: 0.9; }
.weather-temp { font-size: 32px; font-weight: 800; }
.sidebar-title { margin: 0 0 20px 0; font-size: 20px; font-weight: 800; border-left: 4px solid var(--primary); padding-left: 10px; }
.sidebar-tabs { display: flex; border-bottom: 2px solid var(--border-color); margin-bottom: 20px; transition: border-color 0.3s;}
.tab-btn { flex: 1; background: none; border: none; padding: 10px 0; font-size: 16px; font-weight: 800; color: var(--text-light); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.3s; }
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.timeline { margin-top: 20px; }
.timeline-item { position: relative; padding-left: 25px; margin-bottom: 25px; }
.timeline-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: -25px; width: 2px; background: var(--border-color); transition: background-color 0.3s; }
.timeline-item:last-child::before { display: none; }
.timeline-item::after { content: ''; position: absolute; left: -4px; top: 5px; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg-card); transition: box-shadow 0.3s; }
.timeline-time { font-size: 12px; font-weight: 800; color: var(--text-light); margin-bottom: 4px; }
.timeline-link { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; transition: color 0.3s;}
.timeline-link:hover { color: var(--primary); }

/* MOBİL UYUM */
@media (max-width: 992px) {
    .container { grid-template-columns: 1fr; }
    .sidebar-inner { position: static; }
    .row-grid { grid-template-columns: repeat(2, 1fr); }
    .article-wrapper { padding: 25px; }
    .article-title { font-size: 28px; }
}
@media (max-width: 768px) { 
    .news-grid { grid-template-columns: 1fr; } 
    nav { display: none; } 
    .main-slide { height: 300px; } 
    .slide-overlay h2 { font-size: 20px; } 
    .row-grid { grid-template-columns: 1fr; } 
}

/* --- YORUMLAR BÖLÜMÜ --- */
.comments-section { margin-top: 50px; border-top: 2px solid var(--border-color); padding-top: 30px; transition: border-color 0.3s; }
.comments-title { font-size: 24px; font-weight: 800; margin-bottom: 25px; transition: color 0.3s; }
.comment-form-box { background: var(--bg-body); padding: 25px; border-radius: var(--radius); margin-bottom: 40px; border: 1px solid var(--border-color); transition: background-color 0.3s, border-color 0.3s; }
.comment-form-box h4 { margin: 0 0 20px 0; font-size: 18px; transition: color 0.3s;}
.form-group { margin-bottom: 15px; }
.form-group-row { display: flex; gap: 20px; }
.form-group-row .form-group { flex: 1; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="number"], .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; background: var(--bg-card); color: var(--text-main); font-family: 'Inter', sans-serif; transition: border-color 0.3s, background-color 0.3s, color 0.3s; box-sizing: border-box; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary); }
.captcha-group { max-width: 200px; }
.captcha-group label strong { color: var(--primary); font-size: 16px; }
.submit-btn { background: var(--primary); color: white; border: none; padding: 12px 25px; font-size: 15px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: opacity 0.3s; }
.submit-btn:hover { opacity: 0.9; }

.comments-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item { display: flex; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); transition: border-color 0.3s; }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 50px; height: 50px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.comment-author { font-weight: 700; font-size: 16px; color: var(--text-main); transition: color 0.3s;}
.comment-date { font-size: 12px; color: var(--text-light); }
.comment-text { font-size: 15px; color: var(--text-main); line-height: 1.6; transition: color 0.3s;}
.no-comments { color: var(--text-light); font-style: italic; }

.alert { padding: 15px; border-radius: 6px; margin-bottom: 20px; font-weight: 600; font-size: 14px; }
.alert.success { background: #def7ec; color: #10B981; border: 1px solid #10B981; }
.alert.error { background: #fde8e8; color: #EF4444; border: 1px solid #EF4444; }
[data-theme="dark"] .alert.success { background: rgba(16, 185, 129, 0.1); }
[data-theme="dark"] .alert.error { background: rgba(239, 68, 68, 0.1); }

@media (max-width: 768px) { .form-group-row { flex-direction: column; gap: 0; } }

/* --- YORUM CEVAPLAMA VE KİMLİK SİSTEMİ EKLENTİLERİ --- */
.comment-reply-thread { margin-left: 50px; border-left: 2px solid var(--border-color); padding-left: 15px; margin-top: 15px; }
.comment-reply-btn { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; margin-top: 10px; transition: opacity 0.3s; }
.comment-reply-btn:hover { opacity: 0.7; text-decoration: underline; }

.comment-uid { font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: var(--border-color); color: var(--text-light); margin-left: 8px; letter-spacing: 1px; }

#cevap_uyari { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 15px; display: none; padding: 10px; background: rgba(211, 47, 47, 0.1); border-radius: 6px; border: 1px dashed var(--primary); }
#cevap_uyari a { color: var(--text-main); text-decoration: underline; margin-left: 10px; font-size: 12px; }

@media (max-width: 768px) {
    .comment-reply-thread { margin-left: 20px; }
}

/* --- MOBİL MENÜ CSS --- */
.mobile-menu-btn {
    display: none; /* Bilgisayarda gizli */
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-main);
    cursor: pointer;
    margin-left: 15px;
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Sadece mobilde görünür */
    }
    
    .nav-wrapper nav {
        display: none; /* Mobilde varsayılan olarak gizli */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav-wrapper nav.mobile-active {
        display: flex; /* Butona basınca (JS ile) görünür */
    }
    
    .nav-wrapper nav a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-wrapper nav a:last-child {
        border-bottom: none;
    }
}