/* assets/css/onboarding-hint.css */

.onboarding-hint {
    position: fixed;
    top: 65px;
    /* Below the mobile sidebar trigger */
    left: 20px;
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
    animation: hintFadeIn 0.5s ease-out forwards;
}

/* Show only on mobile screens */
@media (max-width: 768px) {
    .onboarding-hint.active {
        display: flex;
    }
}

.hint-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary, #a855f7);
    position: relative;
    margin-left: 15px;
    animation: pointerBounce 1.5s infinite;
}

.hint-arrow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--primary, #6366f1);
}

.hint-text-card {
    background: rgba(30, 30, 60, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 12px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint-text-card span {
    color: var(--primary, #6366f1);
    font-weight: bold;
}

@keyframes hintFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pointerBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes hintFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.onboarding-hint.fade-out {
    animation: hintFadeOut 0.5s ease-in forwards;
}

/* Curved Arrow for Cart Hint */
.hint-curved-arrow {
    width: 80px;
    height: 80px;
    margin-bottom: -10px;
    margin-left: -5px;
    transform: rotate(10deg);
}

.curved-arrow-path {
    fill: none;
    stroke: var(--primary, #6366f1);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawCurvedArrow 2s ease-in-out infinite;
}

@keyframes drawCurvedArrow {
    0% {
        stroke-dashoffset: 200;
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    70% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Specific styling to make the second hint look more "premium" */
.onboarding-hint.cart-hint .hint-text-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(30, 30, 60, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.3);
}