/* ======================================================= */
/* REVOPSLY INTERACTIVE GUIDED TOUR STYLES                */
/* ======================================================= */

:root {
    --tour-accent: #4b89dc;
    --tour-bg: rgba(10, 15, 24, 0.95);
    --tour-glass: rgba(30, 41, 59, 0.75);
    --tour-border: rgba(255, 255, 255, 0.1);
    --tour-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Tour Overlay (Spotlight) */
#tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, clip-path 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Default: No spotlight (hole) */
    clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%, 0% 0%);
}

#tour-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Tooltip Container */
#tour-tooltip {
    position: fixed;
    z-index: 9999;
    width: 320px;
    padding: 24px;
    background: var(--tour-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--tour-border);
    border-radius: 20px;
    box-shadow: var(--tour-shadow);
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#tour-tooltip.active {
    opacity: 1;
    visibility: visible;
}

/* Tooltip Content */
.tour-content h3 {
    margin: 0 0 8px 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--tour-accent);
}

.tour-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cbd5e1;
}

/* Action Info (Forced User Action Hint) */
.tour-action-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(75, 137, 220, 0.15);
    border: 1px solid rgba(75, 137, 220, 0.3);
    border-radius: 10px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.tour-action-info i {
    color: var(--tour-accent);
    animation: tour-pulse 1.5s infinite;
}

/* Tour Controls */
.tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.tour-progress {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.tour-btns {
    display: flex;
    gap: 10px;
}

.tour-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.tour-btn.skip {
    background: transparent;
    color: #94a3b8;
}

.tour-btn.skip:hover {
    color: #f1f5f9;
}

.tour-btn.next {
    background: var(--tour-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(75, 137, 220, 0.3);
}

.tour-btn.next:hover {
    background: #3572b2;
    transform: translateY(-1px);
}

.tour-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #475569;
}

/* Pulse Animation for Target */
@keyframes tour-target-pulse {
    0% { outline: 0px solid rgba(75, 137, 220, 0.8); outline-offset: 0px; }
    50% { outline: 4px solid rgba(75, 137, 220, 0.4); outline-offset: 4px; }
    100% { outline: 8px solid rgba(75, 137, 220, 0); outline-offset: 8px; }
}

.tour-pulse-target {
    animation: tour-target-pulse 2s infinite !important;
    position: relative;
    z-index: 10000 !important; /* Above overlay but below tooltip */
}

@keyframes tour-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.tour-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tour-accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(75, 137, 220, 0.4);
    animation: tour-pulse 2s infinite ease-in-out;
}

@keyframes tour-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
