:root {
    /* 🔵 Orijinal Renk Paleti */
    --primary-orange: #f97316;
    --primary-glow: rgba(249, 115, 22, 0.4);
    --corporate-blue: #2563eb;
    --sidebar-bg: #0f172a;
    
    /* 🟢 GÜNCELLENEN ARKA PLAN */
    --bg-gradient: linear-gradient(135deg, #1a2332 0%, #3f4c77 100%);

    --card-border: rgba(255, 255, 255, 0.12);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger-red: #ef4444;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}

/* 🟢 BODY AYARLARI */
body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-gradient); 
    color: var(--text-main); 
    min-height: 100vh; 
    overflow-y: auto; 
    overflow-x: hidden; 
}
.hidden { display: none !important; }

/* 🟢 ÜST BAR */
.mobile-top-bar { 
    display: flex !important; 
    justify-content: flex-end; 
    padding: 20px 40px; 
    background: transparent; 
    width: 100%;
    z-index: 100;
}
.menu-toggle, .mobile-logo { display: none; } 

.mobile-profile {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}
.mobile-profile:hover { transform: scale(1.1); box-shadow: 0 0 20px var(--primary-glow); }
.user-avatar-small { width: 100%; height: 100%; object-fit: cover; }

/* 🟢 MODERN SIDEBAR & DIVIDER */
.app-layout { display: flex; min-height: 100vh; width: 100vw; }
.sidebar { 
    width: 280px; 
    background: var(--sidebar-bg); 
    border-right: 1px solid rgba(255,255,255,0.05); 
    display: flex; 
    flex-direction: column; 
    padding: 30px 20px; 
    z-index: 1001; 
    transition: var(--transition); 
}

.main-content { 
    flex: 1; 
    padding: 0; 
    overflow-y: auto; 
    text-align: center; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
}

.sidebar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.logo { 
    display: flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    color: var(--primary-orange); 
    font-weight: 800; 
    font-size: 1.1rem; 
    cursor: pointer; 
    white-space: nowrap; 
}

.nav-logo-img { 
    height: 38px; 
    width: 38px;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
    object-fit: cover;
}

.close-menu { 
    display: none; 
    background: rgba(255,255,255,0.05); border: none; color: white; width: 35px; height: 35px; border-radius: 8px; font-size: 1.2rem; cursor: pointer; align-items: center; justify-content: center; 
}

.nav-links li { 
    padding: 14px 15px; 
    border-radius: 12px; 
    cursor: pointer; 
    list-style: none; 
    margin-bottom: 6px; 
    font-weight: 500; 
    color: var(--text-muted); 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    transition: var(--transition); 
    position: relative; 
    overflow: hidden;
}
.nav-links li:hover { background: rgba(255, 255, 255, 0.05); color: white; transform: translateX(5px); }
.nav-links li span { font-size: 1.1rem; }

/* 🔵 KURUM IZGARASI (AYARLAR KESİNLİKLE KORUNDU) */
#grid-container, #eligibility-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 25px; 
    width: 90%; 
    max-width: 1400px; 
    margin: 10px auto; 
}

/* 🟢 BUTON PARLAMALARI VE EFEKTLERİ */
.btn-primary { 
    background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(10px); border: 1px solid var(--card-border); color: white; 
    padding: 40px 20px; border-radius: 24px; font-weight: 700; cursor: pointer; display: flex; 
    flex-direction: column; align-items: center; gap: 15px; position: relative; transition: var(--transition); overflow: hidden; 
}
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.15), transparent); transition: 0.6s;
}
.btn-primary:hover::before, .btn-primary:active::before { left: 100%; }
.btn-primary:hover, .btn-primary:active { border-color: var(--primary-orange); transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); box-shadow: 0 10px 40px var(--primary-glow); }

.btn-icon { font-size: 3rem; opacity: 0.8; transition: var(--transition); filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); }
.btn-primary:hover .btn-icon, .btn-primary:active .btn-icon { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 15px var(--primary-orange)); }

.btn-text { font-size: 1.1rem; letter-spacing: -0.5px; color: var(--text-muted); transition: var(--transition); line-height: 1.3; }
.btn-primary:hover .btn-text, .btn-primary:active .btn-text { color: white; }

.q-badge { 
    position: absolute; top: 12px; right: 12px; 
    background: rgba(249, 115, 22, 0.15); 
    color: var(--primary-orange); 
    padding: 4px 10px; border-radius: 100px; 
    font-size: 0.7rem; font-weight: 800; 
    border: 1px solid rgba(249, 115, 22, 0.3); 
    animation: q-blink 0.6s infinite alternate ease-in-out; 
}

/* 🔴 SORU EKRANI STİLLERİ */
.quiz-card, .layered-card { 
    background: rgba(30, 41, 59, 0.75) !important; 
    backdrop-filter: blur(20px); 
    padding: 40px; 
    border-radius: 32px; 
    border: 1px solid var(--card-border); 
    max-width: 900px; 
    margin: 40px auto; 
    text-align: left;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4); 
}

.header-badges { display: flex; gap: 15px; margin-bottom: 25px; align-items: center; flex-wrap: nowrap; justify-content: space-between; }
.question-actions { display: flex !important; gap: 12px; }
.action-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.action-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--card-border); color: var(--text-muted); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.action-count { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); }
.pop-anim { animation: jumpPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes jumpPop { 0% { transform: scale(1); } 50% { transform: scale(1.4) translateY(-5px); } 100% { transform: scale(1); } }

.counter-frame, .diff-pill { 
    font-size: 0.85rem; padding: 6px 15px; border-radius: 8px; font-weight: 700; color: var(--text-muted); background: rgba(255,255,255,0.05);
    white-space: nowrap; /* Metni tek satıra zorlar */
    flex-shrink: 0; /* Flexbox içinde sıkışmasını engeller */
}

.diff-easy { background: #10b981; color: white; } .diff-medium { background: #f59e0b; color: white; } .diff-hard { background: #ef4444; color: white; }

.pure-red-text { color: var(--danger-red); font-weight: 900; font-size: 0.9rem; letter-spacing: 1.5px; display: block; margin-bottom: 10px; }
#question-text { font-size: 1.6rem; font-weight: 800; line-height: 1.4; color: white; margin-bottom: 30px; }

.sim-box { padding: 22px; border-radius: 18px; border-left: 6px solid; margin-bottom: 20px; background: rgba(15, 23, 42, 0.4); line-height: 1.6; }
.strong { border-color: #10b981 !important; }
.weak { border-color: #f59e0b !important; }
.fail { border-color: #ef4444 !important; }

.status-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.status-tam { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; }
.status-dusuk { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); color: #f59e0b; }
.status-elenme { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #ef4444; }

.komisyon-wrapper { display: block; width: 100%; margin-top: 15px; padding: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; font-size: 0.9rem; line-height: 1.5; }

.button-group { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: nowrap; width: 100%; }
.button-group button { flex: 1; height: 55px; border-radius: 14px; font-weight: 800; cursor: pointer; border: none; color: white; white-space: nowrap; }
.btn-next-blue { background: linear-gradient(135deg, var(--corporate-blue), #1d4ed8); }
.btn-show { background: var(--primary-orange); } .btn-prev { background: transparent; border: 1px solid var(--card-border) !important; }
.btn-home-back { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--card-border); padding: 10px 20px; border-radius: 10px; font-weight: 600; margin: 30px auto 100px auto; display: block; cursor: pointer; }

/* ⚖️ UYGUNLUK TESTİ (WIZARD) ÖZEL BUTONLARI */
.btn-wizard-option {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--card-border); color: white; padding: 22px; 
    border-radius: 18px; font-weight: 600; cursor: pointer; transition: var(--transition); text-align: left; display: flex; align-items: center; gap: 15px; width: 100%;
}
.btn-wizard-option:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--corporate-blue); transform: translateX(8px); }

/* 🐦‍⬛ LOGOYU ORTALAYAN KRİTİK ALAN (KUŞU BURASI DÜZELTİR) */
.footer-social { 
    position: relative; margin-top: auto; padding: 60px 0; 
    display: flex; justify-content: center; gap: 35px; 
    background: rgba(15, 23, 42, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

.divider-logo-wrapper { 
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); 
    background: #232c45; padding: 8px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.05); 
    display: flex; align-items: center; justify-content: center; z-index: 10; 
}
.divider-logo-img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-orange); }

.social-link { color: var(--text-muted); font-size: 1.8rem; transition: var(--transition); text-decoration: none; }
.social-link:hover { color: var(--primary-orange); transform: translateY(-5px); filter: drop-shadow(0 0 10px var(--primary-glow)); }

/* 📱 MOBİL ÖZEL AYARLAR */
@media (max-width: 900px) {
    .sidebar { position: fixed; left: -280px; top: 0; bottom: 0; box-shadow: 20px 0 50px rgba(0,0,0,0.5); }
    .sidebar.active { left: 0; }
    
    /* 🛡️ MOBİL ALAN YÖNETİMİ REVİZYONU */
    .main-content { padding: 0 10px 20px 10px; } 
    .quiz-card, .layered-card { padding: 25px 15px !important; } /* Padding daraltılarak yer açıldı */
    .header-badges { gap: 6px !important; } /* Sayaç ve etiket arası boşluk optimize edildi */
    .question-actions { gap: 6px !important; } /* Reaksiyon butonları arası boşluk optimize edildi */
    .counter-frame { font-size: 0.75rem !important; } /* Yazı boyutu hafif küçültülerek tek satır mühürlendi */

    .mobile-top-bar { display: flex !important; align-items: center; justify-content: space-between; padding: 10px 15px; background: #0f172a; position: sticky; top: 0; z-index: 100; width: 100%; border-bottom: 1px solid var(--card-border); }
    .menu-toggle { display: flex !important; background: transparent; border: none; color: white; font-size: 2rem; }
    .mobile-logo { display: block !important; font-size: 1rem; font-weight: 800; }
    #grid-container, #eligibility-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; width: 95%; }
    
    .button-group { 
        flex-direction: row !important; 
        gap: 8px !important; 
    }
    
    .button-group button {
        font-size: 0.75rem !important; 
        padding: 0 5px !important; 
        min-width: 0; 
    }
}

@keyframes q-blink { 0% { opacity: 0.4; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }