/* ==========================================================================
   FLOW Product Tour Styles - Global Tour System
   Used across all FLOW states (1-10) for product tours
   File: product-tour-styles.css
   ========================================================================== */

/* Tour Overlay Container */
.flow-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    pointer-events: none;
}

/* Dark Backdrop */
.flow-tour-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    pointer-events: all;
}

/* Spotlight Highlight */
.flow-tour-spotlight {
    position: absolute;
    background: none !important;
    border: 3px solid #14B8A6;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(20, 184, 166, 0.5);
    animation: spotlightPulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 100000;
    opacity: 1;
}

/* Tooltip Container */
.flow-tour-tooltip {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    pointer-events: all;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    z-index: 100001;
}

.flow-tour-tooltip.show {
    opacity: 1;
    transform: scale(1);
}

/* Close Button */
.flow-tour-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
    z-index: 10;
}

.flow-tour-close:hover {
    background: #e5e7eb;
    color: #1a1a1a;
    transform: scale(1.1);
}

/* Kai Mascot */
.flow-tour-kai {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: block;
    animation: kaiWave 2s ease-in-out infinite;
}

/* Tooltip Content */
.flow-tour-content {
    text-align: center;
    margin-bottom: 20px;
}

.flow-tour-title {
    font-size: 18px;
    font-weight: 700;
    color: #14B8A6;
    margin: 0 0 8px 0;
}

.flow-tour-message {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

/* Navigation */
.flow-tour-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.flow-tour-dots {
    display: flex;
    gap: 6px;
}

.flow-tour-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 0.2s ease;
}

.flow-tour-dot.active {
    background: #14B8A6;
    transform: scale(1.3);
}

.flow-tour-btn {
    background: linear-gradient(135deg, #14B8A6, #0d9488);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.flow-tour-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Arrow Pointer */
.flow-tour-arrow {
    position: absolute;
    width: 0;
    height: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spotlightPulse {
    0%, 100% { 
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.2),
                    0 0 20px rgba(20, 184, 166, 0.5);
    }
    50% { 
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.2),
                    0 0 30px rgba(20, 184, 166, 0.8);
    }
}

@keyframes kaiWave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* ==========================================================================
   Mobile Responsive (≤640px)
   ========================================================================== */

@media (max-width: 640px) {
    .flow-tour-tooltip {
        padding: 16px;
        max-width: 280px !important;
        width: 280px !important;
    }
    
    .flow-tour-close {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
        font-size: 16px;
    }
    
    .flow-tour-title {
        font-size: 15px;
    }
    
    /* Hide message text on mobile - title only for compact design */
    .flow-tour-message {
        display: none !important;
    }
    
    .flow-tour-kai {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .flow-tour-content {
        margin-bottom: 12px;
    }
    
    .flow-tour-nav {
        gap: 12px;
    }
    
    .flow-tour-btn {
        padding: 12px 24px;
        font-size: 14px;
        font-weight: 700;
    }
    
    .flow-tour-spotlight {
        /* Ensure spotlight is visible on mobile */
        border-width: 3px !important;
        display: block !important;
        z-index: 100000 !important;
    }
}