/* Aydınoloji Online Sınav - quiz.css v1.4.4 */

/* Düzeltme: Tüm elemanlar için daha tutarlı kutu modeli (daha az agresif) */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Sistem Font Ailesi */
.aos-quiz-wrapper, .aos-my-results-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* --- Genel Kapsayıcı --- */
.aos-quiz-wrapper, .aos-my-results-container {
    background-color: #fff;
    color: #1e293b;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* --- Başlangıç Ekranı --- */
#aos-start-screen {
    padding: 2rem 3rem;
    text-align: center;
}

.aos-quiz-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #008c8c;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

#aos-start-screen .aos-rewards-info-container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    text-align: left;
}

.aos-start-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.aos-start-btn {
    background-color: #008c8c;
    color: #f8fafc;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    width: 100%;
    text-decoration: none;
    display: inline-block;
}
.aos-start-btn:hover {
    background-color: #006c6c;
    transform: translateY(-3px);
}
.aos-start-btn.secondary {
    background-color: #fff;
    color: #008c8c;
    border: 2px solid #008c8c;
}
.aos-start-btn.secondary:hover {
    background-color: #f0f9ff;
    border-color: #006c6c;
    color: #006c6c;
}


/* --- Misafir İsim Formu --- */
#aos-student-form { padding: 2rem 3rem; text-align: center; }
#aos-student-form h2 { font-size: 2rem; color: #008c8c; margin-bottom: 0.5rem; }
#aos-student-form p { margin-bottom: 2rem; }
.aos-form-group { margin-bottom: 1.5rem; text-align: left; }
.aos-form-group label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.aos-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* --- Sınav Arayüzü --- */
.aos-quiz-header { background-color: #008c8c; color: #f8fafc; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
#aos-expiry-countdown { font-size: 1.1rem; font-weight: 700; color: #f8fafc; opacity: 1; }
.aos-quiz-header .score-display { font-size: 1.2rem; font-weight: 900; background-color: rgba(255, 255, 255, 0.2); padding: 0.25rem 0.75rem; border-radius: 99px; }
.aos-quiz-main { padding: 2rem; text-align: center; }
#aos-timer-container { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 1.5rem auto; display: flex; justify-content: center; align-items: center; border: 8px solid #008c8c; box-shadow: 0 0 0 5px #f0f9ff; }
#aos-timer { font-size: 2.5rem; font-weight: 900; color: #008c8c; }
#aos-question-text {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    min-height: 80px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
#aos-question-text img { max-width: 100%; height: auto; margin-top: 1rem; border-radius: 0.5rem; }
#aos-answer-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.aos-btn {
    background-color: #fff;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.aos-btn img { max-width: 100%; max-height: 120px; height: auto; }
.aos-btn:not(:disabled):hover { transform: translateY(-4px); box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08); border-color: #008c8c; color: #008c8c; }
.aos-btn:disabled { cursor: not-allowed; opacity: 0.9; }
.aos-btn.correct { background-color: #22c55e; color: #f8fafc; border-color: #22c55e; transform: scale(1.05); }
.aos-btn.wrong { background-color: #ef4444; color: #f8fafc; border-color: #ef4444; }

/* --- Sonuç Ekranı --- */
#aos-results-container { text-align: center; padding: 2rem; }
#aos-results-container h2 { font-size: 2.5rem; font-weight: 900; color: #008c8c; }
#aos-results-container h3 { font-size: 1.5rem; margin-bottom: 2rem; }

/* --- Liderlik Tablosu --- */
#aos-live-leaderboard-container,
#aos-initial-leaderboard .aos-leaderboard-container,
#aos-results-container .aos-leaderboard-container {
    margin-top: 1rem;
}

.aos-leaderboard-table,
.aos-my-results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9em;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.aos-leaderboard-table th,
.aos-my-results-table th {
    background-color: #008c8c;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 15px;
}

.aos-leaderboard-table td,
.aos-my-results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.aos-leaderboard-table tbody tr,
.aos-my-results-table tbody tr {
    background-color: #ffffff;
    transition: background-color 0.2s;
}

.aos-leaderboard-table tbody tr:nth-of-type(even),
.aos-my-results-table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

.aos-leaderboard-table tbody tr:hover,
.aos-my-results-table tbody tr:hover {
    background-color: #f0f9ff;
}

.aos-leaderboard-table tbody tr:first-child td:first-child::before { content: '🥇 '; }
.aos-leaderboard-table tbody tr:nth-child(2) td:first-child::before { content: '🥈 '; }
.aos-leaderboard-table tbody tr:nth-child(3) td:first-child::before { content: '🥉 '; }

#aos-retry-btn { background-color: #10b981; color: #f8fafc; border: none; border-radius: 0.75rem; padding: 0.8rem 2rem; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background-color 0.2s, transform 0.2s; margin-top: 2rem; }
#aos-retry-btn:hover { background-color: #0f766e; transform: translateY(-3px); }

/* --- Ödül Bilgi Kutusu --- */
.aos-rewards-info-container { max-width: 100%; margin: 1rem auto; padding: 1rem 1.5rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; background-color: #f8fafc; }
.aos-rewards-info-container h4 { margin-top: 0; margin-bottom: 0.75rem; color: #005f5f; font-weight: 700; }
.aos-rewards-info-container ul { margin: 0; padding-left: 20px; font-size: 0.9em; color: #334155; list-style-type: disc; }
.aos-rewards-info-container li { margin-bottom: 0.25rem; }

@media (max-width: 600px) {
    /* Düzeltme: Mobil taşma sorununu kökten çözmek için basitleştirilmiş ve garantili kurallar */
    .aos-quiz-wrapper, .aos-my-results-container { 
        width: 100%; 
        max-width: 100vw; /* Genişliğin hiçbir durumda ekran genişliğini (viewport width) geçmemesini garantile */
        margin: 0; 
        border-radius: 0; 
        box-sizing: border-box; /* Genişlik hesaplamasına padding ve border dahil edilsin */
        overflow-x: hidden; /* Yatay taşmayı her durumda engelle */
    }

    #aos-start-screen, #aos-student-form, .aos-quiz-main { 
        padding: 1.5rem; 
    }

    #aos-answer-options { 
        grid-template-columns: 1fr; 
        gap: 0.75rem; 
    }

    #aos-question-text { 
        font-size: 1.4rem; 
        min-height: 70px; 
    }
    
    .aos-btn { 
        padding: 1rem; 
    }
}

