/* Quizzes Styles */
.quizzes-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 70px;
}

.quizzes-welcome {
    text-align: center;
}

.quizzes-welcome h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.quizzes-welcome p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 24px;
}

.quizzes-content {
    padding: 60px 0;
    background: var(--bg-secondary);
    min-height: 60vh;
}

.joy-banner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.joy-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.joy-message {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.quizzes-section {
    margin-bottom: 48px;
}

.section-intro {
    text-align: center;
    margin-bottom: 48px;
}

.section-intro h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.section-intro p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.quizzes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.quiz-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quiz-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.quiz-card:hover::before {
    transform: scaleX(1);
}

.quiz-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.quiz-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quiz-card-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.quiz-card-body {
    margin-bottom: 16px;
}

.quiz-card-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.quiz-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.quiz-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-start-quiz {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start-quiz:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-section {
    margin-bottom: 48px;
}

.quiz-header {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.btn-back {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
}

.quiz-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.quiz-header p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.quiz-progress {
    margin-top: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    width: 0%;
}

.quiz-body {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.question-card {
    margin-bottom: 24px;
}

.question-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.5;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.option-item {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: left;
}

.option-item:hover {
    background: #f3f4f6;
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.option-item.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
}

.option-item.correct {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
}

.option-item.incorrect {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: #ef4444;
}

.btn-submit-answer {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-answer:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit-answer:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.answer-feedback {
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.answer-feedback h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.answer-feedback.correct h3 {
    color: #10b981;
}

.answer-feedback.incorrect h3 {
    color: #ef4444;
}

.answer-feedback p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.btn-next-question {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next-question:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.results-section {
    margin-bottom: 48px;
}

.results-card {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.results-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    animation: bounce 2s infinite;
}

.results-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.score-display {
    margin-bottom: 32px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-lg);
}

.score-circle span {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.score-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.results-message {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-retake,
.btn-back-to-quizzes {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-retake {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-back-to-quizzes {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-retake:hover,
.btn-back-to-quizzes:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 768px) {
    .quizzes-header {
        padding: 100px 0 40px;
    }
    
    .quizzes-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-header,
    .quiz-body {
        padding: 24px;
    }
    
    .results-card {
        padding: 32px 24px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .btn-retake,
    .btn-back-to-quizzes {
        width: 100%;
    }
}

