﻿/* --- 1. FONT TANIMLAMASI --- */
@font-face {
    font-family: 'LaSeduction';
    src: url('/css/La_Seduction_Nuit.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- 2. DEĞİŞKENLER --- */
:root {
    --lux-gold: #c5a059;
    --lux-black: #1a1a1a;
    --lux-gray: #757575;
    --lux-bg: #ffffff;
    --premium-red: #914724;
    --serif: 'Playfair Display', serif;
    --sans: 'Inter', sans-serif;
}

/* --- 3. ÖZEL FONT SINIFI --- */
.custom-header-font {
    font-family: 'LaSeduction', serif !important;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* --- 4. GALLERY HERO (YÜKSEKLİK DENGELENDİ) --- */
.gallery-hero {
    background-color: var(--premium-red);
    border-bottom: 4px solid var(--lux-gold);
    padding: 30px 20px 40px; /* Diğer sayfalarla tam aynı (30px üst, 40px alt) */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-back-link {
    position: absolute;
    top: 20px; /* Diğer sayfalarla hizalandı */
    left: 20px;
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    z-index: 5000;
}

.gallery-hero .subtitle {
    font-family: var(--sans);
    font-size: 0.7rem; /* Boyut dengelendi */
    text-transform: uppercase;
    letter-spacing: 6px; /* Diğerleriyle aynı spacing */
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.1;
}

/* --- 5. FİLTRE BUTONLARI --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
    padding: 0 20px;
}

.filter-btn {
    background: white;
    border: 1px solid #eaeaea;
    padding: 10px 25px;
    font-family: var(--sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--lux-gray);
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.4s ease;
}

    .filter-btn:hover, .filter-btn.active {
        background: var(--lux-gold);
        border-color: var(--lux-gold);
        color: #fff;
        box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    }

/* --- 6. GRID --- */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.8s ease;
    }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item.hide {
    display: none;
}

/* --- 7. LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

    .lightbox.active {
        opacity: 1;
        pointer-events: all;
    }

    .lightbox img {
        max-width: 90%;
        max-height: 85vh;
        border-radius: 4px;
        transform: scale(0.95);
        transition: transform 0.4s ease;
    }

    .lightbox.active img {
        transform: scale(1);
    }

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.5rem !important;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-auto-rows: 250px;
    }
}
