/* HoverSync Pro v1.3.0 - Frontend & Editor Runtime Styles */

.hoversync-element {
    --hoversync-color: inherit;
    --hs-mx: 50%;
    --hs-my: 50%;
    --hs-spotlight-alpha: 0;
    --hs-spotlight-color: rgba(235, 229, 203, 0.22);
}

.hs-spotlight-active {
    position: relative;
}

.hs-spotlight-active::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: var(--hs-spotlight-alpha, 0);
    background: radial-gradient(360px circle at var(--hs-mx, 50%) var(--hs-my, 50%), var(--hs-spotlight-color, rgba(235, 229, 203, 0.22)), transparent 68%);
    transition: opacity 0.28s ease;
    z-index: 2;
}

.hsync-char,
.hsync-word {
    display: inline-block;
    transform-origin: center bottom;
    will-change: transform, opacity;
}

/* Editor Live Preview Inspector & Canvas Picker */
body.ehep-pick-mode,
body.ehep-pick-mode .elementor-element {
    cursor: crosshair !important;
}

body.ehep-pick-mode .elementor-element:hover {
    outline: 2px dashed #ebe5cb !important;
    outline-offset: 2px !important;
}

body.ehep-strings-overlay [data-hoversync] {
    outline: 2px dashed rgba(235, 229, 203, 0.75) !important;
    outline-offset: 2px !important;
}

.ehep-scroll-guide-line {
    position: fixed;
    left: 0;
    right: 0;
    border-top: 2px dashed #f59e0b;
    pointer-events: none;
    z-index: 999999;
    transition: top 0.12s ease;
}

.ehep-scroll-guide-label {
    position: absolute;
    right: 14px;
    top: -22px;
    background: #120f0d;
    color: #ebe5cb;
    border: 1px solid rgba(245, 158, 11, 0.6);
    font-family: monospace;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Elementor Heading & Typography Transition Smoothness */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-heading .elementor-heading-title a,
.elementor-widget-text-editor,
.elementor-button-text {
    transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (prefers-reduced-motion: reduce) {
    body.hoversync-reduce-motion .hoversync-element,
    body.hoversync-reduce-motion .hsync-char,
    body.hoversync-reduce-motion .hsync-word {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

@media print {
    .hoversync-element {
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
}
