/* ===== DEZIPP ONBOARDING STYLES ===== */

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    pointer-events: none;
}

.onboarding-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.onboarding-container {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== ONBOARDING STEPS ===== */

.onboarding-step {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.onboarding-step.hidden {
    display: none;
}

/* ===== HEADER STYLES ===== */

.onboarding-header {
    text-align: center;
    margin-bottom: 40px;
}

.onboarding-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.onboarding-header h1 {
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.onboarding-header h2 {
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.onboarding-header p {
    font-size: 14px;
    color: #6E6E6E;
    margin: 0;
    line-height: 1.5;
}

/* ===== CONTENT STYLES ===== */

.onboarding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== WELCOME FEATURES ===== */

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.feature-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: 16px;
    background: #F8F6F0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #429E9D 0%, #48D1CC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.feature-icon i {
    font-size: 14px;
    color: white;
}

.feature-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px 0;
}

.feature-item p {
    font-size: var(--post-font-size, 0.9rem);
    color: #6E6E6E;
    margin: 0;
    line-height: 1.4;
}

/* ===== HOW IT WORKS ===== */

.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 32px 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    background: #F8F6F0;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: #F0F0F0;
    transform: translateX(8px);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #429E9D 0%, #48D1CC 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px 0;
}

.step-item p {
    font-size: 14px;
    color: #6E6E6E;
    margin: 0;
    line-height: 1.5;
}

/* ===== COLOR SELECTION ===== */

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 0.2px solid transparent;
    background: #F8F6F0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover {
    background: #F0F0F0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.color-option.selected {
    border-color: #429E9D;
    background: rgba(66, 158, 157, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 158, 157, 0.3);
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 0.2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 4px 0;
}

.color-info p {
    font-size: var(--post-font-size, 0.9rem);
    color: #6E6E6E;
    margin: 0;
    line-height: 1.3;
}

/* ===== BUTTONS ===== */

.onboarding-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.onboarding-btn.primary {
    background: linear-gradient(135deg, #429E9D 0%, #48D1CC 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(66, 158, 157, 0.3);
}

.onboarding-btn.primary:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 158, 157, 0.4);
}

.onboarding-btn.secondary {
    background: #F8F6F0;
    color: #333333;
    border: 0.2px solid #E8E3D3;
}

.onboarding-btn.secondary:hover {
    background: #F0F0F0;
    border-color: #D0D0D0;
    transform: translateY(-1px);
}

.onboarding-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== NAVIGATION ===== */

.onboarding-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 16px;
}

/* ===== PROGRESS ===== */

.onboarding-progress {
    position: absolute;
    bottom: 20px;
    left: 40px;
    right: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #E8E3D3;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #429E9D 0%, #48D1CC 100%);
    border-radius: 2px;
    transition: width 0.4s ease;
    width: 33.33%;
}

.progress-text {
    font-size: var(--post-font-size, 0.9rem);
    color: #6E6E6E;
    font-weight: 500;
}

/* ===== COMPLETION ANIMATION ===== */

.completion-animation {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px auto;
    animation: successPulse 0.6s ease-out;
}

.success-icon i {
    font-size: 14px;
    color: white;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.completion-animation h2 {
    font-size: 14px;
    font-weight: 700;
    color: #333333;
    margin: 0 0 16px 0;
}

.completion-animation p {
    font-size: 14px;
    color: #6E6E6E;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.selected-mood {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #F8F6F0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

.mood-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 0.2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 768px) {
    .onboarding-container {
        padding: 24px;
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .onboarding-header h1 {
        font-size: 14px;
    }

    .onboarding-header h2 {
        font-size: 14px;
    }

    .welcome-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .color-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .onboarding-navigation {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .onboarding-btn {
        width: 100%;
    }

    .onboarding-progress {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 32px;
    }

    .onboarding-step {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .onboarding-container {
        padding: 20px;
    }

    .onboarding-header h1 {
        font-size: 14px;
    }

    .onboarding-header h2 {
        font-size: 14px;
    }

    .feature-item {
        padding: 20px 12px;
    }

    .step-item {
        padding: 20px;
    }

    .color-option {
        padding: 12px;
    }
}

/* ===== ANIMATIONS ===== */

@media (prefers-reduced-motion: reduce) {
    .onboarding-overlay,
    .onboarding-container,
    .feature-item,
    .step-item,
    .color-option,
    .onboarding-btn,
    .progress-fill {
        transition: none;
        animation: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */

@media (prefers-contrast: high) {
    .onboarding-container {
        border: 0.2px solid #000;
    }

    .color-option {
        border: 0.2px solid #333;
    }

    .color-option.selected {
        border-width: 0.2px;
    }

    .onboarding-btn.primary {
        background: #000;
        border: 0.2px solid #000;
    }

    .onboarding-btn.secondary {
        border: 0.2px solid #333;
    }
}
