/* =========================================
   🔥 TEMA DEĞİŞKENLERİ (GECE / GÜNDÜZ)
========================================= */
:root { 
    --primary: #254a9a; 
    --secondary: #182c55;
    --accent: #ef4444; 
    --dark: #0f172a; 
    --text: #334155;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.95);
}

/* Koyu Tema Aktif Olduğunda Renkler Otomatik Değişir */
html.dark-mode {
    --primary: #60a5fa; 
    --secondary: #93c5fd;
    --accent: #f87171;
    --dark: #f8fafc; 
    --text: #cbd5e1;
    --bg: #020617;
    --card-bg: #0f172a;
    --border-color: #1e293b;
    --glass: rgba(2, 6, 23, 0.95);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { max-width: 100vw; overflow-x: hidden; }
img, video, iframe { max-width: 100%; height: auto; }

/* Sayfa geçişlerine yumuşak animasyon eklendi */
body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--text); 
    background-color: var(--bg); 
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* NAVBAR & TEMA BUTONU */
nav {
    position: sticky; top: 0; background: var(--glass); backdrop-filter: blur(10px);
    z-index: 1000; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { color: var(--accent); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* 🔥 TEMA BUTONU TASARIMI (Daireden Kareye Çevrildi) */
.theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 42px; height: 42px;
    border-radius: 12px; /* 50% yerine 12px yaparak şık bir kare elde ettik */
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem; transition: 0.3s; margin-left: 15px;
}
.theme-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
html.dark-mode .theme-btn { background: rgba(255, 255, 255, 0.1); color: #fbbf24; border-color: rgba(255, 255, 255, 0.1); }

/* HERO ALANI */
.combined-hero {
    background-image: linear-gradient(135deg, #020617 0%, #1e3a8a 35%, #3b82f6 70%, #1d4ed8 100%) !important;
    background-size: 300% 300% !important;
    animation: gradientBG 15s ease infinite !important;
    padding-bottom: 80px; padding-top: 0;
}
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.transparent-nav { background: transparent !important; box-shadow: none !important; padding: 25px 5% 10px 5% !important; }
.transparent-nav .logo { color: #ffffff !important; }
.transparent-nav .nav-links a { color: #cbd5e1 !important; }
.transparent-nav .nav-links a:hover { color: #ffffff !important; }

.hero-content { text-align: center; max-width: 900px; margin: 0 auto; padding: 40px 20px 0; }
.premium-title { font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; color: white; }
.brand-highlight { display: inline-block; font-weight: 900; font-size: 3.5rem; background: linear-gradient(to right, #ffffff 0%, #e2e8f0 50%, #93c5fd 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); letter-spacing: -1px; }
.hero-desc { color: #e2e8f0; font-size: 1.15rem; max-width: 700px; margin: 0 auto 30px; line-height: 1.6; }

/* APP ALANI */
.app-download-area { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 50px; }
.app-logo-box { background-color: white; width: 120px; height: 120px; padding: 15px; border-radius: 28px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.app-main-logo { width: 100% !important; height: auto !important; object-fit: contain; display: block; }
.play-only-btn { background: #0f172a; color: white; padding: 15px 35px; border-radius: 30px; font-size: 1.1rem; font-weight: 700; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid rgba(255,255,255,0.2); display: inline-flex; align-items: center; gap: 10px; }
.play-only-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); color: #38bdf8; }

/* NEWS ALANI */
.news-section { padding: 60px 5%; max-width: 1400px; margin: 0 auto; }
.section-title { font-size: 2rem; color: var(--dark); margin-bottom: 20px; }
.categories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; margin-bottom: 30px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.category-btn { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text); padding: 8px 20px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: 0.3s; white-space: nowrap; }
.category-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.category-btn:hover:not(.active) { background: var(--border-color); }

/* HABER KARTLARI (Gece Modu Uyumu) */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; min-height: 60vh; }
.news-card { background: var(--card-bg) !important; border-radius: 16px; border: 1px solid var(--border-color); overflow: hidden; height: max-content; min-height: 0; transition: 0.3s; display: flex; flex-direction: column; cursor: pointer; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2); }
.news-img { width: 100%; height: 200px !important; object-fit: cover !important; object-position: top center !important; background: var(--border-color); }
.news-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.news-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px;}
.news-title { font-size: 1.1rem; font-weight: 700; color: var(--dark) !important; margin-bottom: 10px; line-height: 1.4; transition: color 0.3s; }
.news-desc { font-size: 0.9rem; color: var(--text) !important; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s; }
.news-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text); font-weight: 500; border-top: 1px solid var(--border-color); padding-top: 15px;}
.loading { text-align: center; padding: 50px; color: var(--primary); font-size: 1.2rem; font-weight: 600; grid-column: 1 / -1; }

.ss-section { padding: 60px 5%; background: #020617; color: white; text-align: center; width: 100%;}
.pagination-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-bottom: 20px;}
.page-btn { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.top-bar { background: #1e3a8a; color: #f8fafc; display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; font-size: 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: sticky; top: 0; z-index: 9999; }
.ticker-wrap { flex: 1; overflow: hidden; white-space: nowrap; position: relative; mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent); }
.ticker { display: inline-block; white-space: nowrap; padding-left: 100%; animation: tickerAnim 90s linear infinite; }
.ticker:hover { animation-play-state: paused; }
@keyframes tickerAnim { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.finance-item { display: inline-flex; align-items: center; margin-right: 50px; color: #cbd5e1; font-weight: 600; letter-spacing: 0.5px; }
.finance-item span { margin-left: 8px; font-weight: 700; }
.finance-item .up { color: #4ade80; } .finance-item .down { color: #f87171; } .finance-item .neutral { color: #e2e8f0; }
.datetime-display { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.15); padding: 6px 16px; border-radius: 8px; font-weight: 500; margin-left: 20px; }
.datetime-display .time { color: #ffffff; font-weight: 700; font-variant-numeric: tabular-nums; } .datetime-display .date { color: #e2e8f0; }

@media (max-width: 768px) {
    /* Üst Bar ve Navigasyon */
    .top-bar { padding: 4px 10px !important; }
    .finance-item { font-size: 0.65rem !important; margin-right: 15px !important; }
    .datetime-display { display: none !important; }
    .nav-links { display: none !important; }
    .logo { font-size: 1.2rem !important; }
    
    /* Mobil Tema Butonu */
    .theme-btn { margin-left: auto; width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
    .transparent-nav { padding: 10px 4% !important; }

    /* Hero (Üst Karşılama) Alanı */
    .combined-hero { padding-bottom: 40px !important; }
    .hero-content { padding: 20px 15px 0 !important; }
    .premium-title { font-size: 1.3rem !important; margin-bottom: 12px !important; }
    .brand-highlight { font-size: 1.7rem !important; }
    .hero-desc { font-size: 0.85rem !important; margin-bottom: 20px !important; line-height: 1.4 !important; }

    /* Uygulama İndirme Butonu ve Logosu */
    .app-download-area { margin-bottom: 30px !important; gap: 15px !important; }
    .app-logo-box { width: 80px !important; height: 80px !important; padding: 10px !important; border-radius: 20px !important; }
    .play-only-btn { font-size: 0.9rem !important; padding: 10px 20px !important; }

    /* Haberler Alanı ve Kategoriler */
    .news-section { padding: 20px 15px !important; }
    .section-title { font-size: 1.5rem !important; margin-bottom: 15px !important; }
    .categories { margin-bottom: 15px !important; }
    .category-btn { padding: 5px 12px !important; font-size: 0.75rem !important; }
    
    /* Haber Kartları - Çok daha kompakt */
    .news-grid { gap: 12px !important; grid-template-columns: 1fr !important; }
    .news-card { height: max-content !important; min-height: 0 !important; border-radius: 12px !important; } 
    .news-img { height: 160px !important; } /* Görsel yüksekliği düşürüldü */
    .news-content { padding: 12px !important; } /* İç boşluklar daraltıldı */
    .news-tag { font-size: 0.65rem !important; margin-bottom: 6px !important; }
    .news-title { font-size: 1rem !important; margin-bottom: 6px !important; line-height: 1.3 !important; }
    .news-desc { font-size: 0.85rem !important; margin-bottom: 8px !important; -webkit-line-clamp: 2 !important; } /* Açıklama 2 satıra düşürüldü */
    .news-meta { font-size: 0.7rem !important; padding-top: 10px !important; }

    /* Sayfalama (Pagination) */
    .pagination-container { margin-top: 25px !important; }
    .page-btn { padding: 6px 12px !important; font-size: 0.85rem !important; }
}


footer { background: #020617; color: white; text-align: center; padding: 30px; font-size: 0.9rem; }
footer img.footer-logo { height: 40px !important; width: auto !important; margin-bottom: 15px; display: block; margin-left: auto; margin-right: auto; }

/* =========================================
   ÇEREZ ONAY ÇUBUĞU
========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99999;
    font-size: 0.9rem;
    gap: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* Çerez Butonları */
.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-banner button {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s;
    font-size: 0.9rem;
}

/* Kabul Et Butonu */
.accept-btn {
    background: var(--primary);
    color: white;
    border: none;
}
.accept-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Reddet Butonu */
.reject-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-color);
}
.reject-btn:hover {
    background: var(--border-color);
}

@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cookie-banner button {
        width: 100%;
        padding: 12px;
    }
}

