/* Hover efekt pre obrázky v sprievodnom liste */
.word-guide-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    position: relative;
}

.word-guide-image:hover {
    transform: scale(1.6); /* Zväčší na 160% */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 2px solid #1976D2;
}

/* Kontejner pre obrázok - aby sa hover správne zobrazoval */
.word-image-container {
    position: relative;
    overflow: visible; /* Dôležité pre zobrazenie zväčšeného obrázka */
    text-align: center;
    margin: 15px 0;
    z-index: 1;
}

/* Lightbox modal pre veľký náhľad */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Tooltip pre obrázok */
.image-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.word-guide-image:hover + .image-tooltip,
.word-image-container:hover .image-tooltip {
    opacity: 1;
}





/* Pridajte do style.css - rozšírenie pre Word Market sekciu */

/* Hover efekt pre obrázky v sprievodnom liste vo Word Market */
.search-result-section .guide-image img,
.word-guide-container img,
#wordmarket-section .guide-image img {
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    position: relative;
}

.search-result-section .guide-image img:hover,
.word-guide-container img:hover,
#wordmarket-section .guide-image img:hover {
    transform: scale(1.6); /* Zväčší na 160% */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 2px solid #1976D2;
}

/* Kontejner pre obrázok v Word Market - aby sa hover správne zobrazoval */
.search-result-section .guide-image,
.word-guide-container .guide-image,
#wordmarket-section .guide-image {
    position: relative;
    overflow: visible; /* Dôležité pre zobrazenie zväčšeného obrázka */
    text-align: center;
    margin: 15px 0;
    z-index: 1;
}

/* Špecifické štýly pre sprievodný list v sekcii Word Market */
.sprievodny-list-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.sprievodny-list-section h4 {
    color: #1976D2;
    margin-bottom: 15px;
    font-size: 18px;
}

.sprievodny-list-section .guide-description {
    margin-bottom: 15px;
    line-height: 1.6;
}

.sprievodny-list-section .guide-image {
    margin: 15px 0;
    text-align: center;
}

.sprievodny-list-section .guide-link {
    margin-top: 15px;
}

.sprievodny-list-section .guide-link a {
    color: #1976D2;
    text-decoration: none;
    font-weight: 500;
}

.sprievodny-list-section .guide-link a:hover {
    text-decoration: underline;
}








/* ==============================================
   HOVER EFEKTY PRE OBRÁZKY V SPRIEVODNÝCH LISTOCH NA HOME STRÁNKE
   ============================================== */

/* Hover efekt pre obrázky v sprievodných listoch na home stránke */
.guide-preview-golden .guide-image img,
.search-result-content .guide-image img,
.home-container .guide-image img {
    transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0.4s ease;
    cursor: pointer;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    position: relative;
}

.guide-preview-golden .guide-image img:hover,
.search-result-content .guide-image img:hover,
.home-container .guide-image img:hover {
    transform: scale(1.6); /* Zväčší na 160% - rovnako ako v profile */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    border: 3px solid #1a73e8;
}

/* Kontejner pre obrázok na home stránke - aby sa hover správne zobrazoval */
.guide-preview-golden .guide-image,
.search-result-content .guide-image,
.home-container .guide-image {
    position: relative;
    overflow: visible; /* Dôležité pre zobrazenie zväčšeného obrázka */
    text-align: center;
    margin: 15px 0;
    z-index: 1;
}

/* Tooltip pre obrázky na home stránke */
.home-image-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1001;
    font-weight: 500;
}

/* Lightbox pre home stránku */
.home-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    animation: fadeInLightbox 0.3s ease;
}

@keyframes fadeInLightbox {
    from { opacity: 0; }
    to { opacity: 1; }
}

.home-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.home-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.home-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    animation: zoomInImage 0.4s ease-out;
}

@keyframes zoomInImage {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responzívnosť pre mobilné zariadenia */
@media (max-width: 768px) {
    .guide-preview-golden .guide-image img:hover,
    .search-result-content .guide-image img:hover,
    .home-container .guide-image img:hover {
        transform: scale(1.4); /* Menšie zväčšenie na mobil */
    }
    
    .home-lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
        width: 50px;
        height: 50px;
    }
    
    .home-image-tooltip {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Špecifické vylepšenia pre guide-preview-golden */
.guide-preview-golden {
    position: relative;
    overflow: visible;
}

.guide-preview-golden .guide-image {
    margin: 20px 0;
    padding: 10px;
}

/* Animácia pre tooltip */
.guide-image:hover .home-image-tooltip {
    opacity: 1;
}






