/* MODERN DARK THEME - ANA STİL DOSYASI (V3.1 - FINAL) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --primary: #3b82f6;       /* Elektrik Mavisi */
    --accent: #8b5cf6;        /* Neon Mor */
    --text-main: #f1f5f9;     /* Beyazımsı Metin */
    --text-muted: #94a3b8;    /* Gri Metin */
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- ARKA PLAN VE SCROLL BAR --- */
.background-glow {
    position: fixed; top: -20%; left: -20%; width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1; filter: blur(80px); animation: moveGlow 15s infinite alternate;
}
@keyframes moveGlow { 0% { transform: translate(0, 0); } 100% { transform: translate(20%, 20%); } }

/* Okuma İlerleme Çubuğu */
#progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,0.05); z-index: 2000;
}
#progress-bar {
    height: 100%; background: var(--gradient); width: 0%; transition: width 0.1s;
}

/* --- GENEL DÜZEN (CONTAINER) --- */
.container {
    max-width: 1400px; /* Genişletilmiş Ekran */
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* --- HEADER & NAV --- */
.header {
    padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000;
    -webkit-backdrop-filter: blur(10px); /* Safari Desteği */
    backdrop-filter: blur(10px); 
    background: rgba(15, 23, 42, 0.85); border-bottom: 1px solid var(--glass-border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Space Grotesk'; font-size: 1.5rem; font-weight: 700; color: var(--text-main); text-decoration: none; }
.dot { color: var(--primary); }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: 0.3s; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }
.btn-cta { padding: 8px 20px; background: var(--gradient); color: white !important; border-radius: 50px; font-weight: 600; font-size: 0.9rem; }
.hamburger { display: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

/* --- HERO BÖLÜMÜ --- */
.hero-section {
    min-height: 50vh; display: flex; align-items: center; padding-top: 100px; padding-bottom: 40px;
}
.hero-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 20px; color: var(--primary); font-size: 0.8rem; font-weight: 600; margin-bottom: 15px; }
h1 { font-family: 'Space Grotesk'; font-size: 3rem; line-height: 1.1; margin-bottom: 10px; }
.subtitle { font-size: 1.1rem; color: var(--text-main); margin-bottom: 8px; }
.description { color: var(--text-muted); margin-bottom: 20px; max-width: 500px; font-size: 0.95rem; }
.hero-buttons { display: flex; gap: 10px; }
.btn { padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.btn-primary { background: var(--text-main); color: var(--bg-dark); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.1); }
.btn-outline { border: 1px solid var(--glass-border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.img-wrapper { position: relative; width: fit-content; margin: 0 auto; }
.img-wrapper img { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,0.1); box-shadow: 0 0 30px rgba(59, 130, 246, 0.2); }
.floating-card { 
    position: absolute; background: var(--bg-card); 
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); 
    border: 1px solid var(--glass-border); padding: 10px; border-radius: 10px; font-size: 1.5rem; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: float 6s ease-in-out infinite; 
}
.python-card { top: 15%; right: 0px; color: #fbbf24; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Daktilo İmleci */
.typewrite > .wrap { border-right: 2px solid var(--primary); padding-right: 5px; animation: blink 0.7s infinite; color: var(--text-main); font-weight: 600; }
@keyframes blink { 50% { border-color: transparent; } }

/* --- ANA BLOG DÜZENİ (3 SÜTUNLU GRID) --- */
.section { padding: 60px 0; }
.section-header { margin-bottom: 40px; }
.section-title { font-family: 'Space Grotesk'; font-size: 2rem; margin-bottom: 10px; }

.blog-layout {
    display: grid;
    /* Sol (Araçlar) - Orta (İçerik) - Sağ (Sidebar) */
    grid-template-columns: 260px 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Ara Başlık */
.sub-heading {
    font-size: 1.4rem; margin: 50px 0 25px 0; padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border); font-family: 'Space Grotesk'; color: var(--text-main);
}

/* 1. ÖNE ÇIKANLAR (Büyük Kartlar) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.featured-card .blog-thumb { height: 200px; font-size: 4rem; }
.featured-card h3 { font-size: 1.4rem; }

/* 2. STANDART LİSTE (Küçük Kartlar - Esnek Grid) */
.blog-list {
    display: grid;
    /* Kartlar ekrana göre otomatik sığsın (Min 280px) */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.blog-list .blog-thumb { height: 120px; font-size: 2rem; }
.blog-list h3 { font-size: 1.1rem; margin-bottom: 0; }
.blog-list p { display: none; } /* Küçük kartlarda metni gizle */

/* --- KART STİLLERİ --- */
.glass {
    background: var(--bg-card); 
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 16px; transition: 0.3s;
}
.blog-card { display: flex; flex-direction: column; gap: 15px; padding: 25px; height: 100%; }
.blog-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.blog-thumb {
    width: 100%; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--primary); background: rgba(59, 130, 246, 0.15);
}
.thumb-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent); }
.thumb-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.thumb-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.blog-content { display: flex; flex-direction: column; flex-grow: 1; }
.meta { display: flex; gap: 10px; align-items: center; margin-bottom: 5px; font-size: 0.8rem; }
.date { color: var(--text-muted); }
.category { font-weight: 600; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; }
.cat-blue { background: rgba(59, 130, 246, 0.2); color: var(--primary); }
.cat-purple { background: rgba(139, 92, 246, 0.2); color: var(--accent); }
.cat-red { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.cat-green { background: rgba(16, 185, 129, 0.2); color: #10b981; }

h3 { font-family: 'Space Grotesk'; color: var(--text-main); line-height: 1.3; }
p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; }

/* Modern Buton */
.btn-read-modern {
    margin-top: auto; width: 100%; padding: 12px 0;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
    border-radius: 10px; color: var(--text-main); font-weight: 600;
    cursor: pointer; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'Inter', sans-serif; font-size: 0.9rem; text-decoration: none;
}
.btn-read-modern:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); }

/* --- SOL MENÜ (ARAÇLAR) --- */
.tools-sidebar { /* Sabitlenmesi istenirse: position: sticky; top: 100px; */ }
.tools-widget h3 {
    font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border); color: var(--text-main); font-family: 'Space Grotesk';
}
.tool-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px; margin-bottom: 10px; text-decoration: none;
    color: var(--text-muted); border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05); background: rgba(30, 41, 59, 0.4);
    transition: all 0.3s ease;
}
.tool-btn:hover {
    background: var(--primary); color: white; transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); border-color: var(--primary);
}
.tool-icon { width: 30px; text-align: center; font-size: 1.1rem; }
.tool-title { flex-grow: 1; margin-left: 10px; font-size: 0.9rem; font-weight: 500; }
.arrow { font-size: 0.8rem; opacity: 0.5; }
.tool-btn:hover .arrow { opacity: 1; }

/* --- SAĞ SIDEBAR --- */
.sidebar { position: sticky; top: 100px; }
.sidebar-widget { padding: 25px; margin-bottom: 25px; }
.sidebar-widget h3 { font-size: 1.1rem; margin-bottom: 20px; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; color: var(--text-main); }
.cat-list { list-style: none; }
.cat-list li { margin-bottom: 12px; }
.cat-list a { display: flex; justify-content: space-between; color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: 0.2s; }
.cat-list a:hover { color: var(--primary); padding-left: 5px; }
.cat-list span { background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; }
.text-center { text-align: center; }
.small-text { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; }
.btn-sidebar { display: inline-block; background: #cc0000; color: white; padding: 8px 20px; border-radius: 5px; text-decoration: none; font-size: 0.9rem; font-weight: 600; }

/* --- FOOTER --- */
footer { text-align: center; padding: 40px 0; background: #0b1120; margin-top: 50px; }
.social-box { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.s-link { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: var(--text-main); text-decoration: none; transition: 0.3s; }
.s-link:hover { background: var(--gradient); transform: translateY(-3px); }
.copyright { color: var(--text-muted); font-size: 0.8rem; }

/* --- ORTAK EFEKTLER --- */
.hidden { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.show { opacity: 1; transform: translateY(0); }

.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px;
    background: var(--gradient); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999;
}
.back-to-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px); }

/* --- MODAL (POPUP) --- */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(15, 23, 42, 0.9); 
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); /* Safari Eklendi */
    z-index: 2100; /* Z-Index yükseltildi (Progress bar üstünde olması için) */
    display: none; justify-content: center; align-items: center; padding: 20px; 
    opacity: 0; transition: opacity 0.3s ease; 
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: #1e293b; max-width: 600px; width: 100%; padding: 40px; position: relative; border: 1px solid var(--primary); box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s ease; border-radius: 16px; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: var(--primary); }
#modal-title { font-size: 1.8rem; margin: 15px 0; color: var(--text-main); }
#modal-text { font-size: 1rem; line-height: 1.8; color: #cbd5e1; }

/* --- CUSTOM SCROLLBAR (Tüm Webkit Tarayıcılar İçin) --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 5px; border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- RESPONSIVE / MOBİL UYUMLULUK --- */

/* 1. Orta Boy Laptoplar (1500px altı) - Hafif Daraltma */
@media (max-width: 1500px) {
    .container { max-width: 95%; }
    .blog-layout { grid-template-columns: 220px 1fr 260px; gap: 20px; }
}

/* 2. Küçük Laptoplar / Tablet Yatay (1200px altı) - Sol Menüyü Gizle */
@media (max-width: 1200px) {
    .blog-layout { grid-template-columns: 1fr 300px; }
    .tools-sidebar { display: none; } /* Yer açmak için sol menüyü gizle */
    .featured-grid { grid-template-columns: 1fr; } /* Büyük kartlar alt alta */
}

/* 3. Tablet Dikey ve Telefonlar (900px altı) - Her Şey Alt Alta */
@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; 
        top: 100%; /* DÜZELTME: Header'ın tam altından başlasın */
        right: -100%; width: 100%; height: calc(100vh - 60px); /* Ekranın kalanını kapla */
        background: var(--bg-dark); flex-direction: column; justify-content: center; transition: 0.4s; z-index: 999;
        border-top: 1px solid var(--glass-border);
    }
    .nav-links.active { right: 0; }
    
    .hero-section { text-align: center; padding-top: 120px; }
    .hero-container { grid-template-columns: 1fr; gap: 30px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-buttons { justify-content: center; }
    .img-wrapper img { width: 180px; height: 180px; }
    
    /* Blog Düzeni */
    .blog-layout { grid-template-columns: 1fr; } /* Tamamen tek sütun */
    .sidebar { display: none; } /* Sağ menüyü de mobilde gizleyelim */
    
    /* Araçları mobilde geri getirebiliriz (Listede görünür) */
    .tools-sidebar { display: block; order: 2; margin-top: 30px; }
    .blog-main-content { order: 1; }
    
    .blog-list { grid-template-columns: 1fr; } /* Tekli kart */
}