/* =========================================
   1. GENEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --bg-dark: #0f172a;       /* Ana Arka Plan (Koyu Lacivert) */
    --bg-card: #1e293b;       /* Kart Arka Planı */
    --primary: #3b82f6;       /* Ana Renk (Mavi) */
    --accent: #10b981;        /* Vurgu Rengi (Yeşil) */
    --purple: #8b5cf6;        /* Mor (Oyun/Tasarım için) */
    --text-main: #f1f5f9;     /* Ana Metin Rengi (Beyazımsı) */
    --text-muted: #94a3b8;    /* Soluk Metin Rengi (Gri) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* =========================================
   2. NAVBAR (ÜST MENÜ)
   ========================================= */
.navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.brand span { color: var(--primary); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.btn-login {
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: white;
}
.btn-login:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* =========================================
   3. ANA SAYFA (HERO & GENEL)
   ========================================= */
.hero {
    text-align: center;
    padding: 6rem 1rem;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 70%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* =========================================
   4. KARTLAR VE GRID SİSTEMİ
   ========================================= */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

/* Ana Sayfa Sağ Taraftaki 3'lü Kart Yapısı */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #334155;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   5. HABERLER SAYFASI TASARIMI
   ========================================= */
.news-hero {
    position: relative;
    height: 50vh;
    background: url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 10%;
    color: white;
    margin-bottom: 3rem;
}
.news-hero .overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.4) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-content h1 { font-size: 3rem; margin: 1rem 0; line-height: 1.2; }
.meta-info { display: flex; gap: 1.5rem; color: #cbd5e1; font-size: 0.9rem; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}
.news-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.card-image { height: 200px; position: relative; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-card:hover .card-image img { transform: scale(1.1); }

.category-badge { background: var(--primary); color: white; padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom:0.5rem; }
.badge { position: absolute; top: 15px; right: 15px; padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; color: white; z-index: 10; }
.badge.blue { background: var(--primary); }
.badge.green { background: var(--accent); }
.badge.purple { background: var(--purple); }
.badge.red { background: #ef4444; }

.card-body { padding: 1.5rem; }
.card-footer { display: flex; justify-content: flex-end; border-top: 1px solid #334155; padding-top: 1rem; margin-top: 1rem; }

/* =========================================
   6. FOOTER TASARIMI
   ========================================= */
.site-footer {
    background-color: #0b1120;
    color: #94a3b8;
    padding-top: 4rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
    font-size: 0.95rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-brand { font-size: 1.8rem; font-weight: 800; color: #f1f5f9; margin-bottom: 1rem; }
.footer-brand span { color: var(--primary); }
.footer-col h4 { color: #f1f5f9; font-size: 1.2rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: white; margin-left: 5px; }
.social-icons { display: flex; gap: 10px; margin-bottom: 1rem; }
.social-btn {
    width: 40px; height: 40px;
    background: #1e293b;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #334155;
}
.social-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.footer-bottom { background: #020617; padding: 1.5rem; text-align: center; border-top: 1px solid #1e293b; font-size: 0.85rem; }

/* =========================================
   7. ANA SAYFA DÜZENİ (SIDEBAR + İÇERİK) - GRID VERSİYONU
   ========================================= */
/* Burayı CSS Grid'e çevirdik, artık kayma yapamaz */
.main-layout {
    display: grid;
    /* 1. Sütun (Sidebar): 300px Sabit
       2. Sütun (İçerik): Geri kalan her yer (1fr) */
    grid-template-columns: 320px 1fr; 
    gap: 2rem;
    align-items: start; /* Yukarı hizalı olsun */
    width: 100%;
    margin-top: 2rem;
}

/* Sidebar Tasarımı */
.sidebar {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #334155;
    position: sticky; /* Sayfa kayınca sabit kalsın */
    top: 100px;
    height: fit-content;
}

.sidebar h3 {
    font-size: 1.1rem;
    color: var(--primary);
    border-bottom: 2px solid #334155;
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Mini Haber Kartları */
.mini-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    align-items: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: 0.3s;
    border: 1px solid transparent; 
}
.mini-news-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(5px);
}
.mini-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0; 
}
.mini-content { display: flex; flex-direction: column; }
.mini-content h4 { font-size: 0.9rem; color: var(--text-main); line-height: 1.4; margin-bottom: 4px; font-weight: 600; }
.mini-content span { font-size: 0.75rem; color: var(--text-muted); }

/* Sağ Taraf */
.content-area {
    width: 100%;
}

/* MOBİL UYUMLULUK */
@media (max-width: 968px) {
    .navbar { flex-direction: column; gap: 1rem; }
    .nav-links { gap: 1rem; font-size: 0.9rem; }
    .hero h1 { font-size: 2.5rem; }
    
    /* Grid Sistemini Mobilde Alt Alta Yap */
    .main-layout {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
    }
    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
    }
}