/**
 * Site Tour - Guided Tour for Visitors
 * Future Is Now - AI Company Platform
 *
 * z-index: 10500 (above Ariel 10000)
 * Floating button z-index: 100001 (above Iubenda cookie banner ~99999)
 */

/* Overlay - full screen dark backdrop */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tour-overlay.active {
    opacity: 1;
}

/* Spotlight - highlighted element */
.tour-spotlight {
    position: absolute;
    z-index: 10501;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Tooltip container */
.tour-tooltip {
    position: absolute;
    z-index: 10502;
    width: 320px;
    max-width: 90vw;
    background: linear-gradient(135deg, #1a1f35 0%, #0f1629 100%);
    border: 1px solid rgba(58, 166, 185, 0.3);
    border-radius: 14px;
    padding: 20px;
    color: #e0e0e0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(58, 166, 185, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

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

/* Tooltip arrow */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #1a1f35;
    border: 1px solid rgba(58, 166, 185, 0.3);
    transform: rotate(45deg);
}

.tour-tooltip.arrow-top::before {
    top: -7px;
    left: 30px;
    border-right: none;
    border-bottom: none;
}

.tour-tooltip.arrow-bottom::before {
    bottom: -7px;
    left: 30px;
    border-left: none;
    border-top: none;
}

.tour-tooltip.arrow-left::before {
    left: -7px;
    top: 20px;
    border-right: none;
    border-top: none;
}

.tour-tooltip.arrow-right::before {
    right: -7px;
    top: 20px;
    border-left: none;
    border-bottom: none;
}

/* Tooltip header */
.tour-tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tour-tooltip-step {
    background: rgba(58, 166, 185, 0.2);
    color: #3AA6B9;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.tour-tooltip-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Tooltip body */
.tour-tooltip-body {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

/* Tooltip footer with navigation */
.tour-tooltip-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.tour-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.tour-progress-dot.active {
    background: #3AA6B9;
}

.tour-progress-dot.completed {
    background: rgba(58, 166, 185, 0.5);
}

/* Navigation buttons */
.tour-nav {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.tour-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-btn-skip {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    padding: 7px 10px;
}

.tour-btn-skip:hover {
    color: rgba(255, 255, 255, 0.8);
}

.tour-btn-prev {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.tour-btn-prev:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tour-btn-next {
    background: linear-gradient(135deg, #3AA6B9, #2d8a9e);
    color: #fff;
}

.tour-btn-next:hover {
    background: linear-gradient(135deg, #45b8cc, #3AA6B9);
    box-shadow: 0 4px 15px rgba(58, 166, 185, 0.3);
}

/* Floating Tour Button - bottom-left, with label */
#tour-floating-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 50px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #3AA6B9, #2d8a9e);
    color: #fff;
    cursor: pointer;
    z-index: 100001;
    box-shadow: 0 4px 16px rgba(58, 166, 185, 0.4);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px 6px;
    gap: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#tour-floating-btn .tour-btn-icon {
    font-size: 18px;
    line-height: 1;
}

#tour-floating-btn .tour-btn-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

#tour-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(58, 166, 185, 0.5);
}

#tour-floating-btn:active {
    transform: scale(0.95);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #tour-floating-btn {
        bottom: 16px;
        left: 16px;
    }

    .tour-tooltip {
        width: 280px;
        padding: 16px;
    }

    .tour-tooltip-title {
        font-size: 14px;
    }

    .tour-tooltip-body {
        font-size: 12px;
    }
}
