/**
 * Nine Lives Assessment - Styles
 */

/* Assessment Hero */
.assessment-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.assessment-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.assessment-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Assessment Container */
.assessment-container {
    padding: 3rem 2rem;
    min-height: 70vh;
}

/* Progress Bar */
.progress-wrapper {
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Question Card */
.question-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.question-icon {
    font-size: 3rem;
    line-height: 1;
}

.question-title {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.question-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Answers Grid */
.answers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-option {
    padding: 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.answer-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.answer-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.answer-option-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    display: block;
}

.answer-option-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Question Navigation */
.question-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.question-navigation .btn {
    flex: 1;
    max-width: 200px;
}

.question-navigation .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    max-width: 900px;
    margin: 0 auto;
}

.results-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.results-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.results-header h2 {
    color: #333;
    font-size: 1.8rem;
}

.results-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Stage Result */
.stage-result {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
}

.result-life-number {
    display: block;
    font-size: 1rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-stage-name {
    font-size: 2rem;
    color: #333;
    margin: 0 0 0.5rem;
}

.result-stage-tagline {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* Result Description */
.result-description h4,
.result-insights h4,
.stage-distribution h4 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.result-description p {
    color: #555;
    line-height: 1.6;
    font-size: 1.05rem;
}

.result-insights ul {
    list-style: none;
    padding: 0;
}

.result-insights li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.result-insights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions .btn {
    min-width: 200px;
}

/* Stage Distribution */
.stage-distribution {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.distribution-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.distribution-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.distribution-label {
    min-width: 80px;
    font-size: 0.9rem;
    color: #666;
}

.distribution-fill-wrapper {
    flex: 1;
    height: 24px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.distribution-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
}

.distribution-count {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.distribution-fill.highlight {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .assessment-hero h1 {
        font-size: 2rem;
    }

    .assessment-hero .hero-subtitle {
        font-size: 1rem;
    }

    .question-card,
    .results-card {
        padding: 1.5rem;
    }

    .question-icon {
        font-size: 2.5rem;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .question-navigation {
        flex-direction: column;
    }

    .question-navigation .btn {
        max-width: 100%;
    }

    .results-icon {
        font-size: 4rem;
    }

    .result-stage-name {
        font-size: 1.6rem;
    }

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

    .result-actions .btn {
        width: 100%;
        min-width: auto;
    }

    .distribution-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .distribution-label {
        min-width: auto;
    }

    .distribution-fill-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .assessment-container {
        padding: 2rem 1rem;
    }

    .question-header {
        flex-direction: column;
        text-align: center;
    }
}
