/* ============================================
   GALERI.CSS — galeri.html stiller
   ============================================ */

/* ---- HERO ---- */
.hero {
  position: relative;
  background: var(--bg);
  padding: 72px 28px 60px;
  text-align: center;
  overflow: hidden;
}

/* Animasyonlu grid arka plan */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,168,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,168,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

/* Mavi glow ortada */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,168,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* Sayfa açılınca hero elemanları gecikimli gelsin */
.hero-eyebrow { animation: fadeUp 0.6s 0.05s cubic-bezier(0.22,1,0.36,1) both; }
.hero h1      { animation: fadeUp 0.6s 0.18s cubic-bezier(0.22,1,0.36,1) both; }
.hero p       { animation: fadeUp 0.6s 0.30s cubic-bezier(0.22,1,0.36,1) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-glow);
  border: 1px solid var(--border-active);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero h1 .highlight {
  color: var(--blue);
  position: relative;
}

.hero p {
  font-size: 15px;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* ---- FİLTRE BARI ---- */
.filter-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-dim);
  font-weight: 500;
  margin-right: 4px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--gray-dim);
  color: var(--gray);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.3px;
}

.filter-btn:hover {
  border-color: var(--blue-dim);
  color: var(--white);
  background: var(--blue-glow);
}

.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #000;
  font-weight: 600;
}

/* ---- GALERİ ALANI ---- */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ---- KART ---- */
.artwork-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;

  /* Giriş animasyonu başlangıç durumu */
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    border-color 0.22s,
    box-shadow 0.22s;
}

/* JS ile eklenir — görünür hale getirir */
.artwork-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.artwork-card:hover {
  transform: translateY(-5px) scale(1) !important;
  border-color: var(--border-active);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px var(--border-active), 0 0 40px var(--blue-glow);
}

.artwork-card:hover .card-overlay { opacity: 1; }
.artwork-card:hover .card-img img { transform: scale(1.06); }

/* Resim alanı */
.card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0a0f14;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,168,255,0.25) 0%, rgba(8,12,16,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s;
}

.card-overlay span {
  background: var(--blue);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
}

/* QR rozet */
.qr-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(8,12,16,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-active);
  border-radius: 6px;
  padding: 6px;
  z-index: 2;
}

.qr-badge svg { display: block; width: 26px; height: 26px; }

/* Üst renk şeridi */
.card-stripe {
  height: 2px;
  background: linear-gradient(to right, var(--blue), var(--blue-dim), transparent);
}

/* Kart bilgi alanı */
.card-body { padding: 16px 18px 20px; }

.card-period {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 3px;
  color: var(--white);
}

.card-artist {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--gray);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gray-dim);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---- MOBİL ---- */
@media (max-width: 600px) {
  .hero { padding: 48px 20px 40px; }
  .filter-bar { padding: 14px 20px; }
  .gallery-section { padding: 28px 16px 48px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .filter-label { display: none; }
}
/* ============================================
   EK ANİMASYONLAR — v2 Geliştirme
   ============================================ */

/* Kart hover — daha güçlü lift efekti */
.artwork-card {
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.32s cubic-bezier(0.22,1,0.36,1),
              border-color 0.22s ease;
}
.artwork-card:hover {
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 20px 48px rgba(0,168,255,0.18), 0 4px 16px rgba(0,0,0,0.5);
}

/* Görsel zoom efekti */
.artwork-card .card-img img {
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.artwork-card:hover .card-img img {
  transform: scale(1.06);
}

/* Card overlay kayarak gelsin */
.card-overlay {
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
  backdrop-filter: blur(0px);
}
.artwork-card:hover .card-overlay {
  backdrop-filter: blur(4px);
}

/* QR badge dönsün */
.artwork-card:hover .qr-badge {
  transform: rotate(8deg) scale(1.1);
}
.qr-badge {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* Filter bar animasyonu */
.filter-bar {
  animation: fadeUp 0.5s 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

/* Hero grid arka plan hareketi */
.hero::before {
  animation: gridSlide 20s linear infinite;
}
@keyframes gridSlide {
  0%   { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

/* Section label soldan gelsin */
.section-label {
  animation: fadeRight 0.6s 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Kart visible animasyonu iyileştirme */
.artwork-card {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1),
              transform 0.45s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.32s ease,
              border-color 0.22s ease;
}
.artwork-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.artwork-card.visible:hover {
  transform: translateY(-8px) scale(1.012);
}

/* Card stripe parlaklık animasyonu */
.card-stripe {
  background: linear-gradient(90deg, var(--blue-dim), var(--blue), var(--blue-dim));
  background-size: 200% 100%;
  animation: stripeShine 3s ease infinite;
}
@keyframes stripeShine {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Logo badge nabız */
.logo-badge {
  animation: logoPulse 4s ease infinite;
}
@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(0,168,255,0.22); }
  50%       { box-shadow: 0 0 30px rgba(0,168,255,0.45); }
}

/* Footer fade */
footer {
  animation: fadeUp 0.6s 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
