/* ===================================
   QUIZ STYLES - OPTIMIZED & RESPONSIVE
   =================================== */

/* Quiz Section Layout */
#quiz-section {
    background: var(--card-bg);
    color: var(--text-color);
    text-align: center;
    padding: 50px 4%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-section h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.quiz-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
}

.quiz-intro p {
    margin-bottom: 20px;
}

.quiz-intro strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Quiz Selection Grid */
.quiz-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px auto;
    max-width: 1200px;
}

.quiz-option-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 22px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quiz-option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quiz-option-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.quiz-option-card:hover::before {
    transform: scaleX(1);
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.quiz-option-card:hover .quiz-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.quiz-option-card h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 600;
}

.quiz-option-card p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
}

.quiz-start-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.quiz-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Quiz Container */
#quiz-container {
    display: none;
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    position: relative;
}

.quiz-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.quiz-controls {
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.exit-btn:hover {
    background: rgba(220, 53, 69, 0.8);
    border-color: rgba(220, 53, 69, 0.8);
}

.quiz-header h2 {
    color: white;
    margin: 20px 0 15px;
    font-size: 2.2rem;
    font-weight: 600;
}

.quiz-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-progress {
    margin-top: 25px;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.question-counter {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Quiz Content */
.quiz-content {
    padding: 50px 40px;
}

.question-card {
    margin-bottom: 40px;
}

.question-text {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 600;
    text-align: left;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
}

.option-label:hover {
    border-color: var(--primary-color);
    background: #e3f2fd;
    transform: translateX(8px);
}

.option-label input[type=\"radio\"] {
    margin-right: 20px;
    transform: scale(1.3);
    accent-color: var(--primary-color);
}

.option-label:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.option-label:has(input:checked) .option-text {
    font-weight: 600;
    color: var(--primary-color);
}

.option-text {
    font-size: 1.1rem;
    line-height: 1.5;
    flex: 1;
    text-align: left;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.nav-btn {
    padding: 15px 30px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 120px;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Quiz Results */\n.quiz-results {\n    padding: 50px 40px;\n}\n\n.results-header {\n    text-align: center;\n    margin-bottom: 50px;\n}\n\n.results-header h2 {\n    color: var(--accent-color);\n    font-size: 2.8rem;\n    margin-bottom: 25px;\n    font-weight: 700;\n}\n\n.score-display {\n    margin: 40px 0;\n}\n\n.score-circle {\n    width: 150px;\n    height: 150px;\n    border-radius: 50%;\n    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    margin: 0 auto 25px;\n    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);\n    position: relative;\n}\n\n.score-circle::before {\n    content: '';\n    position: absolute;\n    inset: -5px;\n    border-radius: 50%;\n    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));\n    z-index: -1;\n    opacity: 0.3;\n}\n\n.score-percentage {\n    font-size: 2.5rem;\n    font-weight: 700;\n    color: white;\n}\n\n.time-taken {\n    color: var(--light-text);\n    font-style: italic;\n    font-size: 1.1rem;\n}\n\n/* Recommendation Cards */\n.recommendation-section {\n    margin: 50px 0;\n}\n\n.recommendation-card {\n    padding: 40px;\n    border-radius: 20px;\n    margin: 30px 0;\n    border-left: 6px solid;\n    position: relative;\n    overflow: hidden;\n}\n\n.recommendation-card::before {\n    content: '';\n    position: absolute;\n    top: 0;\n    right: 0;\n    width: 100px;\n    height: 100px;\n    opacity: 0.1;\n    background-size: contain;\n}\n\n.recommendation-card.excellent {\n    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);\n    border-left-color: #28a745;\n}\n\n.recommendation-card.good {\n    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);\n    border-left-color: #ffc107;\n}\n\n.recommendation-card.beginner {\n    background: linear-gradient(135deg, #cce5ff 0%, #b3d9ff 100%);\n    border-left-color: #007bff;\n}\n\n.recommendation-card h4 {\n    font-size: 1.8rem;\n    margin-bottom: 20px;\n    color: var(--secondary-color);\n    font-weight: 600;\n}\n\n.recommendation-card p {\n    font-size: 1.1rem;\n    margin-bottom: 20px;\n    color: var(--text-color);\n    line-height: 1.6;\n}\n\n.recommendation-card ul {\n    margin-top: 20px;\n    padding-left: 0;\n    list-style: none;\n}\n\n.recommendation-card li {\n    margin-bottom: 12px;\n    color: var(--text-color);\n    padding-left: 30px;\n    position: relative;\n    font-size: 1rem;\n}\n\n.recommendation-card li::before {\n    content: '✓';\n    position: absolute;\n    left: 0;\n    color: var(--accent-color);\n    font-weight: bold;\n    font-size: 1.2rem;\n}\n\n/* Detailed Results */\n.detailed-results {\n    margin: 50px 0;\n}\n\n.detailed-results h3 {\n    color: var(--primary-color);\n    margin-bottom: 30px;\n    text-align: center;\n    font-size: 2rem;\n    font-weight: 600;\n}\n\n.result-item {\n    padding: 25px;\n    margin: 20px 0;\n    border-radius: 15px;\n    border-left: 5px solid;\n    background: white;\n    box-shadow: var(--shadow-light);\n}\n\n.result-item.correct {\n    border-left-color: #28a745;\n    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);\n}\n\n.result-item.incorrect {\n    border-left-color: #dc3545;\n    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);\n}\n\n.result-item h4 {\n    color: var(--secondary-color);\n    margin-bottom: 15px;\n    font-size: 1.2rem;\n    font-weight: 600;\n}\n\n.result-item p {\n    margin-bottom: 10px;\n    font-size: 1rem;\n}\n\n.explanation {\n    background: rgba(255, 255, 255, 0.8);\n    padding: 15px 20px;\n    border-radius: 10px;\n    margin-top: 15px;\n    font-style: italic;\n    color: var(--text-color);\n    border-left: 3px solid var(--primary-color);\n}\n\n/* CTA Section */\n.cta-section {\n    text-align: center;\n    margin-top: 60px;\n    padding: 50px;\n    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);\n    border-radius: 20px;\n    border: 2px solid var(--border-color);\n}\n\n.cta-section h3 {\n    color: var(--secondary-color);\n    margin-bottom: 20px;\n    font-size: 2rem;\n    font-weight: 600;\n}\n\n.cta-section p {\n    font-size: 1.1rem;\n    margin-bottom: 30px;\n    color: var(--text-color);\n}\n\n.cta-buttons {\n    display: flex;\n    gap: 20px;\n    justify-content: center;\n    flex-wrap: wrap;\n    margin-top: 30px;\n}\n\n.cta-button {\n    padding: 15px 30px;\n    border-radius: 30px;\n    text-decoration: none;\n    font-weight: 600;\n    font-size: 1rem;\n    transition: all 0.3s ease;\n    border: none;\n    cursor: pointer;\n    min-width: 200px;\n}\n\n.cta-button.primary {\n    background: linear-gradient(45deg, #ff6b6b, #ee5a24);\n    color: white;\n    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);\n}\n\n.cta-button.primary:hover {\n    transform: translateY(-3px);\n    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);\n}\n\n.cta-button.secondary {\n    background: white;\n    color: var(--primary-color);\n    border: 2px solid var(--primary-color);\n}\n\n.cta-button.secondary:hover {\n    background: var(--primary-color);\n    color: white;\n    transform: translateY(-3px);\n}\n\n/* Quiz Benefits Section */\n.quiz-benefits {\n    margin-top: 80px;\n    padding: 60px 0;\n    background: linear-gradient(135deg, var(--light-bg) 0%, #e3f2fd 100%);\n    border-radius: 20px;\n}\n\n.quiz-benefits h2 {\n    text-align: center;\n    color: var(--primary-color);\n    margin-bottom: 50px;\n    font-size: 2.5rem;\n    font-weight: 600;\n}\n\n.benefits-grid {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));\n    gap: 40px;\n    margin-top: 40px;\n    max-width: 1000px;\n    margin-left: auto;\n    margin-right: auto;\n}\n\n.benefit-card {\n    text-align: center;\n    padding: 40px 30px;\n    background: white;\n    border-radius: 15px;\n    box-shadow: var(--shadow-medium);\n    transition: var(--transition);\n    border: 2px solid transparent;\n}\n\n.benefit-card:hover {\n    transform: translateY(-8px);\n    box-shadow: var(--shadow-heavy);\n    border-color: var(--primary-color);\n}\n\n.benefit-card i {\n    font-size: 3rem;\n    color: var(--primary-color);\n    margin-bottom: 25px;\n    display: block;\n}\n\n.benefit-card h3 {\n    color: var(--secondary-color);\n    margin-bottom: 20px;\n    font-size: 1.4rem;\n    font-weight: 600;\n}\n\n.benefit-card p {\n    color: var(--light-text);\n    font-size: 1rem;\n    line-height: 1.6;\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n    #quiz-section {\n        padding: 40px 4%;\n    }\n    \n    #quiz-section h1 {\n        font-size: 2.2rem;\n    }\n    \n    .quiz-intro {\n        font-size: 1.1rem;\n    }\n    \n    .quiz-selection-grid {\n        grid-template-columns: 1fr;\n        gap: 25px;\n        margin: 40px 0;\n    }\n    \n    .quiz-option-card {\n        padding: 30px 20px;\n    }\n    \n    .quiz-icon {\n        font-size: 3rem;\n    }\n    \n    #quiz-container {\n        margin: 20px 10px;\n        border-radius: 15px;\n    }\n    \n    .quiz-header {\n        padding: 30px 20px;\n    }\n    \n    .quiz-controls {\n        position: static;\n        margin-bottom: 20px;\n    }\n    \n    .quiz-content {\n        padding: 30px 20px;\n    }\n    \n    .question-text {\n        font-size: 1.3rem;\n    }\n    \n    .option-label {\n        padding: 15px 20px;\n        flex-direction: column;\n        align-items: flex-start;\n        gap: 10px;\n    }\n    \n    .option-label input[type=\"radio\"] {\n        margin-right: 0;\n        margin-bottom: 5px;\n    }\n    \n    .quiz-navigation {\n        flex-direction: column;\n        gap: 15px;\n    }\n    \n    .nav-btn {\n        width: 100%;\n    }\n    \n    .benefits-grid {\n        grid-template-columns: 1fr;\n        gap: 25px;\n    }\n    \n    .cta-buttons {\n        flex-direction: column;\n        align-items: center;\n    }\n    \n    .cta-button {\n        width: 100%;\n        max-width: 300px;\n    }\n    \n    .score-circle {\n        width: 120px;\n        height: 120px;\n    }\n    \n    .score-percentage {\n        font-size: 2rem;\n    }\n    \n    .quiz-results {\n        padding: 30px 20px;\n    }\n}\n\n@media (max-width: 480px) {\n    .quiz-option-card {\n        padding: 25px 15px;\n    }\n    \n    .quiz-start-btn {\n        padding: 12px 25px;\n        font-size: 0.9rem;\n    }\n    \n    .option-text {\n        font-size: 1rem;\n    }\n}\n\n/* Accessibility Improvements */\n@media (prefers-reduced-motion: reduce) {\n    * {\n        animation-duration: 0.01ms !important;\n        animation-iteration-count: 1 !important;\n        transition-duration: 0.01ms !important;\n    }\n}\n\n@media (prefers-contrast: high) {\n    .option-label {\n        border-width: 3px;\n    }\n    \n    .option-label:hover,\n    .option-label:has(input:checked) {\n        border-width: 4px;\n    }\n}\n\n/* Focus states for accessibility */\n.quiz-start-btn:focus,\n.nav-btn:focus,\n.control-btn:focus {\n    outline: 3px solid var(--primary-color);\n    outline-offset: 2px;\n}\n\n.option-label:focus-within {\n    outline: 2px solid var(--primary-color);\n    outline-offset: 2px;\n}