/* ===== GALLERY PAGE STYLES ===== */

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Gallery Category Tabs */
.gallery-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.gallery-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-pink);
    background: transparent;
    color: var(--primary-pink);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.gallery-tab:hover,
.gallery-tab.active {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 140, 0.3);
}

/* Gallery Card */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.gallery-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.8), rgba(199, 21, 133, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-overlay-icon {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.gallery-card-overlay-text {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-title {
    color: var(--white);
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 30, 140, 0.5);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(233, 30, 140, 0.8);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s ease;
    background: rgba(233, 30, 140, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(233, 30, 140, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    color: var(--white);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Gallery Info */
.gallery-info {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.gallery-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.gallery-category-description {
    color: var(--text-light);
    font-size: 1rem;
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--primary-pink);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.gallery-empty h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-tabs {
        gap: 0.5rem;
    }

    .gallery-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .gallery-tabs {
        gap: 0.3rem;
    }

    .gallery-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}
