/* ==================== ONBOARDING STYLES ====================
   Life Manager - Yeni Kullanıcı Wizard Stilleri
   ==================== */

/* Modal Overlay */
.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.onboarding-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Container */
.onboarding-container {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 520px;
    margin: 20px;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.onboarding-modal.active .onboarding-container {
    transform: translateY(0) scale(1);
}

/* Progress Bar */
.onboarding-progress {
    height: 4px;
    background: var(--bg-tertiary);
    position: relative;
}

.onboarding-progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 25%;
    transition: width 0.4s ease;
    border-radius: 0 2px 2px 0;
}

.onboarding-progress-text {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Content Area */
#onboardingContent {
    padding: 32px;
    min-height: 400px;
}

/* Step Base */
.onboarding-step {
    animation: stepFadeIn 0.4s ease;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.onboarding-step h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px;
    text-align: center;
}

.step-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 28px;
}

/* Welcome Step */
.welcome-step {
    text-align: center;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 32px;
}

.welcome-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.feature-icon {
    font-size: 20px;
}

/* Profile Step */
.profile-form {
    max-width: 360px;
    margin: 0 auto 24px;
}

.profile-form .form-group {
    margin-bottom: 24px;
}

.profile-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.profile-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all 0.2s ease;
}

.profile-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Avatar Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.avatar-option {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Categories Step */
.category-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.category-option {
    cursor: pointer;
}

.category-option input {
    display: none;
}

.category-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.category-option:hover .category-card {
    border-color: var(--border-color);
}

.category-option input:checked + .category-card {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.08);
}

.category-icon {
    grid-row: span 2;
    font-size: 32px;
    display: flex;
    align-items: center;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Sample Data Step */
.sample-data-preview {
    background: var(--bg-tertiary);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

.sample-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 14px;
}

.sample-item:last-child {
    border-bottom: none;
}

.sample-check {
    width: 24px;
    height: 24px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.sample-data-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-sample-yes,
.btn-sample-no {
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-sample-yes:hover,
.btn-sample-no:hover {
    border-color: var(--primary-color);
}

.btn-sample-yes.selected,
.btn-sample-no.selected {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

.option-icon {
    font-size: 24px;
}

/* Buttons */
.onboarding-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}

.btn-onboarding-next,
.btn-onboarding-finish {
    flex: 1;
    padding: 16px 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-onboarding-next:hover,
.btn-onboarding-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-onboarding-back {
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-onboarding-back:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-icon {
    font-size: 18px;
}

/* Welcome Toast */
.welcome-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-gradient);
    color: white;
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10020;
}

.welcome-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
}

/* Dark Mode */
[data-theme="dark"] .onboarding-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .profile-form input {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

[data-theme="dark"] .avatar-option {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .category-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .sample-data-preview {
    background: var(--bg-secondary);
}

[data-theme="dark"] .btn-sample-yes,
[data-theme="dark"] .btn-sample-no {
    background: var(--bg-tertiary);
}

/* Responsive */
@media (max-width: 560px) {
    .onboarding-container {
        margin: 10px;
        border-radius: 20px;
    }

    #onboardingContent {
        padding: 24px;
        min-height: auto;
    }

    .onboarding-step h2 {
        font-size: 20px;
    }

    .welcome-icon {
        font-size: 48px;
    }

    .welcome-features {
        grid-template-columns: 1fr;
    }

    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .avatar-option {
        width: 56px;
        height: 56px;
    }

    .onboarding-buttons {
        flex-direction: column-reverse;
    }

    .btn-onboarding-back {
        justify-content: center;
    }
}
