/* Game-specific styles */

/* Answer Options */
.answer-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
}

.answer-option:hover:not(:disabled) {
    border-color: var(--primary-color);
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
}

.answer-option.correct {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    animation: correctPulse 0.5s ease;
}

.answer-option.incorrect {
    border-color: var(--error-color);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    animation: shake 0.5s ease;
}

.answer-option:disabled {
    cursor: not-allowed;
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.answer-option.correct .option-letter {
    background: var(--success-color);
}

.answer-option.incorrect .option-letter {
    background: var(--error-color);
}

.option-value {
    flex: 1;
    font-weight: 600;
}

/* Animations */
@keyframes correctPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result Display */
#resultDisplay {
    animation: fadeIn 0.5s ease;
}

/* Leaderboard Table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
}

.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tr:hover {
    background: var(--background-gray);
}

.leaderboard-table .user-row {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.1));
    font-weight: 600;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
}

.rank-1 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.rank-2 {
    background: linear-gradient(135deg, #9ca3af, #d1d5db);
    color: white;
}

.rank-3 {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
}

/* Achievement Badges */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-gold);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.25rem;
    animation: fadeIn 0.5s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .answer-option {
        padding: 1rem;
        font-size: 1rem;
    }

    .option-letter {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .rank-badge {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}