/* ================================
   Tipnine 3D Sphere - Final CSS
   - Transparent background
   - Shadowed images
   - Soft edge fade
   - Mobile smaller items
================================== */

/* Ana wrapper – transparan arka plan, sayfayı bozma */
.tipnine-sphere-wrapper {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  overflow: hidden;
  background: transparent;
}

/* Kenarlarda içten solan maske – taşmaları gizler */
.tipnine-sphere-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Ortası şeffaf, kenarlara doğru hafif kararma */
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.25) 95%
  );
}

/* Sphere ana layout */
.tipnine-sphere-wrapper .sphere-main {
  width: 100vw !important;   /* SADECE GENİŞLİK TAM EKRAN */
  height: 600px;             /* HEIGHT SABİT – sen kaç istiyorsan yaz */
  max-width: 100%;
  aspect-ratio: auto;
  overflow: visible;
  margin: 0 auto;
}


/* 3D sahne */
.tipnine-sphere-wrapper .stage {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 2600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Küre container */
.tipnine-sphere-wrapper .sphere {
  position: relative;
  width: 80%;
  height: 80%;
  transform-style: preserve-3d;
}

/* Küre üzerindeki her görsel kart */
.tipnine-sphere-wrapper .item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 130px;
  margin: -65px -95px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  cursor: pointer;
}

/* Kart içi görsel */
.tipnine-sphere-wrapper .item__image {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tipnine-sphere-wrapper .item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hafif ışık efekti */
.tipnine-sphere-wrapper .item__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(0, 0, 0, 0.35)
  );
  mix-blend-mode: soft-light;
}

/* Hover efekti – hafif yaklaşsın */
.tipnine-sphere-wrapper .item:hover .item__image {
  transform: translateZ(12px) scale(1.04);
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ========================
   ZOOM (Viewer)
======================== */

.tipnine-sphere-wrapper .viewer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 20;
}

/* Zoom açıkken */
.tipnine-sphere-wrapper .viewer.is-active {
  pointer-events: auto;
  opacity: 1;
}

/* Arka karartma */
.tipnine-sphere-wrapper .scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(4px);
}

/* Zoom çerçevesi */
.tipnine-sphere-wrapper .frame {
  position: relative;
  width: min(90vw, 720px);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.9);
  z-index: 1;
}

/* Zoom içi görsel */
.tipnine-sphere-wrapper .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tipnine-sphere-wrapper .sphere-item img {
  transition: filter 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.25);
}

/* ARKADAKİ GÖRSELLER OTOMATİK BLUR */
.tipnine-sphere-wrapper .sphere-item.is-back img {
  filter: blur(4px) brightness(1.3);
  opacity: 0.45;
  box-shadow: 0px 0px 40px rgba(255,255,255,0.7);
}


/* ========================
   RESPONSIVE
======================== */

@media (max-width: 1024px) {
  .tipnine-sphere-wrapper .sphere-main {
    width: min(700px, 100%);
  }

  .tipnine-sphere-wrapper .item {
    width: 170px;
    height: 118px;
    margin: -59px -85px;
  }
}

/* Mobil – görselleri ~%25 küçült */
@media (max-width: 768px) {
  .tipnine-sphere-wrapper {
    padding: 30px 0;
    min-height: 420px;
  }

  .tipnine-sphere-wrapper .sphere-main {
    width: min(520px, 100%);
  }

  .tipnine-sphere-wrapper .item {
    width: 140px;
    height: 98px;
    margin: -49px -70px;
  }

  .tipnine-sphere-wrapper .frame {
    width: 92vw;
  }
}
