/* =================================================================
   נתיב: /static/css/onboarding.css
   הדרכה ויזואלית - סליידר מהצד
   ================================================================= */

/* כפתור צף בפינה */
.onboarding-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B3A5F 0%, #3FA39B 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(27, 58, 95, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: fabPulse 2s ease-in-out infinite;
}

.onboarding-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(27, 58, 95, 0.5);
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(27, 58, 95, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(63, 163, 155, 0.6); }
}

/* Tooltip לכפתור */
.onboarding-fab::after {
    content: 'איך זה עובד?';
    position: absolute;
    right: 70px;
    background: rgba(27, 58, 95, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.onboarding-fab:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* סליידר מהצד */
.onboarding-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.onboarding-slider.open {
    transform: translateX(0);
}

/* רקע כהה */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.onboarding-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Header של הסליידר */
.onboarding-header {
    padding: 24px;
    background: linear-gradient(135deg, #1B3A5F 0%, #3FA39B 100%);
    color: white;
}

.onboarding-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.onboarding-header p {
    font-size: 14px;
    opacity: 0.9;
}

.onboarding-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.onboarding-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* תוכן השלבים */
.onboarding-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* שלב בודד */
.onboarding-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.onboarding-step.active {
    display: block;
}

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

/* אייקון השלב */
.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(27, 58, 95, 0.1) 0%, rgba(63, 163, 155, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* כותרת השלב */
.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #1B3A5F;
    text-align: center;
    margin-bottom: 16px;
}

/* תיאור השלב */
.step-description {
    font-size: 15px;
    color: #6B7280;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* נקודות מפתח */
.step-highlights {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.step-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-highlights li {
    padding: 10px 0;
    padding-right: 28px;
    position: relative;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #E5E7EB;
}

.step-highlights li:last-child {
    border-bottom: none;
}

.step-highlights li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #3FA39B;
    font-weight: 700;
}

/* Footer עם ניווט */
.onboarding-footer {
    padding: 20px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Progress dots */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E5E7EB;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: linear-gradient(135deg, #1B3A5F 0%, #3FA39B 100%);
    width: 24px;
    border-radius: 5px;
}

/* כפתורי ניווט */
.onboarding-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.nav-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.nav-btn.prev {
    background: #F3F4F6;
    color: #6B7280;
}

.nav-btn.prev:hover {
    background: #E5E7EB;
}

.nav-btn.prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.next {
    background: linear-gradient(135deg, #1B3A5F 0%, #3FA39B 100%);
    color: white;
}

.nav-btn.next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(27, 58, 95, 0.3);
}

/* כפתור התחלה */
.nav-btn.start {
    background: linear-gradient(135deg, #3FA39B 0%, #2d8a83 100%);
    color: white;
    flex: 1;
}

.nav-btn.start:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(63, 163, 155, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .onboarding-fab {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .onboarding-fab::after {
        display: none;
    }

    .onboarding-slider {
        width: 100%;
        max-width: 100%;
    }

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

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .step-title {
        font-size: 18px;
    }
}
