.trivia-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trivia-header {
    text-align: center;
    margin-bottom: 2rem;
}

.trivia-header h1 {
    font-size: 2rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.trivia-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #DC143C, #003893);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-weight: 600;
}

/* Questions */
.questions-container {
    margin-bottom: 2rem;
}

.question-card {
    display: none;
    padding: 1.8rem;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #DC143C;
    animation: slideIn 0.3s ease;
}

.question-card.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

.question-number {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.question-text {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-badge.difficulty-easy {
    background: #d4edda;
    color: #155724;
}

.difficulty-badge.difficulty-medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty-badge.difficulty-hard {
    background: #f8d7da;
    color: #721c24;
}

/* Answers */
.answers-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: #DC143C;
    background: #fff5f5;
}

.answer-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #DC143C;
}

.answer-option input[type="radio"]:checked+.answer-text {
    color: #DC143C;
    font-weight: 600;
}

.answer-text {
    flex: 1;
    font-size: 1rem;
    color: #333;
}

/* Quiz Actions */
.quiz-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #DC143C, #003893);
    color: white;
    flex: 1;
    min-width: 120px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    flex: 1;
    min-width: 120px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(40, 167, 69, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Results Page */
.results-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
}

.results-card {
    background: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.score-circle {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC143C, #003893);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
}

.score-label {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.score-details h2 {
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.score-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.score-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.breakdown-item {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.breakdown-item.correct {
    background: #d4edda;
}

.breakdown-item.incorrect {
    background: #f8d7da;
}

.breakdown-item.difficulty {
    background: #d1ecf1;
}

.breakdown-item .icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.breakdown-item .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.breakdown-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Share Section */
.share-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.share-section h3 {
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.share-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.copy {
    background: #6C757D;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Answers Review */
.answers-review {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.answers-review h3 {
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.answer-review {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

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

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

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-icon {
    font-size: 1.5rem;
}

.review-question {
    font-weight: 600;
    color: #1a1a2e;
    flex: 1;
}

.review-body p {
    margin: 0.5rem 0;
    color: #666;
}

.explanation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-style: italic;
}

/* Leaderboard Preview */
.leaderboard-preview {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.leaderboard-preview h3 {
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.leaderboard-table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid #eee;
}

.leaderboard-table td {
    padding: 1rem;
}

.leaderboard-table .rank {
    font-weight: 700;
    color: #DC143C;
}

.leaderboard-table .score {
    color: #003893;
}

.leaderboard-table .percentage {
    text-align: right;
    color: #666;
}

/* Results Actions */
.results-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.you-badge {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .trivia-container {
        padding: 1rem;
    }

    .results-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .score-circle {
        flex: 0 0 150px;
        width: 150px;
        height: 150px;
    }

    .score-value {
        font-size: 2.5rem;
    }

    .score-breakdown {
        grid-template-columns: 1fr;
    }

    .quiz-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}