/* Tour System Styles */

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9000;
    pointer-events: auto;
    /* Catch clicks */
    /* Dimmed background using a huge box-shadow on the highlight element is a trick, 
       but here we might use a simple SVG mask or just a semi-transparent layer. 
       
       Actually, standard "spotlight" trick: 
       A div that covers everything with semi-transparent color, 
       but we need a "hole".
       
       Easiest modern way: box-shadow on the highlight element.
    */
    background: transparent;
    /* Background handled by highlight box-shadow */
}

/* 
   The Highlight Box 
   Uses a massive box-shadow to create the "dimmed" effect for the rest of the screen.
*/
.tour-highlight {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75), 0 0 0 2px var(--accent-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9001;
    pointer-events: none;
    /* Let clicks pass through to the element? No, usually tour blocks interaction. */
}

.tour-popup {
    position: fixed;
    width: 320px;
    max-width: 90vw;
    z-index: 9002;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-elevation-medium);
    display: flex;
    flex-direction: column;
    animation: tour-pop-in 0.3s ease-out;
}

@keyframes tour-pop-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface-alt);
}

.tour-header strong {
    font-size: 14px;
    color: var(--text-primary);
}

.tour-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.tour-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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