/* ============================================================
   ATIKLER FLAKE — Galeri Sayfası
   Dosya: assets/galeri.css
   Ton: Beyaz ağırlıklı, kırmızı aksanlı
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;900&family=Barlow:wght@400;500;600&display=swap');

:root {
  --red:        #D32F2F;
  --red2:       #FF5252;
  --red-dim:    rgba(211,47,47,0.07);
  --red-border: rgba(211,47,47,0.2);
  --dark:       #0C0D11;
  --white:      #FFFFFF;
  --off-white:  #F7F8F9;
  --border-l:   rgba(0,0,0,0.07);
  --text:       #181A20;
  --text-m:     #55586A;
  --text-s:     #9194A3;
  --ease:       cubic-bezier(.22,1,.36,1);
}

/* ============================================================
   HERO
   ============================================================ */
.gal-hero {
  background: var(--white);
  position: relative; overflow: hidden;
  padding: 120px 44px 64px;
  font-family: 'Barlow', sans-serif;
  border-bottom: 1px solid var(--border-l);
  text-align: center;
}

.gal-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(211,47,47,0.05) 0%, transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(211,47,47,0.04) 0%, transparent 60%);
}

.gal-hero-inner {
  position: relative; z-index: 1;
  max-width: 860px; margin: 0 auto;
}

.gal-breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-s);
  margin-bottom: 32px;
}
.gal-breadcrumb a { color: var(--text-s); text-decoration: none; transition: color 0.2s; }
.gal-breadcrumb a:hover { color: var(--red); }
.gal-breadcrumb > span:last-child { color: var(--red); }

.gal-hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 16px;
}
.gal-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
}

.gal-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 900; line-height: 0.92;
  text-transform: uppercase; letter-spacing: -2px;
  color: var(--text); margin: 0 0 16px;
  animation: galFadeUp 0.75s var(--ease) both;
}

@keyframes galFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gal-hero-sub {
  font-size: 16px; color: var(--text-m); line-height: 1.7;
  max-width: 420px; margin: 0 auto 40px;
  animation: galFadeUp 0.75s 0.1s var(--ease) both;
}

/* Filtre tabları */
.gal-filter-tabs {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--off-white);
  border: 1px solid var(--border-l);
  border-radius: 12px; padding: 5px;
  animation: galFadeUp 0.75s 0.2s var(--ease) both;
}

.gal-tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 20px; border-radius: 8px; border: none;
  background: transparent; color: var(--text-m);
  cursor: pointer; transition: all 0.25s var(--ease);
}
.gal-tab.active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.gal-tab:hover:not(.active) {
  color: var(--text);
}

.gal-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; border-radius: 6px; padding: 0 5px;
  background: var(--red-dim); border: 1px solid var(--red-border);
  font-size: 10px; color: var(--red);
}
.gal-tab.active .gal-tab-count {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* ============================================================
   GALERİ BÖLÜMÜ
   ============================================================ */
.gal-section {
  background: var(--off-white);
  padding: 60px 44px 80px;
  font-family: 'Barlow', sans-serif;
  min-height: 50vh;
}

.gal-inner {
  max-width: 1400px; margin: 0 auto;
}

/* GRID — CSS columns masonry efekti */
.gal-grid {
  columns: 4;
  column-gap: 14px;
}

/* GALERİ ITEM — genel */
.gal-item {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: 14px; overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  animation: galItemIn 0.55s var(--delay, 0ms) var(--ease) forwards;
}

@keyframes galItemIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Gizlenen item (filtre) */
.gal-item.hidden {
  display: none;
}

.gal-item-inner {
  position: relative; overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border-l);
}

/* FOTOĞRAF */
.gal-img {
  width: 100%; display: block;
  transition: transform 0.6s var(--ease);
}
.gal-item:hover .gal-img {
  transform: scale(1.06);
}

/* OVERLAY */
.gal-item-overlay {
  position: absolute; inset: 0;
  background: rgba(12, 13, 17, 0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.gal-item:hover .gal-item-overlay {
  background: rgba(12, 13, 17, 0.42);
}

.gal-item-zoom {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.gal-item:hover .gal-item-zoom {
  opacity: 1; transform: scale(1);
}
.gal-item-zoom svg { width: 22px; height: 22px; }

/* VİDEO KARTI */
.gal-item--video .gal-item-inner {
  background: var(--dark);
}

.gal-video-thumb {
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, #16181F 0%, #0C0D11 100%);
  position: relative; overflow: hidden;
}

/* Arka plan ızgara deseni */
.gal-video-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

.gal-video-icon-wrap {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

.gal-play-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(211,47,47,0.15);
  border: 1.5px solid rgba(211,47,47,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--red2);
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.gal-item:hover .gal-play-btn {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 28px rgba(211,47,47,0.5);
}
.gal-play-btn svg { width: 28px; height: 28px; }

.gal-video-type-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 12px; border-radius: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.gal-item:hover .gal-video-type-badge {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
}

.gal-video-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.8);
}

/* ============================================================
   BOŞ DURUM
   ============================================================ */
.gal-empty {
  text-align: center; padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.gal-empty-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: var(--red-dim); border: 1px solid var(--red-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); margin-bottom: 4px;
}
.gal-empty-icon svg { width: 32px; height: 32px; }
.gal-empty strong { font-size: 18px; color: var(--text); font-weight: 700; }
.gal-empty span   { font-size: 14px; color: var(--text-s); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.gal-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  pointer-events: none; opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gal-lightbox.open {
  pointer-events: all; opacity: 1;
}

.gal-lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 9, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gal-lb-box {
  position: relative; z-index: 1;
  max-width: 1100px; width: 100%;
  display: flex; align-items: center; gap: 0;
}

/* İçerik alanı */
.gal-lb-content {
  flex: 1;
  border-radius: 16px; overflow: hidden;
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
}
.gal-lightbox.open .gal-lb-content {
  transform: scale(1);
}

.gal-lb-content img {
  width: 100%; display: block;
  max-height: 85vh; object-fit: contain;
  background: #000;
}

/* iframe (video) */
.gal-lb-content iframe {
  width: 100%; aspect-ratio: 16/9; display: block; border: none;
}

/* HTML5 video */
.gal-lb-content video {
  width: 100%; display: block; border-radius: 16px;
}

/* Kapat butonu */
.gal-lb-close {
  position: absolute; top: -16px; right: -16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; z-index: 2;
  transition: background 0.2s, transform 0.2s;
}
.gal-lb-close:hover {
  background: var(--red); transform: scale(1.1);
}
.gal-lb-close svg { width: 18px; height: 18px; }

/* Navigasyon */
.gal-lb-nav {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin: 0 10px;
}
.gal-lb-nav:hover {
  background: rgba(255,255,255,0.16); transform: scale(1.08);
}
.gal-lb-nav:disabled {
  opacity: 0.25; cursor: default; transform: none;
}
.gal-lb-nav svg { width: 20px; height: 20px; }

/* Sayaç */
.gal-lb-counter {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   TABLET
   ============================================================ */
@media (max-width: 1200px) {
  .gal-grid { columns: 3; }
}

@media (max-width: 900px) {
  .gal-hero  { padding: 100px 28px 52px; }
  .gal-section { padding: 44px 28px 60px; }
  .gal-grid  { columns: 2; }
  .gal-lb-nav { display: none; }
  .gal-lb-content { border-radius: 12px; }
}

/* ============================================================
   MOBİL
   ============================================================ */
@media (max-width: 600px) {
  .gal-hero  { padding: 88px 18px 44px; }
  .gal-hero-title { font-size: clamp(48px, 14vw, 80px); }
  .gal-section { padding: 36px 18px 52px; }
  .gal-grid  { columns: 1; }
  .gal-filter-tabs { width: 100%; justify-content: stretch; }
  .gal-tab { flex: 1; justify-content: center; }
  .gal-lb-close { top: -8px; right: -8px; }
}