:root {
    --primary-blue: #23618a;    /* Logondaki orta mavi */
    --dark-blue: #163a54;       /* Logondaki lacivert tonu */
}
/* --- GENEL AYARLAR --- */
body {
    margin: 0;
    padding: 0;
    padding-top: 80px; /* İŞTE SİHİR: En üste logo için 80 piksellik görünmez bir güvenlik bölgesi açtık! */
    box-sizing: border-box;
    background-color: #121212;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', sans-serif; /* Daha modern ve keskin */
    -webkit-font-smoothing: antialiased; /* Yazıların daha pürüzsüz görünmesini sağlar */
}

.hidden { display: none !important; }

/* --- SOLETIA LOGOSU --- */
.soletia-brand {
    position: absolute; /* Tekrar ekranın sol üst köşesine çiviledik! */
    top: 30px;
    left: 40px;
    color: var(--primary-blue); /* Yazı rengini mavi yaptık */
    margin: 0; /* Eski hizalama kodlarını sildik */
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Daha akıcı geçiş */
    backface-visibility: hidden; /* Bulanıklığı engeller */
    transform: translateZ(0); /* Ekran kartını zorla devreye sokar, yazıyı net tutar */
    will-change: transform; /* Tarayıcıyı önceden uyarır */
}
.soletia-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.5); 
}
.brand-name {
    color: white !important;
    text-shadow: 0 0 15px rgba(35, 97, 138, 0.4);
}
.brand-suffix {
    font-size: 14px;
    color: #888;
    font-weight: 300;
    border-left: 2px solid #444;
    padding-left: 8px;
}

/* --- ORTAK EKRAN TASARIMI --- */
.screen {
    text-align: center;
    background-color: #1e1e1e;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 600px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.uni-btn, .program-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue)) !important;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Daha akıcı geçiş */
    backface-visibility: hidden; /* Bulanıklığı engeller */
    transform: translateZ(0); /* Ekran kartını zorla devreye sokar, yazıyı net tutar */
    will-change: transform; /* Tarayıcıyı önceden uyarır */
}

.uni-btn:hover, .program-btn:hover { 
    background-color: #45a049; 
    transform: translateY(-3px); /* Scale (büyütme) yerine sadece yukarı kaydırma kullanmak daha nettir */
    box-shadow: 0 8px 20px rgba(35, 97, 138, 0.4);
}

.back-btn {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #aaa;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}
.back-btn:hover { background-color: #333; color: white; }

/* --- DERS KARTLARI --- */
.course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.course-card {
    background-color: #2a2a2a;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.course-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px); /* Scale (büyütme) yerine sadece yukarı kaydırma kullanmak daha nettir */
    box-shadow: 0 8px 20px rgba(35, 97, 138, 0.4);
    box-shadow: 0 5px 15px rgba(22, 58, 84, 0.3);
}

/* --- DASHBOARD (PC İÇİN) --- */
.dashboard {
    display: flex;
    width: 90vw;
    height: 85vh;
    background-color: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sidebar {
    width: 25%;
    background-color: #2a2a2a;
    padding: 30px;
    border-right: 2px solid #333;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.sidebar h3 { font-size: 24px; margin-bottom: 20px; color: var(--primary-blue); }

.main-panel {
    width: 75%;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* --- TABS (SEKMELER PC İÇİN) --- */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
}

.tab-btn {
    background-color: transparent;
    color: #aaa;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 30px;
    font-size: 18px; 
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}
.tab-btn:hover { color: white; }
.tab-btn.active {
    color: white !important;
    border-bottom: 3px solid var(--primary-blue) !important;
}

/* --- QUIZ SETTINGS (PC İÇİN) --- */
#content-quiz {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
    max-height: 100%; 
    overflow-y: auto; 
    padding-bottom: 20px; 
}

.quiz-settings {
    display: flex;
    flex-direction: column; 
    gap: 20px; 
    margin-top: 10px; 
    margin-bottom: 15px; 
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
    width: 100%;
    max-width: 500px; 
    margin-left: auto;
    margin-right: auto;
}

.setting-group {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.setting-group label {
    margin-bottom: 12px;
    color: #aaa;
    font-size: 16px;
    font-weight: bold;
}

.setting-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.setting-btn {
    background-color: #2a2a2a;
    color: white;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1; 
    min-width: 70px;
    margin: 0;
}
.setting-btn:hover { border-color: #777; }
.setting-btn.active {
    background-color: #23618a;
    border-color: #23618a;
    color: white;
    font-weight: bold;
    transform: scale(1.05);
}

/* Zorluk Rozetleri (Badges) Genel Stil */
.difficulty-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: white; /* Yazılar hep beyaz kalsın */
}

/* İstediğin Özel Renkler */
.difficulty-badge.easy {
    background-color: #2e7d32; /* Yeşil */
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.4);
}

.difficulty-badge.medium {
    background-color: #ff9800; /* Turuncu */
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
}

.difficulty-badge.hard {
    background-color: #d32f2f; /* Kırmızı */
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.4);
}

/* --- START QUIZ BUTONU (PC İÇİN) --- */
.start-quiz-btn {
    background-color: #23618a;
    font-size: 18px; 
    padding: 12px 35px; 
    margin-top: 10px; 
    margin-bottom: 20px;
    border-radius: 10px; 
    cursor: pointer;
    border: none;
    color: white;
    font-weight: bold;
    box-shadow:#163a54 0px 4px 15px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Daha akıcı geçiş */
    backface-visibility: hidden; /* Bulanıklığı engeller */
    transform: translateZ(0); /* Ekran kartını zorla devreye sokar, yazıyı net tutar */
    will-change: transform; /* Tarayıcıyı önceden uyarır */
    width: fit-content; 
}
.start-quiz-btn:hover {
    background-color: #1d4f70;
    transform: translateY(-3px) scale(1.02); 
    box-shadow: #163a54;
}


/* --- FULLSCREEN QUIZ (AKTİF OYUN EKRANI) --- */
.fullscreen-quiz {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #121212;
    z-index: 2000; /* Logonun ve diğer her şeyin üstünü örter */
    display: flex;
    flex-direction: column;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #1a1a1a;
    border-bottom: 2px solid #333;
}
.close-quiz-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.quiz-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}
#question-text {
    font-size: 22px; 
    margin-bottom: 10px;
    margin-top: 5px;
    text-align: center;
    color: #fff;
    line-height: 1.4;
}

.options-grid {
    width: 100%;           /* Grid'in kendisi de taşmasın */
    padding: 0 10px;       /* Sağdan soldan biraz nefes payı bırak */
    box-sizing: border-box;
    display: flex;         /* Mobilde grid yerine flex bazen daha garantidir */
    flex-direction: column;
    gap: 8px;
}

.option-btn {
    width: 100%;
    max-width: 100%;
    background-color: #1e1e1e;
    border: 2px solid #333;
    padding: 10px 12px;
    margin: 0;
    word-wrap: break-word;
    font-size: 16px; 
    text-align: left;
    color: white;
    cursor: pointer;
    border-radius: 8px; 
    transition: all 0.2s ease; 
}
.option-btn:hover {
    background-color: #2a2a2a;
    border-color: #555;
}
.option-btn.correct { background-color: #4CAF50 !important; border-color: #4CAF50 !important; }
.option-btn.wrong { background-color: #f44336 !important; border-color: #f44336 !important; }

.quiz-footer {
    padding: 5px 15px; /* Alt barın etini kestik */
    height: 60px; /* Sabit bir yükseklik verdik */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #1a1a1a;
    border-top: 2px solid #333;
}
#score-text { font-size: 24px; font-weight: bold; color: #4CAF50; }
#next-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
}


/* =======================================================
   MÜKEMMEL ALTIN ORAN: MOBİL GÖRÜNÜM KODLARI 
   ======================================================= */
@media (max-width: 600px) {
    /* 1. ÇİFT KAYDIRMA ÇUBUĞUNU (DOUBLE SCROLLBAR) YOK EDELİM */
    body {
        padding-top: 15px; 
        height: 100vh; /* Ekranın boyunu tam 100% olarak sabitler */
        overflow: hidden; /* DIŞARIDAKİ GEREKSİZ KAYDIRMA ÇUBUĞUNU ÖLDÜRÜR! */
        justify-content: flex-start; /* Elemanları yukarıdan aşağıya dizer */
    }

    /* 2. Logo tam ortada ve kibar dursun */
    .soletia-brand { 
        position: relative; 
        top: auto; 
        left: auto;
        align-self: center; 
        margin: 0 auto 10px auto; /* Boşlukları daralttık */
    }
    .brand-name { font-size: 20px; }
    .brand-suffix { font-size: 13px; }

    /* 3. Dashboard panelimiz dışarı taşmadan kalan boşluğu doldursun */
    .dashboard {
        flex-direction: column;
        width: 95vw; 
        height: auto; 
        flex-grow: 1; /* İŞTE SİHİR: Ekranda kalan tüm boşluğu zekice doldurur */
        margin-bottom: 15px; 
        max-height: none; 
    }

    /* ... BUNDAN SONRAKİ KISIMLARA (Sidebar, Buttons vs.) DOKUNMA ... */

    /* Kutuların İçindeki Yazılar */
    .setting-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 8px; 
    }
    .setting-btn {
        width: 100%;
        min-height: 38px; 
        padding: 8px; 
        font-size: 14px; 
        margin: 0;
    }

    /* Ayar Menüsünün Kendisi */
   .quiz-body {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        box-sizing: border-box; /* Padding'i genişliğe dahil eder */
        display: flex;
        flex-direction: column;
        align-items: center; /* İçindekileri ortalar */
    }
    .setting-group label {
        font-size: 15px; 
        margin-bottom: 6px;
    }

    /* Dashboard Paneli */
    .dashboard {
        flex-direction: column;
        height: 95vh; 
        width: 95vw; 
        max-width: none; 
    }

    /* Üst Bar (Sidebar Mobilde Yukarı Geçer) */
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #333;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px; 
        box-sizing: border-box;
    }
    .sidebar h3 { margin: 0; font-size: 17px; }
    .sidebar .back-btn {
        margin-top: 0;
        padding: 8px 12px;
        font-size: 12px; 
    }

    /* Ana İçerik */
    .main-panel {
        width: 100%;
        padding: 15px; 
        box-sizing: border-box;
        overflow-y: auto;
    }

    /* Start Butonu */
    .start-quiz-btn {
        padding: 12px 25px; 
        font-size: 18px; 
        margin-top: 10px;
    }
    
}