/* Interactive Tour Styles */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 27, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.tour-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.3s ease, visibility 0s;
}

.tour-spotlight {
    position: fixed;
    border: 3px solid #89b4fa;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(17, 17, 27, 0.5),
                0 0 40px rgba(137, 180, 250, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-overlay.active ~ .tour-spotlight {
    opacity: 1;
    visibility: visible;
}

.tour-tooltip {
    position: fixed;
    max-width: 380px;
    background: linear-gradient(135deg, #1e1e2e 0%, #181825 100%);
    border: 2px solid #89b4fa;
    border-radius: 16px;
    padding: 24px;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(137, 180, 250, 0.3);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tour-tooltip.active {
    transform: scale(1);
    opacity: 1;
}

.tour-tooltip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tour-step-badge {
    background: linear-gradient(135deg, #89b4fa 0%, #74c7ec 100%);
    color: #11111b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tour-tooltip-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #cdd6f4;
    margin: 0;
    flex: 1;
}

.tour-tooltip-icon {
    font-size: 2em;
    color: #89b4fa;
}

.tour-tooltip-content {
    color: #bac2de;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tour-tooltip-content p {
    margin: 0 0 12px 0;
}

.tour-tooltip-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.tour-tooltip-content li {
    margin: 6px 0;
    color: #a6adc8;
}

.tour-tooltip-content strong {
    color: #89b4fa;
    font-weight: 600;
}

.tour-tooltip-content code {
    background: #313244;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #f9e2af;
}

.tour-tooltip-footer {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #313244;
}

.tour-progress {
    flex: 1;
    color: #6c7086;
    font-size: 0.85em;
    font-weight: 600;
}

.tour-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tour-btn-skip {
    background: transparent;
    color: #9399b2;
    border: 1px solid #45475a;
}

.tour-btn-skip:hover {
    background: #313244;
    color: #cdd6f4;
}

.tour-btn-prev {
    background: #313244;
    color: #cdd6f4;
    border: 1px solid #45475a;
}

.tour-btn-prev:hover {
    background: #45475a;
    transform: translateX(-2px);
}

.tour-btn-next {
    background: linear-gradient(135deg, #89b4fa 0%, #74c7ec 100%);
    color: #11111b;
}

.tour-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(137, 180, 250, 0.4);
}

.tour-btn-finish {
    background: linear-gradient(135deg, #a6e3a1 0%, #94e2d5 100%);
    color: #11111b;
}

.tour-btn-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 227, 161, 0.4);
}

/* Tour Start Button */
.tour-start-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #89b4fa 0%, #74c7ec 100%);
    border: none;
    border-radius: 50%;
    color: #11111b;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(137, 180, 250, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-start-btn:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 32px rgba(137, 180, 250, 0.6);
}

.tour-start-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(137, 180, 250, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(137, 180, 250, 0.8);
    }
}

/* Tooltip Arrow */
.tour-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
}

.tour-tooltip[data-position="bottom"]::before {
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: #89b4fa;
}

.tour-tooltip[data-position="top"]::before {
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: #89b4fa;
}

.tour-tooltip[data-position="left"]::before {
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: #89b4fa;
}

.tour-tooltip[data-position="right"]::before {
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: #89b4fa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tour-tooltip {
        max-width: 90vw;
        padding: 20px;
        left: 5vw !important;
        right: 5vw !important;
        top: auto !important;
        bottom: 20px !important;
    }

    .tour-tooltip::before {
        display: none;
    }

    .tour-start-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2em;
    }

    .tour-tooltip-footer {
        flex-wrap: wrap;
    }

    .tour-progress {
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
    }

    .tour-btn {
        flex: 1;
    }
}

/* Welcome Modal */
.tour-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 27, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.tour-welcome-modal.active {
    opacity: 1;
    pointer-events: all;
}

.tour-welcome-content {
    max-width: 500px;
    background: linear-gradient(135deg, #1e1e2e 0%, #181825 100%);
    border: 2px solid #89b4fa;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.tour-welcome-modal.active .tour-welcome-content {
    transform: scale(1);
}

.tour-welcome-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.tour-welcome-title {
    font-size: 2em;
    font-weight: 700;
    color: #cdd6f4;
    margin-bottom: 16px;
}

.tour-welcome-text {
    color: #bac2de;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 32px;
}

.tour-welcome-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.tour-welcome-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tour-welcome-btn-start {
    background: linear-gradient(135deg, #89b4fa 0%, #74c7ec 100%);
    color: #11111b;
}

.tour-welcome-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(137, 180, 250, 0.5);
}

.tour-welcome-btn-skip {
    background: transparent;
    color: #9399b2;
    border: 2px solid #45475a;
}

.tour-welcome-btn-skip:hover {
    background: #313244;
    color: #cdd6f4;
}
