/* ========================================
   CSS CUSTOM PROPERTIES - Design System
   ======================================== */
:root {
    /* Colors from Learn2LiveFully Logo */
    --color-purple: #9D4EDD;
    --color-cyan: #4ECDC4;
    --color-green: #06D6A0;
    --color-orange: #F77F00;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, #C77DFF 0%, #4ECDC4 50%, #06D6A0 100%);
    --gradient-button: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    --gradient-button-hover: linear-gradient(135deg, #C77DFF, #06D6A0);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Text Colors */
    --color-text: #2D3748;
    --color-text-light: #718096;
    --color-text-accent: #9D4EDD;

    /* Spacing & Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-full: 9999px;

    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background: #FAFAFA;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: var(--space-md);
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
    max-width: 800px;
    width: 100%;
    margin: 2rem auto;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gradient-main);
}

/* ========================================
   HEADER & LOGO
   ======================================== */
.header {
    text-align: center;
    padding: 3rem 2rem 1rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo {
    height: 80px;
    /* Constrain height */
    width: auto;
    display: block;
    margin: 0 auto 1.5rem auto;
    /* Center it */
}

.main-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-card {
    padding: 2rem 3rem 4rem;
}

.section-wrapper {
    margin-bottom: 2.5rem;
    text-align: center;
}

.welcome-text {
    font-size: 1.2rem;
    color: var(--color-text-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.intro-text {
    margin-bottom: 1.5rem;
}

.emphasis-box {
    background: rgba(157, 78, 221, 0.05);
    border-left: 4px solid var(--color-purple);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    text-align: left;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

/* Lists */
.styled-list {
    list-style: none;
    text-align: left;
    display: inline-block;
    max-width: 600px;
    margin: 0 auto;
}

.styled-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.styled-list li::before {
    content: '•';
    color: var(--color-cyan);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.insight-list li::before {
    content: '✨';
    font-size: 1.2rem;
    top: -2px;
}

/* Philosophy Section */
.philosophy-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-purple);
    margin-top: 2rem;
    font-weight: 500;
}

/* Scale Guide */
.scale-guide {
    display: flex;
    justify-content: space-between;
    background: #F8F9FA;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    font-weight: 600;
    color: var(--color-text-light);
}

.scale-guide span:first-child {
    color: var(--color-orange);
}

.scale-guide span:last-child {
    color: var(--color-green);
}

/* Reminders */
.reminder-list {
    text-align: center;
    list-style: none;
}

.reminder-list li {
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
}

.gentle-reminder {
    font-family: var(--font-heading);
    color: var(--color-purple);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    display: block;
}

.safe-space-text {
    font-weight: 600;
    color: var(--color-text);
    margin-top: 1rem;
    display: block;
}

/* Time & Privacy */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0.5rem;
}

/* CTA */
.cta-section {
    margin-top: 3rem;
    text-align: center;
}

.breath-prompt {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.cta-button {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-button);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: var(--gradient-button-hover);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
}

/* ========================================
   FORM STYLES
   ======================================== */
.values-form {
    text-align: left;
}

.value-block {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    transition: box-shadow 0.3s ease;
}

.value-block:focus-within {
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.1);
    border-color: var(--color-purple);
    background: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.input-label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.secondary-label {
    font-size: 0.95rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.required {
    color: var(--color-orange);
    margin-left: 4px;
}

.text-input,
.text-area {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.text-input:focus,
.text-area:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.1);
}

.text-area {
    min-height: 80px;
    resize: vertical;
}

.error-message {
    color: #E53E3E;
    background: #FFF5F5;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #FC8181;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.reminder-box {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05), rgba(78, 205, 196, 0.05));
    border-radius: var(--radius-md);
}

.reminder-title {
    font-family: var(--font-heading);
    color: var(--color-purple);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.next-step-info {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.small-italic {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}



/* ========================================
   SLIDER STYLES
   ======================================== */
.assessment-block {
    background: white;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.value-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-purple);
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(157, 78, 221, 0.1);
    padding-bottom: 1rem;
}

.slider-group {
    background: #FAFAFA;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.slider-container {
    position: relative;
    padding: 1.5rem 0.5rem 0.5rem;
    margin-top: 3rem;
    /* significantly increased to prevent overlap */
}

.alignment-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #FF9F1C, #FFBF69, #CBF3F0, #2EC4B6);
    outline: none;
    transition: opacity .2s;
}

.alignment-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--color-purple);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    transition: transform 0.2s;
}

.alignment-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.slider-value-bubble {
    position: absolute;
    top: -35px;
    left: 50%;
    /* JS will update this */
    transform: translateX(-50%);
    background: var(--color-purple);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    display: block;
    /* Always visible as per request */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    /* Let clicks pass through */
    transition: left 0.1s ease-out;
    /* Smooth movement */
}

/* Show bubble on hover/active if I added JS? For now static CSS is hard for dynamic bubble position */
/* I'll implement dynamic bubble in JS if needed, or just let users see the thumb position */

.gentle-prompt {
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 2rem;
    font-size: 0.95rem;
}

.footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .content-card {
        padding: 1.5rem;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .scale-guide {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ========================================
   RESULTS PAGE STYLES
   ======================================== */
.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.scores-section {
    flex: 1;
    min-width: 300px;
}

.insights-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.alignment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.alignment-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #EDF2F7;
    gap: 1rem;
}

.alignment-item:last-child {
    border-bottom: none;
}

.alignment-name {
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 120px;
    /* Ensure alignment */
}

.progress-container {
    flex: 1;
    height: 10px;
    background: #EDF2F7;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.alignment-score {
    font-weight: 700;
    color: var(--color-purple);
    font-size: 1.1rem;
    min-width: 50px;
    text-align: right;
}

.overall-score-box {
    text-align: center;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
}

.overall-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.overall-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

/* Insight Cards */
.insight-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.strength-card {
    background: linear-gradient(135deg, white, #F0FFF4);
    border: 1px solid #C6F6D5;
}

.growth-card {
    background: linear-gradient(135deg, white, #FFF5F5);
    border: 1px solid #FED7D7;
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.tie-message {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 0.8rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
}