/* css/pages/tutorial.css */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    pointer-events: none;
}

.tutorial-overlay.active {
    display: block;
    pointer-events: auto;
}

.tutorial-spotlight {
    position: fixed;
    z-index: 100001;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.88),
        0 0 30px 5px rgba(139, 92, 246, 0.3);
}

.tutorial-spotlight::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid rgba(139, 92, 246, 0.7);
    border-radius: 14px;
    animation: spotlightPulse 2s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.tutorial-tooltip {
    position: fixed;
    z-index: 100002;
    width: 300px;
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.98) 0%, rgba(18, 18, 25, 0.98) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-overlay.active .tutorial-tooltip {
    opacity: 1;
}

.tutorial-step-indicator {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 14px;
}

.tutorial-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.tutorial-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.tutorial-next-btn {
    width: 100%;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tutorial-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.tutorial-next-btn svg {
    width: 14px;
    height: 14px;
}

.tutorial-arrow {
    position: fixed;
    z-index: 100002;
    width: 70px;
    height: 70px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tutorial-overlay.active .tutorial-arrow {
    opacity: 1;
}

.tutorial-arrow svg {
    width: 100%;
    height: 100%;
    color: var(--accent-purple);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.tutorial-arrow.animate {
    animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10px, 0);
    }
}

.tutorial-arrow.arrow-left {
    animation-name: arrowBounceLeft;
}

@keyframes arrowBounceLeft {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10px, 0);
    }
}

.tutorial-arrow.arrow-up {
    animation-name: arrowBounceUp;
}

@keyframes arrowBounceUp {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, -10px);
    }
}

.tutorial-arrow.arrow-down {
    animation-name: arrowBounceDown;
}

@keyframes arrowBounceDown {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0, 10px);
    }
}

.tutorial-arrow.arrow-diagonal-down-left {
    animation-name: arrowBounceDiagonalDownLeft;
}

@keyframes arrowBounceDiagonalDownLeft {
    0%, 100% {
        transform: translate(0, 0) rotate(135deg);
    }
    50% {
        transform: translate(-6px, 6px) rotate(135deg);
    }
}

.tutorial-arrow.arrow-diagonal-down-right {
    animation-name: arrowBounceDiagonalDownRight;
}

@keyframes arrowBounceDiagonalDownRight {
    0%, 100% {
        transform: translate(0, 0) rotate(45deg);
    }
    50% {
        transform: translate(6px, 6px) rotate(45deg);
    }
}

.tutorial-arrow.arrow-diagonal-up-right {
    animation-name: arrowBounceDiagonalUpRight;
}

@keyframes arrowBounceDiagonalUpRight {
    0%, 100% {
        transform: translate(0, 0) rotate(-45deg);
    }
    50% {
        transform: translate(6px, -6px) rotate(-45deg);
    }
}

.tutorial-arrow.arrow-left svg {
    transform: rotate(180deg);
}

.tutorial-arrow.arrow-up svg {
    transform: rotate(-90deg);
}

.tutorial-arrow.arrow-down svg {
    transform: rotate(90deg);
}

.tutorial-arrow.arrow-diagonal-down-left svg,
.tutorial-arrow.arrow-diagonal-down-right svg,
.tutorial-arrow.arrow-diagonal-up-right svg {
    transform: none;
}

.tutorial-scroll-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 22px;
    padding: 20px 0;
}

.tutorial-scroll-mouse {
    width: 28px;
    height: 46px;
    border: 2px solid rgba(139, 92, 246, 0.6);
    border-radius: 14px;
    position: relative;
    display: flex;
    justify-content: center;
}

.tutorial-scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--accent-purple);
    border-radius: 2px;
    margin-top: 8px;
    animation: scrollWheelMove 1.5s ease-in-out infinite;
}

@keyframes scrollWheelMove {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(12px);
        opacity: 0.4;
    }
}

.tutorial-scroll-arrows {
    width: 32px;
    height: 32px;
    color: var(--accent-purple);
    animation: scrollArrowsBounce 1.5s ease-in-out infinite;
}

.tutorial-scroll-arrows svg {
    width: 100%;
    height: 100%;
}

@keyframes scrollArrowsBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(6px);
        opacity: 1;
    }
}

/* Center overlay for scroll step */
.tutorial-center-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 100000;
}
