/**
 * Godaa Gallery - Frontend Styles
 */

/* ===================================
   Lightbox
   =================================== */

.godaa-gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.godaa-gallery-lightbox.active {
    display: flex;
}

.godaa-gallery-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.godaa-gallery-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    animation: godaaFadeIn 0.3s ease;
}

@keyframes godaaFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.godaa-gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.godaa-gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.godaa-gallery-lightbox-close::before,
.godaa-gallery-lightbox-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
}

.godaa-gallery-lightbox-close::before {
    transform: rotate(45deg);
}

.godaa-gallery-lightbox-close::after {
    transform: rotate(-45deg);
}

/* Navigation Arrows */
.godaa-gallery-lightbox-prev,
.godaa-gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.godaa-gallery-lightbox-prev {
    left: 30px;
}

.godaa-gallery-lightbox-next {
    right: 30px;
}

.godaa-gallery-lightbox-prev:hover,
.godaa-gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.godaa-gallery-lightbox-prev::before,
.godaa-gallery-lightbox-next::before {
    content: '';
    width: 12px;
    height: 12px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
}

.godaa-gallery-lightbox-prev::before {
    transform: rotate(45deg);
    margin-left: 5px;
}

.godaa-gallery-lightbox-next::before {
    transform: rotate(-135deg);
    margin-right: 5px;
}

/* Counter */
.godaa-gallery-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

/* Loading State */
.godaa-gallery-lightbox-loading {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: godaaRotate 0.8s linear infinite;
}

@keyframes godaaRotate {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 768px) {
    .godaa-gallery-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .godaa-gallery-lightbox-close::before,
    .godaa-gallery-lightbox-close::after {
        width: 20px;
    }

    .godaa-gallery-lightbox-prev,
    .godaa-gallery-lightbox-next {
        width: 50px;
        height: 50px;
    }

    .godaa-gallery-lightbox-prev {
        left: 10px;
    }

    .godaa-gallery-lightbox-next {
        right: 10px;
    }

    .godaa-gallery-lightbox-counter {
        bottom: 20px;
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Prevent body scroll when lightbox is active */
body.godaa-gallery-lightbox-open {
    overflow: hidden;
}
