/* Floating Image Plugin - Frontend Styles */
/* Note: width/height are set inline on #floating-container via PHP */

#floating-container {
    position: fixed;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Default position (applied via class from PHP) */
#floating-container.floating-position-bottom-right {
    bottom: 110px;
    right: 25px;
}

#floating-container.floating-position-bottom-left {
    bottom: 110px;
    left: 25px;
}

#floating-container.floating-position-top-right {
    top: 110px;
    right: 25px;
}

#floating-container.floating-position-top-left {
    top: 110px;
    left: 25px;
}

#floating-container.show {
    opacity: 1;
    pointer-events: auto;
}

#floating-img {
    width: 100% !important;
    height: 100% !important;
    cursor: move;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444 !important;
    color: white !important;
    border: 2px solid white;
    border-radius: 50%;
    width: 24px !important;
    height: 24px !important;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
    font-weight: bold;
}

#close-btn:hover {
    background: #cc0000 !important;
}

/* Modal Overlay */
#image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#image-modal.active {
    display: flex;
}

#modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

#modal-close:hover {
    color: #ff4444;
}
