/* core_app/static/css/chat/lila_spotlight.css */
/**
 * EK-3 Faz 1: Spotlight Effect
 * Element highlighting için CSS
 */

/* Spotlight effect - highlighted element */
.lila-spotlight {
    position: relative;
    z-index: 9997 !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.5),
        0 0 0 9999px rgba(0, 0, 0, 0.6) !important;
    border-radius: 8px;
    transition: box-shadow 0.3s ease-in-out;
    animation: lila-pulse 2s ease-in-out infinite;
}

@keyframes lila-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.5),
            0 0 0 9999px rgba(0, 0, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.7),
            0 0 0 9999px rgba(0, 0, 0, 0.6);
    }
}

/* Prefilled form fields */
.lila-prefilled {
    background: rgba(139, 92, 246, 0.05) !important;
    border-color: #8b5cf6 !important;
    animation: lila-prefill-flash 1s ease-out;
}

@keyframes lila-prefill-flash {
    0% {
        background: rgba(139, 92, 246, 0.2);
    }

    100% {
        background: rgba(139, 92, 246, 0.05);
    }
}

/* Tooltip */
.lila-tooltip {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.4;
    pointer-events: none;
    animation: lila-tooltip-in 0.2s ease-out;
}

@keyframes lila-tooltip-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Undo navigation button (pulse effect) */
.lila-undo-nav {
    animation: lila-undo-appear 0.3s ease-out;
}

.lila-undo-nav:hover {
    transform: scale(1.05);
}

@keyframes lila-undo-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Consent modal */
.lila-consent-modal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lila-consent-dialog {
    animation: lila-modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lila-modal-in {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* [FIX 2026-01] Highlight effect - less intrusive than spotlight */
.lila-highlight {
    position: relative;
    outline: 3px solid #8b5cf6 !important;
    outline-offset: 2px;
    border-radius: 4px;
    animation: lila-highlight-pulse 1.5s ease-in-out 3;
    transition: outline 0.3s ease;
}

@keyframes lila-highlight-pulse {
    0%, 100% {
        outline-color: rgba(139, 92, 246, 0.7);
        outline-width: 3px;
    }
    50% {
        outline-color: rgba(139, 92, 246, 1);
        outline-width: 4px;
    }
}

/* Auto-remove highlight after animation */
.lila-highlight-fade {
    animation: lila-highlight-fadeout 0.5s ease-out forwards;
}

@keyframes lila-highlight-fadeout {
    to {
        outline-color: transparent;
        outline-width: 0;
    }
}

/* Navigation indicator */
.lila-navigating {
    pointer-events: none;
    opacity: 0.7;
}

.lila-navigating::after {
    content: '🧭 Yönlendiriliyor...';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(139, 92, 246, 0.95);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    z-index: 99999;
    animation: lila-nav-appear 0.3s ease-out;
}

@keyframes lila-nav-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lila-spotlight {
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5),
            0 0 0 9999px rgba(0, 0, 0, 0.7) !important;
    }

    .lila-undo-nav {
        bottom: 80px;
        right: 10px;
        font-size: 0.875rem;
    }
}