/*
 * Frontend CSS for Feature Hotspot Animator
 */

:root {
    --fha-hotspot-color: #ff6b6b;
    --fha-line-color: #333;
    --fha-tooltip-bg-color: #fff;
    --fha-tooltip-text-color: #333;
    --fha-animation-duration: 800ms;
}

.fha-container {
    position: relative;
    max-width: 100%;
    margin: 20px 0;
}

.fha-image-wrapper {
    position: relative;
}

.fha-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.fha-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.fha-svg-overlay path {
    stroke: var(--fha-line-color);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.fha-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.fha-hotspot-marker {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.fha-hotspot-dot {
    width: 100%;
    height: 100%;
    background: var(--fha-hotspot-color);
    border-radius: 50%;
    transform: scale(0.5);
    transition: transform 0.3s ease;
}

.fha-hotspot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--fha-hotspot-color);
    border-radius: 50%;
    animation: fha-pulse 2s infinite;
    opacity: 0.6;
}

.fha-hotspot:hover .fha-hotspot-dot {
    transform: scale(0.7);
}

.fha-tooltip {
    position: absolute;
    min-width: 200px;
    background: var(--fha-tooltip-bg-color);
    color: var(--fha-tooltip-text-color);
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    transform: translateY(-10px);
}

.fha-hotspot.active .fha-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fha-tooltip-title {
    margin: 0 0 10px;
    font-size: 16px;
    color: inherit;
}

.fha-tooltip-text {
    margin: 0;
    font-size: 14px;
    color: inherit;
}

.fha-tooltip-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--fha-hotspot-color);
    text-decoration: none;
    font-weight: bold;
}

@keyframes fha-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}