/* Onboarding Component Styles */

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.onboarding-overlay.active {
    opacity: 1;
}

.onboarding-modal {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.98) 0%, rgba(20, 25, 35, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(139, 92, 246, 0.2),
                inset 0 1px 2px rgba(255, 255, 255, 0.05);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.onboarding-overlay.active .onboarding-modal {
    transform: scale(1);
}

.onboarding-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Progress Indicators */
.onboarding-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.progress-dot.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
    transform: scale(1.3);
}

.progress-dot.completed {
    background: #22c55e;
}

.progress-dot.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: white;
    font-weight: bold;
}

/* Icon */
.onboarding-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Title */
.onboarding-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Description */
.onboarding-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

/* Step Counter */
.onboarding-counter {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

/* Action Buttons */
.onboarding-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.onboarding-btn {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    font-family: inherit;
}

.onboarding-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.onboarding-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.4);
}

.onboarding-btn-primary:active {
    transform: translateY(0);
}

.onboarding-btn-secondary {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1.5px solid rgba(59, 130, 246, 0.35);
}

.onboarding-btn-secondary:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.onboarding-btn-secondary:active {
    transform: translateY(0);
}

/* Skip Button */
.onboarding-skip {
    margin-top: 1.5rem;
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.onboarding-skip:hover {
    color: #94a3b8;
}

/* Highlight Effect for Elements */
.onboarding-highlight {
    position: relative;
    animation: pulse 2s infinite;
    z-index: 9999;
}

.onboarding-highlight::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 12px;
    border: 2px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    pointer-events: none;
    animation: highlightPulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes highlightPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .onboarding-modal {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        max-width: 100%;
    }

    .onboarding-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    .onboarding-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .onboarding-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .onboarding-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .onboarding-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .progress-dot {
        width: 10px;
        height: 10px;
    }

    .progress-dot.active {
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .onboarding-overlay {
        padding: 0.75rem;
    }

    .onboarding-modal {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .onboarding-icon {
        font-size: 3.5rem;
    }

    .onboarding-title {
        font-size: 1.5rem;
    }

    .onboarding-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .onboarding-counter {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .onboarding-progress {
        gap: 0.375rem;
        margin-bottom: 1.5rem;
    }
}

/* Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
    .onboarding-modal {
        background: linear-gradient(135deg, rgba(10, 15, 20, 0.98) 0%, rgba(15, 20, 30, 0.98) 100%);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .onboarding-overlay,
    .onboarding-modal,
    .onboarding-btn,
    .onboarding-icon,
    .onboarding-highlight,
    .progress-dot {
        animation: none !important;
        transition: none !important;
    }

    .onboarding-overlay.active .onboarding-modal {
        transform: scale(1);
    }
}

/* Focus States for Keyboard Navigation */
.onboarding-btn:focus-visible,
.onboarding-skip:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
