/* Assessment Quiz - Wheel of Life Styles */

/* Modal */
.assessment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assessment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.assessment-modal-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.assessment-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 32px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.assessment-close-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Container */
.assessment-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Progress Bar */
.assessment-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.assessment-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 10px;
}

/* Welcome Screen */
.assessment-welcome {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    margin-bottom: 20px;
}

.assessment-welcome h1 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.assessment-welcome p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.assessment-start-btn {
    background: white;
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.assessment-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Areas Preview */
.areas-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 40px;
    text-align: left;
}

.area-preview-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.area-preview-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.area-preview-card h3 {
    font-size: 16px;
    margin: 0;
    color: white;
}

/* Question Card */
.assessment-question-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assessment-area-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assessment-question-number {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    font-weight: 500;
}

.assessment-question-text {
    font-size: 26px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 40px 0;
    line-height: 1.4;
}

/* Scale */
.assessment-scale {
    margin-top: 30px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.scale-buttons {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 8px;
}

.scale-btn {
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-btn:hover {
    border-color: #667eea;
    background: #f7f9ff;
    transform: scale(1.1);
}

.scale-btn:active {
    transform: scale(0.95);
}

/* Navigation Buttons */
.assessment-nav-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.assessment-back-btn,
.assessment-next-btn {
    flex: 1;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assessment-back-btn {
    background: #f0f0f0;
    color: #555;
}

.assessment-back-btn:hover {
    background: #e0e0e0;
}

.assessment-next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.assessment-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Additional Questions */
.additional-question-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: slideIn 0.4s ease;
}

.additional-question-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 30px 0;
}

.additional-question-card textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.additional-question-card textarea:focus {
    outline: none;
    border-color: #667eea;
}

.radio-options,
.time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-option label {
    display: block;
    padding: 12px 24px;
    background: #f7f9ff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}

.radio-option input[type="radio"]:checked + label {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.radio-option label:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Results Screen */
.assessment-results {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: slideIn 0.4s ease;
}

.assessment-results h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.assessment-results p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Wheel Chart */
.wheel-chart-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

#wheelChart {
    max-width: 100%;
    height: auto;
}

/* Scores Summary */
.scores-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: left;
}

.score-card {
    background: #f7f9ff;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid;
}

.score-card h3 {
    font-size: 14px;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #555;
}

.score-card .score-value {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* Recommendations */
.recommendations-section {
    background: #f7f9ff;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: left;
}

.recommendations-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 20px 0;
}

.recommendation-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recommendation-card:last-child {
    margin-bottom: 0;
}

.recommendation-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 8px 0;
}

.recommendation-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Action Buttons */
.results-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.results-actions button {
    flex: 1;
    min-width: 200px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.secondary-action {
    background: #f0f0f0;
    color: #555;
}

.secondary-action:hover {
    background: #e0e0e0;
}

/* Loading State */
.assessment-loading {
    text-align: center;
    padding: 60px 20px;
}

.assessment-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.assessment-loading p {
    font-size: 18px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .assessment-container {
        padding: 15px;
    }

    .assessment-welcome h1 {
        font-size: 26px;
    }

    .assessment-welcome p {
        font-size: 16px;
    }

    .assessment-question-text {
        font-size: 22px;
    }

    .scale-buttons {
        gap: 5px;
    }

    .scale-btn {
        font-size: 16px;
    }

    .assessment-results h1 {
        font-size: 26px;
    }

    .assessment-results p {
        font-size: 16px;
    }

    .scores-summary {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions button {
        min-width: 100%;
    }
}

/* Color scheme for different areas */
.area-body { border-left-color: #e74c3c; }
.area-mind { border-left-color: #9b59b6; }
.area-social { border-left-color: #3498db; }
.area-career { border-left-color: #f39c12; }
.area-hobby { border-left-color: #2ecc71; }

/* Zone color indicators */
.zone-red { color: #e74c3c; }
.zone-yellow { color: #f39c12; }
.zone-green { color: #2ecc71; }
