/* ============================================
   Tutorial Spotlight Walkthrough Overlay
   White floating popovers with spotlight cutout
   ============================================ */

.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    pointer-events: none;
}
.tutorial-overlay.active {
    display: block;
    pointer-events: auto;
}

/* Semi-transparent backdrop with spotlight hole */
.tutorial-overlay.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1;
}

.tutorial-spotlight {
    position: absolute;
    z-index: 2;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.45);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* White floating popover */
.tutorial-popover {
    position: absolute;
    z-index: 10;
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
    animation: popoverAppear 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

/* Popover arrow (auto-positioned by JS) */
.tutorial-popover::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(0,0,0,0.04);
}
.tutorial-popover.arrow-top::before {
    top: -8px;
    left: 32px;
}
.tutorial-popover.arrow-bottom::before {
    bottom: -8px;
    left: 32px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.04);
}
.tutorial-popover.arrow-left::before {
    left: -8px;
    top: 24px;
}

.tutorial-step-indicator {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}
.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all var(--transition);
}
.tutorial-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}
.tutorial-dot.done {
    background: var(--primary-light);
}

.tutorial-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}
.tutorial-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.tutorial-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@keyframes popoverAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Tutorial step highlight shimmer */
.tutorial-highlight {
    animation: highlightPulse 1.5s ease-in-out infinite;
}
@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.08); }
}
