/* Product Tour - Professional onboarding walkthrough */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    animation: tour-fade-in 0.3s ease;
}

.tour-spotlight {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--color-primary, #2563eb);
    pointer-events: none;
    transition: all 0.3s ease;
    animation: tour-pulse 2s ease-in-out infinite;
}

@keyframes tour-pulse {
    0%, 100% { border-color: var(--color-primary, #2563eb); }
    50% { border-color: rgba(37, 99, 235, 0.4); }
}

@keyframes tour-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tour-tooltip {
    position: absolute;
    z-index: 9999;
    background: var(--color-bg-elevated, #ffffff);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 320px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    direction: inherit;
}

.tour-tooltip.tour-visible {
    opacity: 1;
    transform: translateY(0);
}

.tour-progress {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted, #64748b);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.tour-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text, #0f172a);
    margin: 0 0 8px 0;
}

.tour-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted, #64748b);
    margin: 0 0 16px 0;
}

.tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tour-nav {
    display: flex;
    gap: 8px;
}

.tour-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--color-border, #e2e8f0);
    background: transparent;
    color: var(--color-text, #0f172a);
    transition: all 0.2s ease;
}

.tour-btn:hover {
    background: var(--color-surface-muted, #f8fafc);
}

.tour-btn.tour-primary {
    background: var(--color-primary, #2563eb);
    border-color: var(--color-primary, #2563eb);
    color: #ffffff;
}

.tour-btn.tour-primary:hover {
    background: var(--color-primary-hover, #1d4ed8);
}

.tour-btn.tour-skip {
    border: none;
    color: var(--color-text-muted, #64748b);
    padding: 10px 8px;
}

/* Dark mode */
[data-theme="dark"] .tour-tooltip {
    background: #1e293b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .tour-title {
    color: #f1f5f9;
}

[data-theme="dark"] .tour-desc {
    color: #94a3b8;
}

[data-theme="dark"] .tour-btn {
    border-color: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .tour-btn:hover {
    background: #334155;
}

/* Mobile */
@media (max-width: 480px) {
    .tour-tooltip {
        max-width: calc(100vw - 32px);
        left: 16px !important;
        right: 16px;
        padding: 16px;
    }
    .tour-tooltip.tour-reminder {
        transform: none !important;
        top: 50% !important;
        margin-top: -100px;
    }
    .tour-title {
        font-size: 16px;
    }
}

/* Reminder dialog - centered, proper button layout */
.tour-reminder {
    min-width: 300px;
    text-align: center;
}
.tour-reminder .tour-actions {
    justify-content: center !important;
    gap: 12px;
    flex-wrap: nowrap;
}
.tour-reminder .tour-btn {
    flex: 1;
    white-space: nowrap;
    min-width: 120px;
}
