/* Değişim27 Evden Eve Nakliyat - Galeri Sayfası CSS */

@import url('./index.css');

/* Gallery Grid Animations */
.gallery-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Image Hover Effects */
.gallery-item img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Filter Buttons */
.filter-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(19, 127, 236, 0.3);
}

/* Lightbox Styles */
#lightbox {
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#lightbox-image {
    animation: zoomIn 0.3s ease-out;
    max-height: 80vh;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation Buttons */
#prev-image,
#next-image {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#prev-image:hover,
#next-image:hover {
    background: rgba(19, 127, 236, 0.8);
    transform: scale(1.1);
}

#close-lightbox {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#close-lightbox:hover {
    background: rgba(220, 38, 38, 0.8);
    transform: scale(1.1);
}

/* Stats Animation */
.stats-counter {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, #0f6bc7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Masonry Layout Effect */
.gallery-grid {
    column-count: 4;
    column-gap: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

@media (max-width: 1280px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* Loading Animation */
.gallery-item.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Image Lazy Loading */
.gallery-item img[data-src] {
    filter: blur(5px);
    transition: filter 0.3s;
}

.gallery-item img.loaded {
    filter: blur(0);
}

/* Category Badges */
.category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(19, 127, 236, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .category-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 1rem;
    }

    #prev-image,
    #next-image {
        width: 50px;
        height: 50px;
    }

    #lightbox-info {
        bottom: 2px;
        left: 2px;
        right: 2px;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {

    .filter-btn,
    #lightbox,
    .whatsapp-float {
        display: none !important;
    }

    .gallery-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}