/* Sports Quiz Plugin Styles */

.sports-quiz-container {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    max-width: 100%;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
}

.quiz-title {
    margin: 0;
    font-size: 28px;
    color: #212529;
    font-weight: 700;
}

.quiz-timer {
    font-size: 20px;
    font-weight: 600;
    color: #007bff;
    background: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #007bff;
}

.timer-display {
    font-family: 'Courier New', monospace;
    color: #dc3545;
}

.quiz-intro {
    text-align: center;
    padding: 20px 0;
}

.quiz-form-section {
    max-width: 400px;
    margin: 0 auto;
}

.quiz-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.quiz-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.quiz-button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.quiz-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.give-up-btn {
    background: #ffc107;
    color: #212529;
}

.give-up-btn:hover {
    background: #e0a800;
}

.quiz-content {
    margin-top: 20px;
}

.quiz-questions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .quiz-questions-grid {
        grid-template-columns: 1fr;
    }
}

.quiz-question-item {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.quiz-question-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.quiz-question-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 15px;
}

.quiz-answer-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.quiz-answer-input:focus {
    outline: none;
    border-color: #007bff;
}

.quiz-answer-input.correct {
    border-color: #28a745;
    background-color: #d4edda;
}

.quiz-answer-input.incorrect {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.quiz-answer-input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.answer-feedback {
    display: none;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 600;
}

.answer-feedback.show {
    display: block;
}

.answer-feedback.correct {
    color: #28a745;
}

.answer-feedback.incorrect {
    color: #dc3545;
}

.quiz-actions {
    text-align: center;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 2px solid #dee2e6;
}

.quiz-results {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    border: 2px solid #28a745;
}

.quiz-results h4 {
    font-size: 24px;
    color: #212529;
    margin-bottom: 10px;
}

.score-display {
    color: #007bff;
    font-size: 32px;
    font-weight: 700;
}

.time-display-result {
    font-size: 18px;
    color: #6c757d;
}

.quiz-leaderboard {
    margin-top: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #6c757d;
}

.quiz-leaderboard h4 {
    margin-top: 0;
    font-size: 22px;
    color: #212529;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.leaderboard-table th {
    background: #007bff;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

.leaderboard-table tbody tr:hover {
    background: #f8f9fa;
}

.leaderboard-table tbody tr:nth-child(1) td {
    font-weight: 700;
    color: #ffc107;
}

.leaderboard-table tbody tr:nth-child(2) td {
    font-weight: 600;
    color: #adb5bd;
}

.leaderboard-table tbody tr:nth-child(3) td {
    font-weight: 600;
    color: #cd7f32;
}

/* Timer warning */
.quiz-timer.warning {
    animation: pulse 1s infinite;
    color: #dc3545;
    border-color: #dc3545;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .sports-quiz-container {
        padding: 20px 15px;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .quiz-title {
        font-size: 22px;
    }
    
    .quiz-timer {
        font-size: 18px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 5px;
        font-size: 13px;
    }
}

