
/* ═══════════════════════════════════════════════════════════
   REFERANSLAR SAYFASI
═══════════════════════════════════════════════════════════ */

/* İstatistik bandı */
.ref-istatistik {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--primary-900);
  border-radius: 16px;
  padding: 28px 40px;
  margin-bottom: 56px;
}
.ref-istat-item { text-align: center; padding: 0 40px; }
.ref-istat-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--accent-500); line-height: 1; }
.ref-istat-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); font-weight: 500; margin-top: 4px; display: block; }
.ref-istat-ayrac { width: 1px; height: 48px; background: rgba(255,255,255,0.15); }

/* Referans grid */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

/* ── KART ── */
.ref-kart {
  border: 1.5px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ref-kart:hover {
  border-color: var(--accent-500);
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
}

/* ── GÖRSEL ALANI — HOVER EFEKTİ ── */
.ref-kart__gorsel {
  position: relative;
  overflow: hidden;
  height: 200px;
  display: flex;
  cursor: pointer;
}

/*
  İki adet ref-gorsel-wrap yan yana.
  Normalde: sol (bulanık) görünür, sağ (net) gizli (sağda bekler).
  Hover'da: sol bulanıklaşarak sola kayar, sağ soldan gelir ve netleşir.
*/
.ref-gorsel-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease;
}

/* İlk wrap: başlangıçta bulanık, hover'da sola kayar */
.ref-kart__gorsel .ref-gorsel-wrap:first-child {
  transform: translateX(0);
  filter: blur(4px);
  opacity: 0.7;
  z-index: 1;
}

/* İkinci wrap: başlangıçta sağda gizli, hover'da ortaya gelir */
.ref-kart__gorsel .ref-gorsel-wrap:last-child {
  transform: translateX(100%);
  filter: blur(0);
  opacity: 0;
  z-index: 2;
}

/* HOVER: ilk sola kayar, ikinci ortaya gelir */
.ref-kart:hover .ref-gorsel-wrap:first-child {
  transform: translateX(-100%);
  filter: blur(8px);
  opacity: 0;
}
.ref-kart:hover .ref-gorsel-wrap:last-child {
  transform: translateX(0);
  opacity: 1;
}

.ref-gorsel-ic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-50);
  padding: 24px 40px;
}
.ref-gorsel-img {
  width: auto;
  height: auto;
  max-width: 65%;
  max-height: 80px;
  min-width: 120px;
  min-height: 50px;
  object-fit: contain;
}

/* Placeholder (görsel yokken) */
.ref-gorsel-ic--placeholder {
  flex-direction: column;
  gap: 10px;
  color: var(--neutral-400);
  font-size: 0.85rem;
  font-weight: 600;
}
.ref-placeholder-ikon { width: 40px; height: 40px; color: var(--neutral-300); }

/* ── KART ALT KISIM ── */
.ref-kart__alt {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--neutral-200);
}
.ref-kart__bilgi { flex: 1; }
.ref-kart__etiketler {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.ref-etiket {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-700);
  border: 1px solid var(--neutral-200);
  border-radius: 50px;
  padding: 3px 10px;
  background: var(--neutral-50);
  transition: all 0.2s;
}
.ref-kart:hover .ref-etiket {
  border-color: rgba(37,99,235,0.3);
  color: var(--accent-500);
  background: rgba(37,99,235,0.05);
}
.ref-kart__ad {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--neutral-900);
}
.ref-kart__link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neutral-100);
  border: 1.5px solid var(--neutral-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--neutral-700);
  transition: all 0.2s;
}
.ref-kart__link svg { width: 16px; height: 16px; }
.ref-kart__link:hover {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: #fff;
  transform: scale(1.1);
}
.ref-kart__link--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* Görsel rehber notu */
.ref-gorsel-rehber {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(37,99,235,0.04);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--neutral-500);
  line-height: 1.6;
}
.ref-gorsel-rehber code {
  background: var(--neutral-200);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--neutral-900);
}

/* Responsive */
@media (max-width: 900px) {
  .ref-grid { grid-template-columns: 1fr; }
  .ref-istatistik { flex-direction: column; gap: 16px; padding: 24px; }
  .ref-istat-ayrac { width: 80px; height: 1px; }
}
@media (max-width: 480px) {
  .ref-kart__gorsel { height: 160px; }
}
