/* Interactive Guide Spotlight Effects */

/* Pulse animation for highlighted elements */
@keyframes pulse-highlight {
    0% {
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.6), 0 0 0 8px rgba(52, 152, 219, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(52, 152, 219, 0.8), 0 0 0 12px rgba(52, 152, 219, 0.4);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.6), 0 0 0 8px rgba(52, 152, 219, 0.3);
    }
}

/* Apply pulse to guide targets when highlighted */
[id^="guide-target-"].guide-active {
    animation: pulse-highlight 2s ease-in-out infinite;
    z-index: 10001 !important;
    position: relative !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
}

/* Ensure child elements inherit proper z-index */
[id^="guide-target-"].guide-active * {
    position: relative;
    z-index: inherit;
}

/* Tooltip arrow styles (optional enhancement) */
#user-guide-tooltip::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Arrow for different positions */
#user-guide-tooltip.arrow-right::before {
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 12px 12px 12px 0;
    border-color: transparent white transparent transparent;
}

#user-guide-tooltip.arrow-left::before {
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent white;
}

#user-guide-tooltip.arrow-top::before {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px 12px 0 12px;
    border-color: white transparent transparent transparent;
}

#user-guide-tooltip.arrow-bottom::before {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 12px 12px 12px;
    border-color: transparent transparent white transparent;
}

/* Smooth transitions */
#guide-spotlight-overlay,
#user-guide-tooltip {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ensure guide elements are clickable */
#user-guide-tooltip {
    pointer-events: auto;
}

/* Make buttons more prominent */
#user-guide-tooltip button {
    transition: all 0.2s ease;
}

#user-guide-tooltip button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Scroll behavior for guide */
html {
    scroll-behavior: smooth;
}

/* Guide content formatting */
#guide-content h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #3498db;
}

#guide-content ul {
    margin-left: 20px;
    line-height: 1.8;
}

#guide-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Ensure overlay doesn't block clicks except on darkened areas */
#guide-spotlight-overlay {
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #user-guide-tooltip {
        max-width: 90% !important;
        left: 5% !important;
        right: 5% !important;
        transform: none !important;
    }
    
    #user-guide-tooltip::before {
        display: none; /* Hide arrows on mobile */
    }
}

