/* =============================================================
   GALERİ SAYFASI — galeri.css
   Yıldız Otel | yildizotel.denemesite.com.tr
   ============================================================= */

/* ─────────────────────────────────────────────
   1. Galeri Giriş Alanı
───────────────────────────────────────────── */
.gallery-intro-section {
    padding: 64px 0 0;
    background: var(--white);
}

.gallery-intro-text {
    max-width: 740px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    padding: 0 16px;
}

/* ─────────────────────────────────────────────
   2. Filtre Butonları
───────────────────────────────────────────── */
.gallery-filter-section {
    padding: 44px 0 0;
    background: var(--white);
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 9px 24px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.06);
}

.filter-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.32);
}

/* ─────────────────────────────────────────────
   3. Masonry Galeri Alanı
───────────────────────────────────────────── */
.gallery-masonry-section {
    padding: 42px 0 80px;
    background: var(--white);
}

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
}

/* ─────────────────────────────────────────────
   Galeri Öğesi
───────────────────────────────────────────── */
.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(26, 43, 74, 0.08);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 36px rgba(26, 43, 74, 0.18);
    transform: translateY(-3px);
}

/* Görsel — doğal oran korunur, sabit yükseklik YOK */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.45s ease;
}

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

/* Hover Overlay */
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 28, 50, 0.76) 0%,
        rgba(15, 28, 50, 0.0) 55%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 18px 16px;
    pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Overlay Caption */
.gallery-item-caption {
    color: var(--white);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 7px;
    transform: translateY(10px);
    transition: transform 0.35s ease;
    line-height: 1.3;
}

.gallery-item-caption i {
    color: var(--gold-light);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.gallery-item:hover .gallery-item-caption {
    transform: translateY(0);
}

/* Büyüteç ikonu */
.gallery-item-zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.82rem;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-item-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Filtre ile gizlenen öğeler */
.gallery-item.hidden {
    display: none;
}

/* ─────────────────────────────────────────────
   4. Lightbox Modal Override
───────────────────────────────────────────── */
#galleryModal .modal-dialog {
    max-width: 900px;
}

#galleryModal .modal-content {
    background: #080e1c;
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: var(--radius-md);
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.75);
}

#galleryModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 20px;
    background: transparent;
}

#galleryModal .modal-title {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

#galleryModal .modal-title i {
    color: var(--gold);
    font-size: 0.85rem;
}

#galleryModal .btn-close {
    filter: invert(1) opacity(0.65);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

#galleryModal .btn-close:hover {
    filter: invert(1) opacity(1);
}

#galleryModal .modal-body {
    padding: 0;
    background: #000;
    text-align: center;
    line-height: 0;
}

#galleryModal .modal-body img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
}

/* ─────────────────────────────────────────────
   5. Boş Durum Mesajı (filtre sonucu sıfır)
───────────────────────────────────────────── */
.gallery-empty-msg {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    column-span: all;
}

.gallery-empty-msg.visible {
    display: block;
}

.gallery-empty-msg i {
    font-size: 2.5rem;
    color: var(--border-color);
    display: block;
    margin-bottom: 14px;
}

/* ─────────────────────────────────────────────
   6. Responsive
───────────────────────────────────────────── */

/* Geniş ekranlar: 4 kolon */
@media (min-width: 1400px) {
    .gallery-masonry {
        column-count: 4;
        column-gap: 22px;
    }
}

/* Tablet: 2 kolon */
@media (max-width: 991.98px) {
    .gallery-masonry {
        column-count: 2;
        column-gap: 16px;
    }

    .gallery-item {
        margin-bottom: 16px;
    }

    .gallery-masonry-section {
        padding: 32px 0 60px;
    }

    #galleryModal .modal-dialog {
        max-width: 95vw;
    }
}

/* Mobil: 1 kolon */
@media (max-width: 575.98px) {
    .gallery-masonry {
        column-count: 1;
    }

    .gallery-item {
        margin-bottom: 14px;
        border-radius: var(--radius-sm);
    }

    .gallery-filter-section {
        padding: 32px 0 0;
    }

    .gallery-masonry-section {
        padding: 24px 0 50px;
    }

    .gallery-intro-section {
        padding: 48px 0 0;
    }

    .filter-btn {
        font-size: 0.78rem;
        padding: 8px 18px;
    }
}
