/**
 * تصميم حديث لـ Lightbox - Egypt Projects Map
 * Modern Lightbox UI Design
 * 
 * @package Egypt_Projects_Map
 * @version 2.0.0
 */

/* ========================================
   Lightbox Overlay
======================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lightbox-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* ========================================
   Lightbox Container
======================================== */
.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Navigation Buttons
======================================== */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    font-size: 24px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
    transform: scale(0.95);
}

/* Close Button */
.lightbox-close {
    top: 24px;
    right: 24px;
}

/* Navigation Arrows */
.lightbox-prev {
    right: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: calc(50% + 32px);
}

.lightbox-next {
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: calc(50% + 32px);
}

/* ========================================
   Content
======================================== */
.lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Image */
.lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Caption */
.lightbox-caption {
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
    .lightbox-prev {
        margin-right: calc(50% + 16px);
    }
    
    .lightbox-next {
        margin-left: calc(50% + 16px);
    }
    
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .lightbox-counter {
        bottom: 16px;
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
    
    .lightbox-caption {
        font-size: 14px;
        padding: 12px 20px;
    }
}
