/* =============================================== */
/* style.css - NİHAİ SÜRÜM                         */
/* =============================================== */

/* --- 1. TEMEL DEĞİŞKENLER VE GENEL STİLLER --- */
:root { 
    --dark-bg: #060709; 
    --primary-blue: #00aeff; 
    --light-text: #e0e0e0; 
    --card-bg: #101827; 
    --border-color: #2a3a50; 
    --text-muted: #8a99b0;
    --error-red: #e53e3e;
    --success-green: #2ea043;
    --code-bg: #0d1117;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; 
    background-color: var(--dark-bg); 
    color: var(--light-text); 
    line-height: 1.6; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

h2.section-title { 
    color: var(--primary-blue); 
    font-size: 2.5rem; 
    text-align: center; 
    padding-bottom: 1rem; 
    border-bottom: 2px solid var(--border-color); 
    margin-bottom: 3rem; 
}

section { 
    padding: 5rem 0; 
}

main {
    padding-top: 80px; 
}

footer { 
    text-align: center; 
    padding: 2rem 0; 
    background-color: var(--card-bg); 
    border-top: 1px solid var(--border-color); 
    margin-top: 5rem; 
}

/* --- 2. NAVBAR (TÜM SAYFALAR İÇİN ORTAK) --- */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 1.5rem; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0; 
    background-color: rgba(6, 7, 9, 0.9); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    border-bottom: 1px solid var(--border-color); 
}
.navbar .logo-container { display: flex; align-items: center; text-decoration: none; }
.navbar .logo-img { height: 35px; margin-right: 10px; }
.navbar .logo-text { font-size: 1.2rem; font-weight: bold; color: var(--light-text); }
.navbar .nav-links { list-style: none; display: flex; align-items: center;}
.navbar .nav-links li { margin: 0 0.5rem; }
.navbar .nav-links a { color: var(--light-text); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; padding: 0.5rem; }
.navbar .nav-links a:hover { color: var(--primary-blue); }

.nav-links .dropdown { position: relative; }
.nav-links .dropdown .dropdown-toggle::after { content: ' ▼'; font-size: 0.7em; transition: transform 0.3s ease; display: inline-block;}
.nav-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    padding: 1rem 0;
    margin-top: 10px;
    min-width: 220px;
    z-index: 1001;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
.nav-links .dropdown-menu li { margin: 0; width: 100%; }
.nav-links .dropdown-menu li a { display: block; padding: 0.75rem 1.5rem; width: 100%; text-align: left; white-space: nowrap; color: var(--light-text); }
.nav-links .dropdown-menu li a:hover { background-color: var(--primary-blue); color: var(--dark-bg) !important; }

/* JavaScript ile .active sınıfı eklenince alt menüyü göster (Masaüstü + Mobil) */
.nav-links .dropdown.active .dropdown-menu {
    display: block;
}

#hamburger-menu { display: none; font-size: 1.8rem; background: none; border: none; color: var(--light-text); cursor: pointer; z-index: 1002; }

/* --- 3. ANA SAYFA STİLLERİ (index.html) --- */
.about-container { max-width: 800px; margin: 0 auto; text-align: center;}
.about-container h2 { margin-bottom: 1rem; }
.about-container p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; min-height: 200px; }
.article-card-link { text-decoration: none; color: inherit; display: flex; }
.article-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; width: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.article-card-link:hover .article-card { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0, 174, 255, 0.1); }
.article-card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-card-content h3 { color: var(--primary-blue); font-size: 1.4rem; margin-bottom: 0.75rem; }
.article-card-content .excerpt { font-size: 0.95rem; color: var(--light-text); flex-grow: 1; margin-bottom: 1rem; }
.article-card-footer { background-color: #0c1421; padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; align-items: center; }
.author-info { display: flex; align-items: center; }
.author-info img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-blue); margin-right: 12px; }
.author-details { display: flex; flex-direction: column; }
.author-details .author-name { font-weight: bold; color: var(--light-text); font-size: 0.9rem; }
.author-details .publish-date { font-size: 0.8rem; color: var(--text-muted); }
.loading-message, .no-articles-message { text-align: center; font-size: 1.2rem; color: var(--text-muted); width: 100%; grid-column: 1 / -1; }

/* --- 4. EKİP SAYFASI STİLLERİ (team.html) --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.team-member-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; text-align: center; padding: 2.5rem 2rem; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-member-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0, 174, 255, 0.1); }
.team-member-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary-blue); margin-bottom: 1.5rem; align-self: center; }
.team-member-card h3 { color: var(--light-text); font-size: 1.5rem; margin-bottom: 0.25rem; }
.team-member-card .role { color: var(--primary-blue); font-style: italic; font-size: 1rem; margin-bottom: 1rem; }
.team-member-card .bio { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.social-links a { color: var(--text-muted); margin: 0 0.75rem; text-decoration: none; transition: color 0.3s ease; }
.social-links a:hover { color: var(--primary-blue); }
.social-links svg { width: 24px; height: 24px; }

/* --- 5. FORM SAYFALARI STİLLERİ (login.html, contact.html) --- */
main.form-main { flex-grow: 1; display: flex; justify-content: center; align-items: center; }
.form-container { background-color: var(--card-bg); padding: 3rem; border-radius: 10px; border: 1px solid var(--border-color); width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.login-container { max-width: 450px; }
.contact-container { max-width: 700px; }
.form-container h1 { text-align: center; color: var(--primary-blue); font-size: 2rem; margin-bottom: 1.5rem; }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.input-group input, .input-group textarea { width: 100%; padding: 0.8rem 1rem; background-color: var(--dark-bg); border: 1px solid var(--border-color); border-radius: 5px; color: var(--light-text); font-size: 1rem; transition: border-color 0.3s ease; }
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--primary-blue); }
.input-group textarea { min-height: 150px; resize: vertical; }
.btn-submit { width: 100%; padding: 0.9rem; background-color: var(--primary-blue); color: #fff; border: none; border-radius: 5px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease; display: flex; justify-content: center; align-items: center; }
.btn-submit:hover { background-color: #008cdd; }

/* --- 6. TEK VE BİRLEŞTİRİLMİŞ MOBİL UYUMLULUK BLOKU --- */
@media (max-width: 768px) {
    /* Genel ayarlar */
    .container { padding: 0 1rem; }
    h2.section-title { font-size: 2rem; }
    main { padding-top: 60px; }
    section { padding: 3rem 0; }

    /* Navbar mobil ayarları */
    .navbar { padding: 0.75rem 1rem; }
    .navbar .logo-container { flex-grow: 1; }
    #hamburger-menu { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--card-bg);
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; margin: 0; }
    .nav-links li a { display: block; text-align: left; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); }
    .nav-links li:last-child a { border-bottom: none; }
    
    /* --- DÜZELTME: Hatalı ve gereksiz satırlar buradan kaldırıldı --- */
    
    .nav-links .dropdown.active .dropdown-toggle::after { transform: rotate(180deg); }
    
    .nav-links .dropdown-menu {
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        background-color: rgba(0,0,0,0.2);
        padding: 0;
        margin-top: 0;
        border-radius: 0;
    }
    .nav-links .dropdown-menu a { padding-left: 2.5rem; border-bottom: 1px solid var(--border-color); }
    
    /* Diğer sayfaların mobil ayarları */
    .articles-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-container p { font-size: 1rem; }
    .team-grid { grid-template-columns: 1fr; }
    .form-container { padding: 2rem 1.5rem; }
}