/* Tutorial System Styles */

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;  /* Always pass clicks through overlay */
}

.tutorial-overlay.active {
    /* Keep pointer-events: none so clicks reach highlighted elements */
}

/* Spotlight effect - uses box-shadow to create dark overlay with cutout */
.tutorial-spotlight {
    position: absolute;
    border-radius: 4px;
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.8),
        0 0 0 3px var(--black);
    z-index: 10000;
    pointer-events: none;
    transition: all 0.3s ease;
    animation: spotlight-pulse 2s infinite;
}

@keyframes spotlight-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.8),
            0 0 0 3px var(--black),
            0 0 15px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.8),
            0 0 0 4px var(--black),
            0 0 25px rgba(255, 255, 255, 0.4);
    }
}

/* Message box */
.tutorial-message {
    position: absolute;
    background: var(--white);
    border: 3px solid var(--black);
    padding: 12px 14px;
    max-width: 280px;
    min-width: 200px;
    z-index: 10001;
    box-shadow: 4px 4px 0 var(--black);
    pointer-events: auto;
}

.tutorial-message-content {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--black);
}

.tutorial-message-actions {
    display: flex;
    gap: 6px;
}

.tutorial-continue-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.1s ease;
}

.tutorial-continue-btn:hover {
    background: var(--white);
    color: var(--black);
}

.tutorial-skip-btn {
    padding: 8px 12px;
    background: var(--white);
    color: var(--gray-500);
    border: 2px solid var(--gray-300);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
}

.tutorial-skip-btn:hover {
    border-color: var(--black);
    color: var(--black);
}

/* Arrow pointer - positioned based on message position */
.tutorial-message::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 8px solid transparent;
}

.tutorial-message.position-bottom::before {
    top: -16px;
    left: 24px;
    border-bottom-color: var(--black);
}

.tutorial-message.position-top::before {
    bottom: -16px;
    left: 24px;
    border-top-color: var(--black);
}

.tutorial-message.position-left::before {
    right: -16px;
    top: 16px;
    border-left-color: var(--black);
}

.tutorial-message.position-right::before {
    left: -16px;
    top: 16px;
    border-right-color: var(--black);
}

/* Step counter */
.tutorial-step-counter {
    font-size: 10px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Hidden state */
.tutorial-overlay:not(.active) {
    display: none;
}
