/* =====================================================
   IKIGAI 2.0 - Six Yearnings Assessment Styles
   ===================================================== */

/* Assessment Hero */
.assessment-hero {
    padding: calc(var(--section-padding) + 80px) 0 var(--section-padding);
    text-align: center;
    background: var(--bg-primary);
    position: relative;
}

.assessment-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, var(--petal-pink) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, var(--petal-blue) 0%, transparent 50%);
    opacity: 0.2;
    filter: blur(80px);
}

.assessment-hero .container {
    position: relative;
    z-index: 1;
}

.assessment-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.assessment-hero .hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin: 0;
}

/* Assessment Section */
.assessment-section {
    padding: 2rem 0 var(--section-padding);
    background: var(--bg-secondary);
    min-height: 60vh;
}

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

.progress-bar {
    height: 6px;
    background: var(--cream-dark);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--golden) 0%, var(--golden-light) 100%);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: var(--radius-full);
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Instructions Card */
.assessment-instructions {
    max-width: 600px;
    margin: 0 auto;
}

.instructions-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.instructions-card h2 {
    margin-bottom: 1rem;
}

.instructions-card p {
    margin-bottom: 1rem;
}

.yearnings-preview {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: var(--radius-md);
}

.yearnings-preview h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-medium);
}

.yearning-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.yearning-tag {
    padding: 0.375rem 0.875rem;
    background: white;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-dark);
    border: 2px solid var(--tag-color);
}

.btn-start {
    margin-top: 1rem;
    padding: 1rem 2.5rem;
}

/* Question Card */
.questions-container {
    max-width: 700px;
    margin: 0 auto;
}

.question-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.question-yearning {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--cream);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.yearning-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.question-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* Slider Rating */
.rating-container {
    margin-bottom: 2rem;
}

.rating-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--cream-dark);
    border-radius: var(--radius-full);
    outline: none;
    margin: 1.5rem 0;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: var(--golden);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 168, 76, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rating-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 168, 76, 0.5);
}

.rating-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: var(--golden);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.rating-value {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--golden-dark);
    margin-bottom: 0.5rem;
}

/* Question Navigation */
.question-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cream-dark);
}

.btn-prev {
    background: transparent;
    color: var(--text-medium);
    border: 1.5px solid var(--cream-dark);
}

.btn-prev:hover {
    border-color: var(--text-light);
    color: var(--text-dark);
}

.btn-next,
.btn-submit {
    background: var(--text-dark);
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    background: #1e272e;
}

/* Results Container */
.results-container {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

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

.results-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.results-header p {
    color: var(--text-medium);
}

/* Score Cards Grid */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.score-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--card-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.score-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.score-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.score-card h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--card-color);
}

.score-bar {
    height: 6px;
    background: var(--cream-dark);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.score-bar-fill {
    height: 100%;
    background: var(--card-color);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.score-status {
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-thriving {
    color: #22c55e;
}

.status-growing {
    color: #eab308;
}

.status-priority {
    color: #ef4444;
}

/* Profile Summary */
.profile-summary {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.profile-summary h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-items {
    display: grid;
    gap: 1rem;
}

.profile-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--radius-md);
}

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

.profile-item h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.profile-item p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-medium);
}

/* Next Steps */
.next-steps {
    background: linear-gradient(135deg, var(--petal-yellow) 0%, var(--golden) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    color: white;
}

.next-steps h3 {
    color: white;
    margin-bottom: 1rem;
}

.next-steps p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.next-steps .btn {
    background: white;
    color: var(--golden-dark);
}

.next-steps .btn:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {

    .instructions-card,
    .question-card,
    .profile-summary,
    .next-steps {
        padding: 1.5rem;
    }

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

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

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        margin-left: 0;
    }
}