/* Interactive Onboarding Styles */

.onboarding-blocker {
    position: fixed;
    background: transparent;
    z-index: 9999999990;
    pointer-events: none; /* Block clicks ONLY when active */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.onboarding-blocker.active {
    pointer-events: auto; /* Now it blocks clicks */
}

#onboarding-highlight {
    position: fixed;
    z-index: 9999999991;
    border: 3px solid #fbbf24;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85), 0 0 25px rgba(251, 191, 36, 0.8), inset 0 0 15px rgba(251, 191, 36, 0.4);
    border-radius: 12px;
    background: transparent;
    pointer-events: none; /* Let clicks pass through perfectly to the real element! */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
}

#onboarding-highlight.fill-hole {
    background: rgba(0, 0, 0, 0.85);
}

#onboarding-highlight.active {
    opacity: 1;
}

#onboarding-highlight::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse-border 1.5s infinite;
}

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

#onboarding-tooltip {
    position: fixed;
    z-index: 9999999992;
    width: 90%;
    max-width: 380px;
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

#onboarding-tooltip.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.onboarding-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.onboarding-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    background: #000;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.onboarding-content h3 {
    color: #fbbf24;
    margin: 0 0 5px 0;
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.onboarding-content p {
    color: #fff;
    margin: 0;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.onboarding-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.onboarding-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    border: none;
    padding: 8px 25px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
    transition: transform 0.2s;
}

.onboarding-btn:active {
    transform: scale(0.95);
}

/* Allow clicking the target element */
.onboarding-target-active {
    z-index: 9999999999 !important; /* Higher than forced sidebar */
    pointer-events: auto !important;
    animation: glow-target 1.5s infinite alternate !important;
}

@keyframes glow-target {
    from { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
    to { box-shadow: 0 0 20px rgba(251, 191, 36, 0.6); }
}

#onboarding-highlight { display: none !important; }
.onboarding-blocker { display: none !important; }
