/* ═══════════════════════════════════════════
   KENTDEKS — 3D SİLİNDİR CAROUSEL (vanilla)
   Sürükleyince dönen, tıklanınca bilgi+görsel
   penceresi açan galeri. Referans: 3d-carousel
   bileşeninin etkileşim dili (framer-motion'sız)
═══════════════════════════════════════════ */

/* ── SAHNE ── */
.c3d-stage {
  position: relative;
  height: 380px;
  width: 100%;
  overflow: hidden;
  perspective: 1000px;
  touch-action: pan-y;          /* dikey sayfa kaydırması çalışsın */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.c3d-stage.dragging { cursor: grabbing; }

.c3d-cyl {
  position: absolute;
  top: 0; left: 50%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── YÜZLER ── */
.c3d-face {
  position: absolute;
  top: 0;
  height: 100%;
  padding: 8px;
  transform-style: preserve-3d;
}
.c3d-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--n100);
  border: 1px solid var(--n200);
  box-shadow: 0 14px 40px rgba(15, 23, 42, .16);
}
.c3d-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}
.c3d-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 14px 14px;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.55) 40%, rgba(15,23,42,.92) 100%);
  color: #fff;
  pointer-events: none;
  text-align: center;
}
.c3d-cap b {
  display: -webkit-box;
  -webkit-line-clamp: 2;        /* 3 satira sarip sikismasin */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-shadow: 0 1px 6px rgba(15, 23, 42, .6);
}
.c3d-cap span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  opacity: .92;
  margin-top: 3px;
  text-shadow: 0 1px 5px rgba(15, 23, 42, .6);
}
.c3d-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--blue-600);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .35);
}
/* Tıklanabilirlik ipucu — hover'da kart hafif parlar */
.c3d-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 0 rgba(96, 165, 250, 0);
  transition: box-shadow .25s;
  pointer-events: none;
}
.c3d-face:hover .c3d-card::after {
  box-shadow: inset 0 0 0 2px rgba(96, 165, 250, .85);
}

/* Sürükleme ipucu */
.c3d-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--n400);
}
.c3d-hint i { color: var(--blue-500); }

/* ── BİLGİ + GÖRSEL PENCERESİ ── */
.c3d-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.c3d-modal.open { display: flex; animation: c3dFade .25s ease; }
@keyframes c3dFade { from { opacity: 0; } to { opacity: 1; } }

.c3d-box {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--s4);
  animation: c3dPop .35s cubic-bezier(.22, 1, .36, 1);
}
@keyframes c3dPop {
  from { transform: scale(.92) translateY(14px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.c3d-box-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.c3d-box-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c3d-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  cursor: pointer;
  box-shadow: var(--s2);
  transition: transform .2s;
}
.c3d-close:hover { transform: rotate(90deg); }
.c3d-box-media .c3d-badge { top: 14px; left: 14px; font-size: 12px; padding: 5px 12px; }

.c3d-box-body { padding: 22px 26px 26px; }
.c3d-box-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.01em;
}
.c3d-box-sub {
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--blue-600);
  font-weight: 600;
}
.c3d-box-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--n600);
}
.c3d-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--n200);
  border: 1px solid var(--n200);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 18px;
}
.c3d-meta div { background: var(--n50); padding: 12px 14px; }
.c3d-meta span {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--n500);
  margin-bottom: 3px;
}
.c3d-meta b { font-size: 16px; color: var(--navy-800); font-weight: 700; }
.c3d-box-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── MOBİL ── */
@media (max-width: 640px) {
  .c3d-stage { height: 300px; }
  .c3d-cap { padding: 36px 10px 11px; }
  .c3d-cap b { font-size: 15px; }
  .c3d-cap span { font-size: 12.5px; }
  .c3d-box-title { font-size: 20px; }
  .c3d-box-body { padding: 18px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .c3d-modal.open, .c3d-box { animation: none; }
}
