 /* -------------------------------------------------------- */
/* --- 1. PODSTAWOWY UKŁAD (Proporcje 16:9) --- */
/* -------------------------------------------------------- */

#video-hotspot-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    /* PADDING HACK dla proporcji 16:9 */
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    perspective: 1000px; 
}

.video-section, #image-wrapper--part2 {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.video-wrapper video,
.image-wrapper img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover; 
}

/* -------------------------------------------------------- */
/* --- 2. HOTSPOTY: STYL SCHOCK (OSTATECZNY) --- */
/* -------------------------------------------------------- */

.hotspot-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
}

.product__hotspot {
    position: absolute;
    pointer-events: all;
    cursor: pointer;
    transform: translate(-50%, -50%); 
    z-index: 10;
}

.product__hotspot--link {
    display: block; /* Zmieniamy na block, aby absolutne pozycjonowanie było stabilne */
    position: relative;
    height: 30px; /* Wysokość równa kropce i pastylce */
    
    /* PRZEJŚCIE DLA RUCHU CAŁEGO LINKU */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}









/* ---------------- KROPKA (Baza Aktywna, 30x30px) ---------------- */
.product-hotspot {
    width: 50px; 
    height: 50px;
    border-radius: 50%;
    /* Pozycjonowanie na krawędzi linku */
    position: absolute; 
    left: 0;
    top: 0;
    
    /* background-color: #FFFFFF;  */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.2); 
    z-index: 3; 
    
    /* ANIMACJA PULSOWANIA - TYLKO CSS */
    animation: pulse-glow 2s infinite ease-in-out; 
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* KROPKI SVG (Wewnętrzny styl, aby przejąć kontrolę) */
.product-hotspot img {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
}
.product-hotspot .hotspot-img--hover {
    opacity: 0; /* Domyślnie gradient ukryty */
}


/* FALE OKRĄGŁE (AURA) - SĄ, ALE ZAWSZE UKRYTE */
.product-hotspot::before, .product-hotspot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6); 
    
    opacity: 0; /* KLUCZ: UKRYTE! */
    z-index: 1; 
    
    animation: aura 3s infinite cubic-bezier(0.66, 0, 0, 1);
    transition: opacity 0.3s ease-out;
}
.product-hotspot::after { animation-delay: 1s; }


/* ---------------- ZAKŁADKA TEKSTOWA (Tabletka) ---------------- */
.product__hotspot--title {
    opacity: 0;
    width: 0; 
    height: 50px; 
    
    /* Pozycjonowanie tekstu WZGLĘDEM KROPKI (left: 30px + margin-left: -30px = 0) */
    position: absolute;
    left: 50px; /* START POZA SZEROKOŚCIĄ KROPKI */
    
    display: flex;
    align-items: center;
    overflow: hidden; 
    white-space: nowrap;
    
    background: #FFFFFF; 
    color: #000;
    font-weight: 600; 
    text-transform: uppercase;
    font-size: 15px;

    /* Najechanie na kropkę! */
    margin-left: -50px; /* Całkowita szerokość kropki! */
    padding-left: 55px; /* Nadaj padding, by tekst zaczął się za kropką */
    padding-right: 5px;

    border-radius: 30px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2; 

    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
                opacity 0.1s;
}

/* ---------------- ANIMACJE ---------------- */

@keyframes pulse-glow {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes aura {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(4); opacity: 0; }
}

/* ---------------- EFEKT HOVER ---------------- */

.product__hotspot:hover .product__hotspot--link {
    /* Przesunięcie całego kontenera linku w lewo (o połowę kropki) */
    transform: translateX(-15px); 
}

.product__hotspot:hover .product__hotspot--title {
    opacity: 1;
    /* Ustawienie szerokości na docelową (DOSTOSUJ TĘ WARTOŚĆ!) */
    width: 180px; 
}

/* Właściwy kolor kropki na hover (simulacja gradientu SVG/kolorowego obrysu) */
.product__hotspot:hover .product-hotspot {
    animation-play-state: paused;
    /* box-shadow: 0 0 0 1px #008D9C, 0 0 0 8px rgba(0, 141, 156, 0.2);  */
}

/* Aktywacja SVG na hover */
.product__hotspot:hover .product-hotspot .hotspot-img {
    opacity: 0; 
}
.product__hotspot:hover .product-hotspot .hotspot-img--hover {
    opacity: 1; 
}

/* Zatrzymanie fal na hover i ukrycie ich */
.product__hotspot:hover .product-hotspot::before,
.product__hotspot:hover .product-hotspot::after {
    animation-play-state: paused;
    opacity: 0;
}
/* PRZYKŁADY KOLORÓW NA HOVER */
.product__hotspot.type-medium:hover .product-hotspot {
    box-shadow: 0 0 0 1px #CF2027, 0 0 0 8px rgba(207, 32, 39, 0.2);
}
.product__hotspot.type-dark:hover .product-hotspot {
    box-shadow: 0 0 0 1px #6D6D6D, 0 0 0 8px rgba(109, 109, 109, 0.2);
}

/* -------------------------------------------------------- */
/* --- 3. RESPONSIVE HOTSPOTS (DLA TELEFONÓW < 768px) --- */
/* -------------------------------------------------------- */
@media (max-width: 768px) {

    /* Zmniejszanie rozmiaru kropki */
    .product-hotspot {
        width: 30px; /* Zmniejszamy z 30px na 20px */
        height: 30px;
        margin-top: 5px
    }
    
    /* Zmniejszanie czcionki */
    .product__hotspot--title {
        height: 30px; /* Wysokość pastylki pasuje do kropki (20px) */
        font-size: 9px; /* Zmniejszona czcionka */
        
        /* Zmieniamy zaokrąglenie, by pasowało do 20px wysokości */
        border-radius: 20px; 
    }
    
    /* Zmiana rozmiaru i marginesów zakładki */
    .product__hotspot--title {
        /* Najechanie na kropkę! */
        margin-left: 10px; /* Zmniejszamy, by pasowało do mniejszej kropki */
        padding-left: 40px; 
        padding-right: 15px;
    }
    
    /* Zmiana animacji na hover (musi być dostosowana do nowego rozmiaru) */
    .product__hotspot:hover .product__hotspot--link {
        /* Przesunięcie całego kontenera linku w lewo (teraz tylko o 10px) */
        transform: translateX(-10px); 
    }

    .product__hotspot:hover .product__hotspot--title {
        /* Szerokość pastylki na małym ekranie */
        width: 120px; 
        margin-left: -50px;
        margin-top: -10px;
    }


    /* Korekta animacji pulsowania */
    @keyframes pulse-glow {
        0% { transform: scale(1) translateY(-50%); }
        50% { transform: scale(1.05) translateY(-50%); }
        100% { transform: scale(1) translateY(-50%); }
    }
}

/* Dodajemy klasę, która blokuje interakcję */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Musi być wyżej niż iframe (z-index: 10) */
    pointer-events: all; /* PRZECHWYTUJE WSZYSTKIE KLIKNIĘCIA */
}

