/* =============================================================================
   SAFECOREX - MASTER CSS (FINAL FULL VERSION)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. GENEL AYARLAR, RESET VE SCROLL DÜZELTMESİ
   ----------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;800&display=swap');

* { box-sizing: border-box; }

:root { 
    --primary: #39ff14;         /* Neon Yeşil */
    --bg: #020205;              /* Derin Siyah */
    --glass: rgba(255,255,255,0.05); 
    --card-bg: #0d1117;         /* Koyu Kart Rengi */
    --border: #30363d;          /* Sınır Çizgileri */
}


body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh; /* Ekranı kapla ama içeriğe göre uza */
    background: var(--bg);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: auto; /* Body'den de engelle */
    position: relative;
    /* overflow-y: scroll;  <-- Bunu SİLDİK, tarayıcıya bıraktık */
}

/* Uzun kelimelerin taşmasını önle */
h1, h2, h3, p, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* =========================================
   2. HEADER (SİBER TASARIM)
   ========================================= */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 50px; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    /* Arka Plan & Izgara */
    background-color: rgba(2, 2, 5, 0.95);
    background-image: 
        linear-gradient(rgba(57, 255, 20, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    backdrop-filter: blur(10px);

    /* Neon Alt Çizgi */
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 4px 20px rgba(57, 255, 20, 0.15);
}

/* Dekoratif "SYS: ONLINE" Yazısı */
header::before {
    content: "SYS: ONLINE // SEC: HIGH";
    position: absolute;
    bottom: 2px;
    right: 50px;
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: var(--primary);
    opacity: 0.6;
    letter-spacing: 1px;
}

.logo-container { display: flex; align-items: center; text-decoration: none; z-index: 1003; /* Hamburgerin üstünde kalsın logo */ }
.logo-img { 
    height: 40px; 
    width: auto; 
    object-fit: contain; 
    filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.8)); 
    transition: 0.3s;
}
.logo-img:hover { filter: drop-shadow(0 0 15px rgba(57, 255, 20, 1)); transform: scale(1.05); }

/* Masaüstü Menü Linkleri */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a { 
    color: #c9d1d9; 
    text-decoration: none; 
    margin-left: 30px; 
    font-size: 1rem; 
    font-weight: 600; 
    transition: 0.3s;
    font-family: 'Fira Code', monospace; 
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-menu a:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary); }
.nav-menu a:hover::before {
    content: ">";
    position: absolute;
    left: -15px;
    color: var(--primary);
    animation: blink 0.5s infinite;
}

/* Admin Butonu */
.admin-btn { 
    border: 1px solid var(--primary); 
    padding: 8px 25px; 
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    background: rgba(57, 255, 20, 0.05);
    color: var(--primary) !important;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 10px rgba(57, 255, 20, 0.1);
    margin-left: 20px; /* Mobilde sıfırlanacak */
}
.admin-btn:hover {
    background: var(--primary);
    color: #000 !important;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.6);
    cursor: pointer;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* =========================================
   3. HERO (SİBER HACKER TASARIMI - SPLIT)
   ========================================= */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding-top: 100px; /* Header payı */
    width: 100%;
    position: relative;
    overflow: hidden;

    /* Arka Plan */
    background-color: #020205;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(57, 255, 20, 0.08) 0%, transparent 50%), /* Solda hafif yeşil ışık */
        linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* İç Kapsayıcı (Grid Yapısı) */
.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    padding: 0 40px;
    gap: 40px;
    z-index: 2;
}

/* --- SOL TARAF (METİNLER) --- */
.hero-content {
    flex: 1;
    text-align: left; /* Sola yasla */
}

.hero h1 { 
    font-family: 'Fira Code', monospace; 
    font-size: 3rem; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.highlight-text {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

.hero-sub { 
    font-family: 'Fira Code', monospace;
    color: #a0a0a0; 
    margin-bottom: 30px; 
    font-size: 1.1rem; 
    background: rgba(13, 17, 23, 0.8); 
    display: inline-block; 
    padding: 8px 15px;
    border-left: 3px solid var(--primary);
    border-radius: 0 4px 4px 0;
}
.hero-sub::after { content: "_"; animation: blink 1s infinite; color: var(--primary); }

.hero-btns {
    display: flex;
    gap: 15px;
}

/* --- SAĞ TARAF (THREAT MAP SİMÜLASYONU) --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cyber-map {
    width: 100%;
    max-width: 500px;
    height: 300px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 500" fill="%231b212c"><path d="M842 129c-3 1-5 4-5 7 0 3 2 5 5 5 2 0 4-2 4-5 0-3-2-6-4-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4-5 0-2-2-4-4-4zm-36 32c-2 0-4 2-4 5 0 2 2 4 4 4 3 0 5-2 5-4 0-3-2-5-5-5zm-99-65c-2 0-4 1-4 4 0 2 2 4 4 4 3 0 5-2 5-4 0-2-2-4-5-4z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.3));
    animation: mapFloat 6s ease-in-out infinite;
}

@keyframes mapFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Saldırı Noktaları (Kırmızı/Yeşil Pingler) */
.attack-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}
.attack-point::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 100%; height: 100%;
    border-radius: 50%; border: 1px solid var(--primary);
    animation: ping 2s infinite;
}

/* Konumlar */
.p1 { top: 30%; left: 20%; animation-delay: 0s; background: #ff3333; box-shadow: 0 0 10px #ff3333; }
.p1::after { border-color: #ff3333; }
.p2 { top: 40%; right: 25%; animation-delay: 0.5s; }
.p3 { bottom: 30%; left: 40%; animation-delay: 1.2s; background: #ff3333; box-shadow: 0 0 10px #ff3333; }
.p3::after { border-color: #ff3333; }
.p4 { top: 20%; right: 40%; animation-delay: 2s; }

@keyframes ping {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 400%; height: 400%; opacity: 0; }
}

/* Radar Tarama Efekti */
.radar-scan {
    position: absolute;
    top: 50%; left: 50%;
    width: 300px; height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(57, 255, 20, 0.1);
    background: conic-gradient(from 0deg, transparent 0%, rgba(57, 255, 20, 0.1) 50%, transparent 100%);
    animation: radarSpin 4s linear infinite;
    pointer-events: none;
}

@keyframes radarSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* MOBİL İÇİN DÜZENLEME */
@media (max-width: 900px) {
    .hero { padding-top: 100px; text-align: center; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; }
    .hero-btns { justify-content: center; }
    .hero h1 { font-size: 2rem; }
    .hero-visual { width: 100%; margin-top: 30px; }
    .cyber-map { height: 200px; }
}
/* =========================================
   HERO BUTONLARI (SİBER STİL)
   ========================================= */

/* Butonları yan yana diz */
.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

/* Genel Buton Yapısı */
.btn {
    position: relative;
    padding: 14px 40px;
    font-family: 'Fira Code', monospace; /* Yazılımcı fontu */
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
    
    /* Cyberpunk: Köşeleri Kesik Yapı */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    
    /* Varsayılan (Yeşil) Buton */
    color: var(--primary);
    border: 1px solid var(--primary);
    background: rgba(57, 255, 20, 0.05); /* Çok hafif yeşil zemin */
}

/* Yeşil Buton Hover (Üzerine Gelince) */
.btn:hover {
    background: var(--primary);
    color: #000; /* Yazı siyah olsun */
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6); /* Neon parlama */
    transform: translateY(-3px); /* Hafif yukarı kalksın */
}

/* İkinci Buton (Beyaz/Outline) */
.btn-outline {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Beyaz Buton Hover */
.btn-outline:hover {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

/* MOBİL İÇİN DÜZELTME */
@media (max-width: 900px) {
    .hero-btns {
        justify-content: center; /* Mobilde ortala */
        flex-wrap: wrap; /* Sığmazsa alt satıra geç */
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}
/* =========================================
   4. DİĞER BÖLÜMLER (İSTATİSTİK, HİZMETLER vb.)
   ========================================= */
.marquee { background: #000; padding: 20px 0; overflow: hidden; white-space: nowrap; border-top:1px solid #222; border-bottom:1px solid #222;}
.marquee-content { display: inline-block; animation: scroll 30s linear infinite; }
.brand-item { display: inline-block; font-size: 1.2rem; color: #555; margin: 0 40px; font-weight: bold; text-transform: uppercase; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.stats-section { padding: 80px 20px; display: flex; justify-content: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; width: 100%; max-width: 1200px; }
.stat-card {
    background: rgba(13, 17, 23, 0.8); border: 1px solid var(--border);
    border-radius: 12px; padding: 30px; text-align: left; transition: 0.3s;
    position: relative; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.stat-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.stat-icon { font-size: 1.5rem; margin-bottom: 15px; color: #00aaff; filter: drop-shadow(0 0 5px rgba(0, 170, 255, 0.5)); }
.stat-number { font-size: 3rem; color: #ffffff; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.stat-label { color: #8faab9; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.services { padding: 80px 20px; text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 50px; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 10px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.service-card {
    background: rgba(13, 17, 23, 0.6); border: 1px solid var(--border);
    border-radius: 12px; padding: 40px 30px; text-align: left; transition: 0.3s;
    position: relative; overflow: hidden;
}
.service-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); background: rgba(13, 17, 23, 0.9); }
.service-icon { font-size: 3rem; margin-bottom: 20px; display: block; text-shadow: 0 0 10px rgba(255,255,255,0.1); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: #fff; }
.service-card p { color: #8b949e; line-height: 1.6; font-size: 0.95rem; }

.blog { padding: 80px 20px; text-align: center; }
.blog-grid-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; max-width: 1200px; margin: 0 auto; }
.blog-card-home { background: var(--card-bg); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition:0.3s; text-align: left; }
.blog-card-home:hover { transform: translateY(-5px); border-color: var(--primary); }
.blog-card-home img { width: 100%; height: 200px; object-fit: cover; }
.blog-home-content { padding: 20px; }
.blog-home-content h3 { margin: 10px 0; font-size: 1.2rem; color: #fff; }

.portal-layout { max-width: 1300px; margin: 100px auto 50px; display: flex; gap: 30px; padding: 0 20px; align-items: start; }
.news-column { flex: 3; } 
.sidebar-column { flex: 1; }

.hero-card { height: 400px; background-size: cover; background-position: center; position: relative; border-radius: 8px; border: 1px solid #333; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); overflow: hidden; }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, #020205 0%, transparent 100%); padding: 30px; }
.hero-overlay h1 a { color: #fff; text-decoration: none; font-size: 2rem; text-shadow: 0 2px 10px #000; font-weight: 800; }
.cat-badge { background: var(--primary); color: #000; padding: 4px 10px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; display: inline-block; margin-bottom: 10px; border-radius: 4px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: 0.2s; display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.card-img { height: 180px; background-size: cover; background-position: center; }
.card-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cat-text { color: var(--primary); font-size: 0.75rem; font-weight: bold; text-transform: uppercase; display: block; margin-bottom: 5px; }
.news-card h3 a { color: #e6edf3; text-decoration: none; font-size: 1.1rem; display: block; font-weight: 600; line-height: 1.4; }
.meta { color: #8b949e; font-size: 0.8rem; margin-top: 10px; display: flex; align-items: center; gap: 5px; }

.widget { background: var(--card-bg); border: 1px solid var(--border); margin-bottom: 20px; border-radius: 6px; overflow: hidden; }
.widget-title { background: #161b22; padding: 12px 15px; margin: 0; font-size: 0.95rem; border-bottom: 1px solid var(--border); color: #e6edf3; font-weight: 600; }
.search-box { background: transparent; border: none; padding: 15px; width: 100%; color: #fff; outline: none; box-sizing: border-box; }
.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li a { display: flex; justify-content: space-between; padding: 12px 15px; color: #c9d1d9; text-decoration: none; border-bottom: 1px solid #21262d; font-size: 0.9rem; transition: 0.2s; }
.widget-list li:last-child a { border-bottom: none; }
.widget-list li a:hover { background: #161b22; color: var(--primary); padding-left: 20px; }
.ad-widget { padding: 30px 20px; text-align: center; border: 1px solid var(--primary); background: rgba(57, 255, 20, 0.02); }

.article-container { max-width: 800px; margin: 120px auto 50px; padding: 0 20px; }
.article-header { text-align: center; margin-bottom: 40px; }
.article-header h1 { font-size: 2.5rem; margin-top: 15px; line-height: 1.2; }
.article-image img { width: 100%; border-radius: 10px; margin-bottom: 30px; border: 1px solid var(--border); }
.article-content { font-size: 1.1rem; line-height: 1.8; color: #d0d7de; }

.binary-bg {
    position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: -2;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" transform="rotate(45)" opacity="0.1" version="1.1" xmlns="http://www.w3.org/2000/svg"><text x="10" y="50" font-size="40" fill="%2339ff14" font-family="monospace">1</text><text x="50" y="90" font-size="40" fill="%233b27ba" font-family="monospace">0</text></svg>');
    background-size: 100px 100px; opacity: 1; animation: rotate-code 120s linear infinite;
}
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, transparent 20%, #020205 90%); z-index: -1; pointer-events: none; }
@keyframes rotate-code { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

footer { position: relative; z-index: 100; text-align: center; padding: 40px 20px; color: #888; font-size: 0.9rem; border-top: 1px solid #222; background: #020205; margin-top: 50px; box-shadow: 0 -5px 20px rgba(0,0,0,0.5); }

.sso { padding: 80px 20px; text-align: center; }
.sso-box { border: 1px solid #3b27ba; padding: 40px; border-radius: 20px; max-width: 600px; margin: 0 auto; background: rgba(59,39,186,0.1); width: 100%; }

/* =========================================
   5. HAMBURGER MENÜ & MOBİL AYARLAR
   ========================================= */

/* Masaüstünde Hamburgeri Gizle */
.hamburger {
    display: none;
    cursor: pointer;
}

/* Hamburger Çizgileri */
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary);
    box-shadow: 0 0 5px var(--primary);
}

/* --- MOBİL GÖRÜNÜM (Tablet ve Telefon: 900px ve altı) --- */
@media (max-width: 900px) {
    /* Genel Header Ayarı: Mobilde padding azalt */
    header { padding: 15px 20px; }
    
    /* Hamburger ikonunu görünür yap */
    .hamburger {
        display: block;
        z-index: 1002;
    }

    /* Dekoratif yazıyı mobilde gizle (Çakışmayı önler) */
    header::before { display: none; }

    /* Menü Kapalıyken (Gizli) */
    .nav-menu {
        position: fixed;
        left: -100%; /* Ekranın soluna sakla */
        top: 0;
        flex-direction: column;
        justify-content: center; /* Dikey ortala */
        background-color: rgba(2, 2, 5, 0.98); 
        /* Siber Izgara Deseni */
        background-image: linear-gradient(rgba(57, 255, 20, 0.05) 1px, transparent 1px),
                          linear-gradient(90deg, rgba(57, 255, 20, 0.05) 1px, transparent 1px);
        background-size: 30px 30px;
        width: 100%;
        height: 100vh; /* Tam ekran yap */
        text-align: center;
        transition: 0.4s ease;
        padding-top: 0; /* Padding'i sıfırla, justify-content halledecek */
        z-index: 1001;
    }

    /* Menü Açıldığında */
    .nav-menu.active {
        left: 0;
    }

    /* Linklerin Mobildeki Görünümü */
    .nav-menu a {
        display: block;
        margin: 20px auto;
        font-size: 1.5rem;
        width: fit-content;
        margin-left: auto; /* Ortalamayı zorla */
    }

    /* Admin Butonu Mobilde */
    .admin-btn {
        margin: 30px auto 0; /* Ortala */
        display: inline-block;
        width: 200px;
    }

    /* Hamburger Animasyonu */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- İÇERİK DÜZENLEMELERİ --- */
    .hero { padding-top: 120px; }
    .hero h1 { font-size: 2.2rem; }
    .portal-layout { flex-direction: column; margin-top: 100px; }
    .stats-grid, .services-grid, .news-grid { grid-template-columns: 1fr; } /* Tek sütun */
    .sso-box { padding: 20px; }
}

/* Küçük Telefonlar İçin Ek Ayarlar (480px altı) */
@media (max-width: 480px) {
    .logo-img { height: 30px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
}


/* Arka plan animasyonunu mobilde kontrol altına al */
.binary-bg {
    width: 100%; /* Genişliği 200% yerine ekran boyutu yap */
    height: 100%;
    top: 0;
    left: 0;
    /* Mobilde animasyonun ekranı taşırmaması için: */
    max-width: 100vw; 
}

/* Mobilde uzun kelimelerin ekranı delmesini engelle */
h1, h2, h3, p, a {
    word-wrap: break-word; /* SafeCoreX gibi uzun kelimeleri kır */
    overflow-wrap: break-word;
}

/* Hero alanındaki başlık mobilde çok büyükse küçült */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem; /* Yazı fontunu güvenli boyuta çek */
    }
}
/* --- CYBER FOOTER TASARIMI --- */
footer.cyber-footer {
    background-color: #010103; /* Çok koyu siyah */
    border-top: 1px solid var(--primary); /* Üstte neon yeşil çizgi */
    color: #8b949e;
    padding: 60px 20px 20px;
    margin-top: 100px;
    position: relative;
    z-index: 10;
    
    /* Hafif Izgara Arka Planı */
    background-image: 
        linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Otomatik sığdır: Masaüstünde 3 sütun, mobilde 1 sütun */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 0;
    font-family: 'Fira Code', monospace;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #8b949e;
    text-decoration: none;
    transition: 0.3s;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px; /* Hover olunca hafif sağa kayar */
    text-shadow: 0 0 5px var(--primary);
}

.neon-text {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* Sistem Durumu Işığı */
.sys-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

/* Alt Telif Kısmı */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #161b22;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    opacity: 0.6;
}

/* Yanıp Sönme Animasyonu */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Mobil Ayarı (Center Text) */
@media (max-width: 600px) {
    .footer-container {
        text-align: center;
    }
    .footer-col h4 {
        border-left: none; /* Mobilde soldaki çizgiyi kaldır */
        border-bottom: 2px solid var(--primary); /* Altına çizgi ekle */
        display: inline-block;
        padding-bottom: 5px;
    }
    .sys-status {
        justify-content: center;
    }
}
/* --- KATEGORİ SAYISI NEON EFEKTİ --- */
.widget-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    transition: 0.3s;
}

.cat-count-neon {
    color: var(--primary); /* Neon Yeşil */
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    background: rgba(57, 255, 20, 0.1); /* Çok hafif yeşil arka plan */
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    
    /* PARLAMA EFEKTİ (Neon core) */
    text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary);
    box-shadow: inset 0 0 5px rgba(57, 255, 20, 0.2), 0 0 5px rgba(57, 255, 20, 0.1);
    
    transition: 0.3s;
}

.widget-list li a:hover .cat-count-neon {
    background: var(--primary);
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.1);
}
/* --- SafeCoreX PORTAL ANA YAPI --- */
.scx-portal-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    max-width: 1300px;
    margin: 110px auto 30px;
    padding: 0 20px;
}

/* Manşet Kartı */
.hero-card-scx {
    height: 480px;
    border-radius: 4px;
    position: relative;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.hero-overlay-scx {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(2, 2, 5, 1) 10%, transparent 100%);
}

.scx-summary { color: #a0a0a0; font-size: 1rem; margin: 15px 0; max-width: 85%; line-height: 1.5; }

.cat-badge-scx {
    background: var(--primary);
    color: #000;
    padding: 5px 15px;
    font-weight: 800;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

/* Sağdaki Hızlı Liste */
.side-news-list {
    background: rgba(13, 17, 23, 0.4);
    border: 1px solid var(--border);
    padding: 20px;
    backdrop-filter: blur(5px);
}

.side-title {
    color: var(--primary);
    border-bottom: 1px dashed var(--primary);
    padding-bottom: 12px;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    margin-bottom: 10px;
}

.side-item { padding: 12px 0; border-bottom: 1px solid #161b22; transition: 0.3s; }
.side-item:hover { transform: translateX(8px); }
.side-link { color: #fff; text-decoration: none; font-size: 0.95rem; font-weight: 500; display: block; }
.side-meta { color: #555; font-size: 0.75rem; margin-top: 4px; }
.side-cat { color: var(--primary); font-family: monospace; font-size: 0.75rem; }

/* Alt Arşiv Satırları */
.scx-list-container { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }

.scx-row {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.scx-row:hover { 
    border-color: var(--primary); 
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
    transform: scale(1.01);
}

.scx-row-img { width: 250px; min-width: 250px; background-size: cover; background-position: center; }
.scx-row-content { padding: 25px; flex: 1; }
.scx-row-cat { color: var(--primary); font-family: 'Fira Code', monospace; font-size: 0.75rem; font-weight: bold; }
.scx-row-content h3 a { color: #fff; text-decoration: none; margin: 10px 0; display: block; font-size: 1.3rem; }
.scx-row-content p { color: #8b949e; font-size: 0.9rem; margin-bottom: 15px; }

.scx-row-action { display: flex; align-items: center; padding: 0 25px; border-left: 1px solid #161b22; }
.scx-go-btn { color: var(--primary); font-size: 1.4rem; opacity: 0.6; transition: 0.3s; }
.scx-row:hover .scx-go-btn { opacity: 1; transform: rotate(90deg); }

/* Mobil Ayarlar */
@media (max-width: 900px) {
    .scx-portal-wrapper { grid-template-columns: 1fr; margin-top: 90px; }
    .scx-row { flex-direction: column; }
    .scx-row-img { width: 100%; height: 200px; }
    .scx-row-action { display: none; }
}
    .featured-title {
    color: #39ff14;
}

.featured-title a {
    color: #39ff14;
    text-decoration: none; /* istersek */
}
