/**
 * Welcome Tour Styles
 *
 * Styles for the guided welcome tour modal
 */

/* Overlay */
.welcome-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.welcome-tour-overlay.hidden {
    display: none;
}

/* Backdrop */
.welcome-tour-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

/* Container */
.welcome-tour-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    animation: slideIn 0.3s ease-out;
}

/* Content card */
.welcome-tour-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Header */
.welcome-tour-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid #e0e7ff;
}

.tour-icon-container {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.welcome-tour-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.welcome-tour-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

/* Body */
.welcome-tour-body {
    padding: 1.5rem;
    min-height: 12rem;
    max-height: 60vh;
    overflow-y: auto;
}

.welcome-tour-body p {
    color: #374151;
    line-height: 1.6;
}

.welcome-tour-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.welcome-tour-body kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
}

/* Footer */
.welcome-tour-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Progress dots */
.tour-progress {
    display: flex;
    align-items: center;
}

.tour-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.tour-dot.active {
    width: 1.5rem;
    border-radius: 0.25rem;
    background: #3b82f6;
}

/* Navigation buttons */
.tour-navigation {
    display: flex;
    gap: 0.75rem;
}

.tour-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
}

.tour-btn-secondary {
    background: white;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.tour-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.tour-btn-primary {
    background: #3b82f6;
    color: white;
}

.tour-btn-primary:hover {
    background: #2563eb;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 640px) {
    .welcome-tour-container {
        max-width: 100%;
    }

    .welcome-tour-header {
        padding: 1rem;
    }

    .welcome-tour-body {
        padding: 1rem;
    }

    .welcome-tour-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .tour-navigation {
        width: 100%;
    }

    .tour-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Focus styles for accessibility */
.tour-btn:focus-visible,
.tour-dot:focus-visible,
.welcome-tour-close:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
