/* Inline Interactive Tutorial Styles */

/* Main tutorial container - initially hidden */
.inline-tutorial {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
    display: none;
}

.inline-tutorial.active {
    display: block;
    pointer-events: auto;
}

/* Dark overlay backdrop with spotlight cutout effect */
.tutorial-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.4s ease;
}

/* Spotlight effect - shows through the dark overlay */
.tutorial-spotlight {
    position: absolute;
    border: 4px solid rgba(255, 215, 0, 0.9);
    border-radius: 12px;
    box-shadow:
        0 0 0 9999px rgba(0, 0, 0, 0.85),
        0 0 50px rgba(255, 215, 0, 0.6),
        inset 0 0 30px rgba(255, 215, 0, 0.3);
    z-index: 10001;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: spotlightPulse 2s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% {
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.85),
            0 0 50px rgba(255, 215, 0, 0.6),
            inset 0 0 30px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow:
            0 0 0 9999px rgba(0, 0, 0, 0.85),
            0 0 80px rgba(255, 215, 0, 0.8),
            inset 0 0 50px rgba(255, 215, 0, 0.5);
    }
}

/* Tutorial tooltip */
.tutorial-tooltip {
    position: fixed;
    max-width: 400px;
    background: linear-gradient(135deg,
        rgba(20, 20, 30, 0.98) 0%,
        rgba(30, 30, 45, 0.98) 100%);
    border: 3px solid rgba(255, 215, 0, 0.7);
    border-radius: 16px;
    padding: 0;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10002;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInFade 0.5s ease;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-tooltip-content {
    padding: 24px;
}

.tutorial-tooltip-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.tutorial-tooltip-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(220, 220, 220, 1);
    margin: 0 0 20px 0;
}

.tutorial-tooltip-text strong {
    color: #ffd700;
    font-weight: 600;
}

.tutorial-tooltip-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.tutorial-skip-btn,
.tutorial-next-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-skip-btn {
    background: rgba(100, 100, 100, 0.3);
    color: rgba(200, 200, 200, 1);
    border: 2px solid rgba(150, 150, 150, 0.4);
}

.tutorial-skip-btn:hover {
    background: rgba(120, 120, 120, 0.4);
    border-color: rgba(150, 150, 150, 0.6);
}

.tutorial-next-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: rgba(20, 20, 30, 1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.tutorial-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.tutorial-next-btn:active {
    transform: translateY(0);
}

/* Tutorial arrow pointing to highlighted element */
.tutorial-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Arrow pointing down (tooltip above element) */
.tutorial-arrow.arrow-down {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 15px 0 15px;
    border-color: rgba(30, 30, 45, 0.98) transparent transparent transparent;
}

/* Arrow pointing up (tooltip below element) */
.tutorial-arrow.arrow-up {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 15px 20px 15px;
    border-color: transparent transparent rgba(30, 30, 45, 0.98) transparent;
}

/* Arrow pointing right (tooltip to left of element) */
.tutorial-arrow.arrow-right {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent rgba(30, 30, 45, 0.98);
}

/* Arrow pointing left (tooltip to right of element) */
.tutorial-arrow.arrow-left {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 15px 20px 15px 0;
    border-color: transparent rgba(30, 30, 45, 0.98) transparent transparent;
}

/* Progress indicator */
.tutorial-progress {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 20px;
    padding: 8px 16px;
    z-index: 10003;
    animation: fadeIn 0.4s ease;
}

.tutorial-step-count {
    font-size: 14px;
    font-weight: 600;
    color: rgba(220, 220, 220, 1);
}

.tutorial-step-count #tutorial-current-step {
    color: #ffd700;
    font-size: 16px;
}

/* Highlighted element effect */
.tutorial-highlight {
    position: relative;
    z-index: 10001 !important;
    animation: highlightGlow 1.5s ease-in-out infinite;
}

@keyframes highlightGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .tutorial-tooltip {
        max-width: 90%;
        left: 5% !important;
        right: 5% !important;
    }

    .tutorial-tooltip-title {
        font-size: 20px;
    }

    .tutorial-tooltip-text {
        font-size: 14px;
    }

    .tutorial-progress {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
    }

    .tutorial-step-count {
        font-size: 12px;
    }
}
