/**
 * Product Hotspots Styles - Zonzini Stairclimbers
 * Stili per la sezione hotspot interattivi
 * 
 * Percorso: /public/assets/frontend/css/hotspots.css
 */

/* ==========================================================================
   SEZIONE CONTAINER
   ========================================================================== */

.hotspot-section {
    padding: 20px;
    background: var(--color-secondary, #262626);
    width: 100%;
}

.hotspot-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   IMMAGINE CON MARKER - Full width
   ========================================================================== */

.hotspot-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    background: var(--color-secondary, #262626);
}

.hotspot-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay gradient per migliore visibilità marker */
.hotspot-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.15) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border-radius: var(--radius-lg, 12px);
    pointer-events: none;
}

/* ==========================================================================
   MARKER
   ========================================================================== */

.hotspot-marker {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: 5;
    cursor: pointer;
    transition: z-index 0s;
}

.hotspot-marker.is-revealed {
    cursor: pointer;
}

.hotspot-marker.is-active {
    z-index: 10;
}

/* Numero marker */
.hotspot-marker-number {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: transparent;
    color: var(--color-white, #FFFFFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 20px;
    border: 4px solid var(--color-white, #FFFFFF);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

/* Hover - solo leggero scale, no fill */
.hotspot-marker:hover .hotspot-marker-number {
    transform: scale(1.1);
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.3);
}

/* Active - riempimento bianco */
.hotspot-marker.is-active .hotspot-marker-number {
    background: var(--color-white, #FFFFFF);
    color: var(--color-primary, #D20A11);
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Pulse ring */
.hotspot-marker-pulse {
    position: absolute;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid var(--color-white, #FFFFFF);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Tutti i marker rivelati pulsano */
.hotspot-marker.is-revealed .hotspot-marker-pulse {
    animation: hotspot-pulse 1.5s ease-out infinite;
}

/* Active pulsa con più intensità */
.hotspot-marker.is-active .hotspot-marker-pulse {
    animation: hotspot-pulse-active 1.2s ease-out infinite;
}

@keyframes hotspot-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

@keyframes hotspot-pulse-active {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* ==========================================================================
   PANEL INFORMATIVO - Fluttuante su desktop
   ========================================================================== */

.hotspot-panel {
    position: absolute;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    background: var(--color-cream, #F6F5EE);
    border-radius: var(--radius-lg, 12px);
    padding: var(--space-2xl, 3rem);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.80);
    z-index: 10;
}

/* Contenuto panel */
.hotspot-panel-content {
    /* Contenuto con altezza naturale */
}

/* Numero */
.hotspot-panel-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-primary, #D20A11);
    line-height: 1;
    margin-bottom: var(--space-sm, 0.5rem);
}

/* Titolo */
.hotspot-panel-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--color-secondary, #262626);
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 var(--space-sm, 1.5rem) 0;
}

/* Descrizione */
.hotspot-panel-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   NAVIGATION DOTS
   ========================================================================== */

.hotspot-dots {
    display: flex;
    gap: 10px;
    margin-top: var(--space-xl, 2rem);
    padding-top: var(--space-lg, 1.5rem);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hotspot-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.12);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hotspot-dot:hover {
    background: rgba(0, 0, 0, 0.25);
}

.hotspot-dot.is-active {
    width: 36px;
    background: var(--color-primary, #D20A11);
}

.hotspot-dot:not(.is-revealed) {
    cursor: default;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* RESPONSIVE - dal più grande al più piccolo */

@media (max-width: 1800px) {
    .hotspot-section {
        padding: 20px 40px;
    }
    
    .hotspot-image-wrapper {
        width: 75%;
    }
    
    .hotspot-panel {
        right: 0;
        width: 340px;
        padding: var(--space-xl, 2rem);
    }
}

@media (max-width: 1400px) {
    .hotspot-image-wrapper {
        width: 70%;
    }
    
    .hotspot-panel {
        right: 0;
        width: 320px;
    }
}

@media (max-width: 1199px) {
    .hotspot-panel {
        width: 300px;
        right: 0;
        padding: var(--space-xl, 2rem);
    }
}

@media (max-width: 1024px) {
    .hotspot-panel {
        padding: var(--space-md, 1rem);
    }
    
    .hotspot-panel-title {
        font-size: clamp(1rem, 2vw, 1.5rem);
    }
    
    .hotspot-panel-desc {
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .hotspot-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .hotspot-image-wrapper {
        width: 100%;
    }

    .hotspot-panel {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        touch-action: pan-y pinch-zoom;
        cursor: grab;
    }

    .hotspot-marker-number {
        width: 50px;
        height: 50px;
        font-size: 17px;
    }

    .hotspot-marker-pulse {
        width: 66px;
        height: 66px;
    }
}

@media (max-width: 767px) {
    .hotspot-section {
        padding: 10px;
    }

    .hotspot-container {
        gap: 10px;
    }

    .hotspot-image-wrapper {
        border-radius: var(--radius-md, 8px);
    }

    .hotspot-panel {
        padding: var(--space-lg, 1.5rem);
        border-radius: var(--radius-md, 8px);
    }

    .hotspot-panel-number {
        font-size: 2.5rem;
    }

    .hotspot-panel-title {
        font-size: 1.25rem;
    }

    .hotspot-panel-desc {
        font-size: 15px;
    }

    .hotspot-marker-number {
        width: 46px;
        height: 46px;
        font-size: 15px;
        border-width: 3px;
    }
    
    .hotspot-marker-pulse {
        width: 58px;
        height: 58px;
    }
}

@media (max-width: 575px) {
    .hotspot-marker-number {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .hotspot-marker-pulse {
        width: 54px;
        height: 54px;
    }
}