/* Image Zoom Styles */

/* Zoom Button Container */
.zoom-container {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
}

.zoom-container img {
    display: block;
    width: 100%;
    height: auto;
}

/* Zoom Button */
.zoom-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}

.zoom-container:hover .zoom-button {
    opacity: 1;
    transform: scale(1);
}

.zoom-button:hover {
    background-color: #007bff;
    color: white;
    transform: scale(1.1);
}

.zoom-button i {
    font-size: 20px;
    color: #333;
}

.zoom-button:hover i {
    color: white;
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: grab;
    overflow: hidden;
}

.zoom-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal.grabbing {
    cursor: grabbing;
}

/* Modal Image Container */
.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.1s ease-out;
}

.zoom-modal-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Close Button */
.zoom-close {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.zoom-close:hover {
    background-color: #dc3545;
    transform: rotate(90deg);
}

.zoom-close i {
    font-size: 24px;
    color: #333;
}

.zoom-close:hover i {
    color: white;
}

/* Zoom Controls */
.zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

.zoom-control-btn {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-control-btn:hover {
    background-color: #007bff;
    color: white;
}

.zoom-control-btn i {
    font-size: 18px;
    color: #333;
}

.zoom-control-btn:hover i {
    color: white;
}

.zoom-level {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    min-width: 50px;
    text-align: center;
}

/* Animation Classes */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

.zoom-modal.active .zoom-modal-content {
    animation: zoomIn 0.3s ease-out;
}

.zoom-modal.closing .zoom-modal-content {
    animation: zoomOut 0.3s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .zoom-button {
        width: 35px;
        height: 35px;
    }
    
    .zoom-button i {
        font-size: 18px;
    }
    
    .zoom-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .zoom-close i {
        font-size: 20px;
    }
    
    .zoom-controls {
        bottom: 20px;
        padding: 8px 15px;
        gap: 10px;
    }
    
    .zoom-control-btn {
        width: 35px;
        height: 35px;
    }
    
    .zoom-control-btn i {
        font-size: 16px;
    }
}

/* Touch Device Indicator */
.zoom-touch-hint {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10000;
}

.zoom-touch-hint.show {
    opacity: 1;
}

