﻿/* --- 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 --- */
.gallery-hero {
    background-color: var(--premium-red);
    border-bottom: 4px solid var(--lux-gold);
    padding: 30px 20px 40px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-back-link {
    position: absolute;
    top: 20px;
    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;
    text-transform: uppercase;
    letter-spacing: 6px;
    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 VE HOVER ETKİSİ --- */
.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;
    cursor: pointer; /* Resimlerin tıklanabilir olduğunu gösterir */
}

    .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;
    }

/* Okunabilirliği Artırılmış Arka Plan (Gradient Yükseltildi) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, 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:hover img {
    transform: scale(1.05); /* Üzerine gelince resmi hafifçe büyütür */
}

.gallery-item.hide {
    display: none;
}

/* Başlık ve Kategori Metni İçin Okunabilirlik Ayarları */
.gallery-overlay h4 {
    color: #ffffff;
    font-family: var(--serif);
    font-size: 1.6rem;
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8); /* Arka plandan kopması için gölge eklendi */
}

.gallery-overlay span {
    color: var(--lux-gold);
    font-family: var(--sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

/* --- 7. LIGHTBOX & SLIDER --- */
.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;
        user-select: none; /* Resim sürüklemeyi engeller */
    }

    .lightbox.active img {
        transform: scale(1);
    }

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 100000;
}

    .lightbox-close:hover {
        color: var(--premium-red);
    }

/* Lightbox Yön Okları */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 100000;
}

    .lightbox-nav:hover {
        color: #ffffff;
        transform: translateY(-50%) scale(1.1);
    }

    .lightbox-nav.prev {
        left: 20px;
    }

    .lightbox-nav.next {
        right: 20px;
    }

/* Mobil Tasarım */
@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;
    }

    .lightbox-nav {
        font-size: 2rem;
        padding: 10px;
    }

        .lightbox-nav.prev {
            left: 5px;
        }

        .lightbox-nav.next {
            right: 5px;
        }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 3rem;
    }
}
