/* Quiz Container Layout */
.quiz-page-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Open Sans', sans-serif;
}

/* Card Styling */
.quiz-card {
    background: #0f0f11;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quiz-header {
    margin-bottom: 25px;
}

.quiz-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    text-align: center;
}

/* Progress bar */
.quiz-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.quiz-progress-bar {
    height: 100%;
    width: 0%;
    background: #C0C0C0; /* Ray Silver */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

.quiz-question-counter {
    font-size: 0.9rem;
    color: #8a8d90;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Welcome Screen */
.quiz-welcome-screen {
    text-align: center;
    padding: 20px 0;
}

.quiz-welcome-screen p {
    color: #d7d7d7;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Active Quiz Layout */
.quiz-img-container {
    width: 100%;
    max-height: 320px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #121214;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.quiz-img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.quiz-question-text {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Option Cards */
.quiz-options-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 576px) {
    .quiz-options-list {
        grid-template-columns: 1fr;
    }
}

.quiz-option-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 16px 20px;
    color: #e0e0e0;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-option-btn:hover:not(:disabled) {
    background: rgba(192, 192, 192, 0.06);
    border-color: #C0C0C0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.08);
}

.quiz-option-btn:disabled {
    cursor: default;
    opacity: 0.6;
}

/* Custom indicator circles */
.quiz-option-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    margin-left: 12px;
    transition: all 0.2s ease;
}

.quiz-option-btn:hover:not(:disabled) .quiz-option-dot {
    border-color: #C0C0C0;
}

/* Option feedback states */
.quiz-option-btn.correct {
    background: rgba(46, 204, 113, 0.08) !important;
    border-color: #2ecc71 !important;
    color: #fff !important;
    opacity: 1 !important;
}

.quiz-option-btn.correct .quiz-option-dot {
    background: #2ecc71;
    border-color: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.4);
}

.quiz-option-btn.incorrect {
    background: rgba(231, 76, 60, 0.08) !important;
    border-color: #e74c3c !important;
    color: #fff !important;
    opacity: 1 !important;
}

.quiz-option-btn.incorrect .quiz-option-dot {
    background: #e74c3c;
    border-color: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

/* Educational Explanation Panel */
.quiz-explanation-panel {
    background: rgba(192, 192, 192, 0.03);
    border-left: 3px solid #C0C0C0;
    border-radius: 0 8px 8px 0;
    padding: 18px 20px;
    margin-bottom: 25px;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.quiz-explanation-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #C0C0C0;
    margin-bottom: 6px;
}

.quiz-explanation-text {
    font-size: 0.95rem;
    color: #d7d7d7;
    line-height: 1.5;
    margin: 0;
}

/* Actions/Buttons */
.quiz-primary-btn {
    background: #C0C0C0;
    color: #0f0f11;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quiz-primary-btn:hover {
    background: #d4d4d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(192, 192, 192, 0.15);
}

.quiz-primary-btn:active {
    transform: translateY(0);
}

.quiz-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-welcome-screen .quiz-primary-btn {
    padding: 16px 36px;
}

/* Score Screen */
.quiz-score-screen {
    text-align: center;
    padding: 20px 0;
}

.quiz-score-number {
    font-family: 'Oswald', sans-serif;
    font-size: 4.5rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 10px;
}

.quiz-score-label {
    font-size: 1.1rem;
    color: #8a8d90;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quiz-rank-container {
    margin-bottom: 35px;
}

.quiz-rank-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid #C0C0C0;
    border-radius: 50px;
    padding: 10px 24px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.08);
}

.quiz-highscore-tag {
    font-size: 0.9rem;
    color: #C0C0C0;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Animation utilities */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
