﻿/* ImageGallery.css */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #f8f9fa;
    min-height: 100vh;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

    .gallery-header h1 {
        font-size: 3rem;
        color: #2d5016;
        font-weight: 300;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

.underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4a7c1d, #a3d95a);
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.hidden-images {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

    .hidden-images.active {
        display: grid;
        animation: fadeInUp 0.6s ease-out;
    }

.image-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3;
    background: #000;
}

    .image-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.image-card:hover .card-image {
    transform: scale(1.05);
}

.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(74, 124, 29, 0.1), rgba(163, 217, 90, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-card:hover::before {
    opacity: 1;
}

.combine-btn-container {
    text-align: center;
    margin-top: 40px;
}

.combine-btn {
    background: linear-gradient(135deg, #4a7c1d 0%, #6ba32b 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(106, 163, 43, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

    .combine-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.5s;
    }

    .combine-btn:hover::before {
        left: 100%;
    }

    .combine-btn:hover {
        background: linear-gradient(135deg, #3a6515 0%, #5a8a22 100%);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(106, 163, 43, 0.4);
    }

    .combine-btn:active {
        transform: translateY(0);
    }

    .combine-btn i {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }

    .combine-btn:hover i {
        transform: rotate(180deg);
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for images */
.card-image {
    opacity: 0;
    animation: imageLoad 0.5s ease forwards;
}

@keyframes imageLoad {
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery-container {
        padding: 30px 15px;
    }

    .gallery-grid,
    .hidden-images {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2.2rem;
    }

    .gallery-grid,
    .hidden-images {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }

    .combine-btn {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding: 20px 10px;
    }

    .gallery-header h1 {
        font-size: 1.8rem;
    }

    .gallery-grid,
    .hidden-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .image-card {
        aspect-ratio: 3/2;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .gallery-container {
        background: #1a1a1a;
    }

    .gallery-header h1 {
        color: #a3d95a;
    }
}
