/* ====================================
   GALERIE SEITE - CLEAN & PROFESSIONAL
   ==================================== */

/* Back Button Section */
.back-section {
    padding: 2rem 2rem 1rem;
    background: #faf8f5;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background: #e0cdb2;
    color: #5e4b45;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.back-btn:hover {
    background: #d4c1a6;
    transform: translateX(-3px);
}

.back-btn ion-icon {
    font-size: 1.2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #e0cdb2 0%, #d4c1a6 100%);
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    color: #5e4b45;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.cat-info {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #7a6860;
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 2rem;
    background: #f5f0e8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(94, 75, 69, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(94, 75, 69, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Scroll to Top */
.scroll-top-section {
    padding: 2rem 2rem 4rem;
    background: #f5f0e8;
    text-align: center;
}

/* Credit Section */
.credit-section {
    padding: 0 2rem 3rem;
    background: #f5f0e8;
}

.credit-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(94, 75, 69, 0.1);
    border-left: 4px solid #e0cdb2;
}

.credit-box p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #6d5d4d;
    font-style: italic;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credit-box ion-icon {
    font-size: 1.5rem;
    color: #e0cdb2;
    flex-shrink: 0;
}

.credit-box a {
    color: #5e4b45;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit-box a:hover {
    color: #e0cdb2;
}

.scroll-top-section {
    padding: 2rem 2rem 4rem;
    background: #f5f0e8;
    text-align: center;
}

.scroll-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 15px 35px;
    background: #e0cdb2;
    color: #5e4b45;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.scroll-top-btn:hover {
    background: #d4c1a6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(94, 75, 69, 0.2);
}

.scroll-top-btn ion-icon {
    font-size: 1.3rem;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.75rem;
    }
}

@media screen and (max-width: 768px) {
    .back-section {
        padding: 1.5rem 1.5rem 0.75rem;
    }

    .page-header {
        padding: 2.5rem 1.5rem;
    }

    .gallery-section {
        padding: 3rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .credit-section {
        padding: 0 1.5rem 2.5rem;
    }

    .credit-box {
        padding: 1.5rem;
    }

    .credit-box p {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .scroll-top-section {
        padding: 1.5rem 1.5rem 3rem;
    }

    .scroll-top-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gallery-item {
        aspect-ratio: 1 / 1;
    }

    .back-btn,
    .scroll-top-btn {
        font-size: 0.9rem;
        padding: 12px 25px;
    }
}

/* Image Loading Animation */
.gallery-item img {
    animation: fadeIn 0.5s ease-in;
}

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

/* Print Styles */
@media print {
    .back-section,
    .scroll-top-section,
    .page-header {
        display: none;
    }

    .gallery-section {
        padding: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-item {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .gallery-item:hover {
        transform: none;
    }
}
