/* ============================================================================
   UI Hints Component - Slideshow training/onboarding hints system
   ============================================================================ */

/* ============================================================================
   BEACON - Pulsing dot that draws attention to the current hint target
   ============================================================================ */
.ui-hint-beacon {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d6efd;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    animation: uiHintBeaconPulse 1.5s ease-out infinite;
}

.ui-hint-beacon::before,
.ui-hint-beacon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #0d6efd;
    transform: translate(-50%, -50%);
    animation: uiHintRipple 2s ease-out infinite;
}

.ui-hint-beacon::after {
    animation-delay: 0.6s;
}

@keyframes uiHintBeaconPulse {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

@keyframes uiHintRipple {
    0% { width: 20px; height: 20px; opacity: 0.8; }
    100% { width: 60px; height: 60px; opacity: 0; }
}

/* ============================================================================
   TARGET HIGHLIGHT - Glow around the current hint's target element
   ============================================================================ */
.ui-hint-target-highlight {
    box-shadow: 0 0 0 3px #0d6efd, 0 0 20px rgba(13, 110, 253, 0.5) !important;
    border-radius: 6px;
    animation: uiHintTargetGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 100;
}

@keyframes uiHintTargetGlow {
    0%, 100% { box-shadow: 0 0 0 3px #0d6efd, 0 0 15px rgba(13, 110, 253, 0.4); }
    50% { box-shadow: 0 0 0 5px #0d6efd, 0 0 30px rgba(13, 110, 253, 0.7); }
}

/* ============================================================================
   HINT CARD - Slideshow style with counter and Got it button
   ============================================================================ */
.ui-hint-card {
    position: absolute;
    z-index: 10001;
    pointer-events: auto;
    max-width: 340px;
    min-width: 240px;
}

.ui-hint-card-inner {
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(13, 110, 253, 0.1);
    overflow: hidden;
}

/* Card header */
.ui-hint-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px 0 14px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #0d6efd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ui-hint-card-header i {
    font-size: 1rem;
}

/* Card body text */
.ui-hint-card-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.45;
    margin: 0;
    padding: 8px 14px 10px 14px;
}

/* Card footer with counter and Got it button */
.ui-hint-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.ui-hint-card-counter {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.ui-hint-card-gotit {
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.ui-hint-card-gotit:hover {
    background: #0b5ed7;
}

/* ============================================================================
   ARROW - Animated arrow pointing from card to target
   ============================================================================ */
.ui-hint-arrow {
    position: absolute;
    z-index: 10000;
    color: #0d6efd;
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    pointer-events: none;
}

.ui-hint-arrow-down { animation: uiHintArrowBounceDown 0.8s ease-in-out infinite; }
.ui-hint-arrow-up { animation: uiHintArrowBounceUp 0.8s ease-in-out infinite; }
.ui-hint-arrow-left { animation: uiHintArrowBounceLeft 0.8s ease-in-out infinite; }
.ui-hint-arrow-right { animation: uiHintArrowBounceRight 0.8s ease-in-out infinite; }

@keyframes uiHintArrowBounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
@keyframes uiHintArrowBounceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes uiHintArrowBounceLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-6px); }
}
@keyframes uiHintArrowBounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

/* ============================================================================
   SLIDESHOW ANIMATIONS - Fade/slide transitions between hints
   ============================================================================ */
.ui-hint-fade-in {
    animation: uiHintFadeSlideIn 0.35s ease-out forwards;
}

.ui-hint-fade-out {
    animation: uiHintFadeSlideOut 0.25s ease-in forwards;
}

@keyframes uiHintFadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes uiHintFadeSlideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}

/* ============================================================================
   HELP MENU TOGGLE
   ============================================================================ */
.ui-hints-toggle-item {
    cursor: pointer;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 576px) {
    .ui-hint-card {
        max-width: 270px;
        min-width: 200px;
    }
    .ui-hint-card-text {
        font-size: 0.85rem;
    }
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

[data-bs-theme="dark"] .ui-hint-card-inner {
    background: var(--mv-bg-card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(13, 110, 253, 0.2);
}
[data-bs-theme="dark"] .ui-hint-card-text {
    color: var(--mv-text-secondary);
}
[data-bs-theme="dark"] .ui-hint-card-footer {
    background: var(--mv-bg-surface);
    border-top-color: var(--mv-border-color);
}
[data-bs-theme="dark"] .ui-hint-card-counter {
    color: var(--mv-text-muted);
}
