/* =============================================================
   worlds.css — Section: Ürün Dünyaları (accordion image slider).
   Hover/aktiflik GSAP ile sürülür (worlds.js); dimming opacity-veil ile
   (GPU pürüzsüz). Başlıklar Poppins 700 (bold). State: .is-active sınıfı.
   SCOPE KURALI: HER selector .mcy-worlds kökünden türer.
   ============================================================= */

.mcy-worlds {
  --worlds-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  justify-content: center;
  background: var(--bg-color);
  padding: clamp(20px, 9vh,52px) 24px;
  margin-top: -4.5%;
}
.mcy-worlds .mcy-worlds__inner { width: 100%; max-width: 1320px; }

/* ---------- Header (etkileyici başlık + düzenli alt satır) ---------- */
.mcy-worlds .mcy-worlds__head {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 32px);
  margin-bottom: 36px;
}
.mcy-worlds .mcy-worlds__title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Poppins", sans-serif;
}
.mcy-worlds .mcy-worlds__tlead {
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(28, 22, 18, 0.4);
}
.mcy-worlds .mcy-worlds__tmain {
  margin-top: 8px;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-dark);
}
.mcy-worlds .mcy-worlds__tmain b { font-weight: 700; color: var(--primary-color); }

.mcy-worlds .mcy-worlds__headfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(28, 22, 18, 0.12);
}
.mcy-worlds .mcy-worlds__intro {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 1.55;
  color: rgba(28, 22, 18, 0.6);
}
.mcy-worlds .mcy-worlds__allbtn { flex-shrink: 0; }

/* ---------- Akordeon ray ---------- */
.mcy-worlds .mcy-worlds__rail {
  display: flex;
  gap: 10px;
  height: clamp(460px, 64vh, 600px);
}
.mcy-worlds .mcy-worlds__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  background: #1c1612;
  will-change: flex-grow;
  transition: flex-grow 0.7s var(--worlds-ease); /* JS yoksa fallback */
}
.mcy-worlds .mcy-worlds__panel.is-active { flex-grow: 3.5; }

.mcy-worlds .mcy-worlds__pimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--worlds-ease);
}
.mcy-worlds .mcy-worlds__panel.is-active .mcy-worlds__pimg { transform: scale(1.05); }

/* Karartma: opacity'li veil (GPU, pürüzsüz) */
.mcy-worlds .mcy-worlds__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(14, 9, 6, 0.5);
  opacity: 1;
  transition: opacity 0.55s var(--worlds-ease);
}
.mcy-worlds .mcy-worlds__panel.is-active::before { opacity: 0; }
/* Alt gradient (sabit, yazı için) */
.mcy-worlds .mcy-worlds__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(14, 9, 6, 0.88) 0%, rgba(14, 9, 6, 0.16) 46%, transparent 70%);
}

/* Kapalı şerit: kısa etiket */
.mcy-worlds .mcy-worlds__ptag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: var(--text-light);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s var(--worlds-ease);
}
.mcy-worlds .mcy-worlds__ptag::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-light);
}
.mcy-worlds .mcy-worlds__panel.is-active .mcy-worlds__ptag { opacity: 0; }

/* Açık şerit: tam içerik */
.mcy-worlds .mcy-worlds__pcontent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(22px, 1.8vw, 30px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--worlds-ease), transform 0.45s var(--worlds-ease);
}
/* Panel genişledikten SONRA içerik fade+slide ile gelir (sıkışma/kayma olmaz) */
.mcy-worlds .mcy-worlds__panel.is-active .mcy-worlds__pcontent {
  opacity: 1;
  transform: none;
  transition-delay: 0.26s;
}

.mcy-worlds .mcy-worlds__pname {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--text-light);
  white-space: nowrap;
}
.mcy-worlds .mcy-worlds__pdesc {
  margin: 0;
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.mcy-worlds .mcy-worlds__plink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-light);
}
.mcy-worlds .mcy-worlds__plink .mcy-ico { width: 15px; height: 15px; transition: transform 0.35s var(--worlds-ease); }
.mcy-worlds .mcy-worlds__panel.is-active .mcy-worlds__plink .mcy-ico { transform: translate(3px, -3px); }

/* ============================ Responsive ============================ */
@media (max-width: 820px) {
  .mcy-worlds .mcy-worlds__rail { flex-direction: column; height: auto; gap: 12px; }
  .mcy-worlds .mcy-worlds__panel,
  .mcy-worlds .mcy-worlds__panel.is-active { flex: none !important; height: 204px; flex-grow: 0 !important; }
  .mcy-worlds .mcy-worlds__panel::before { opacity: 0.2 !important; }
  .mcy-worlds .mcy-worlds__pimg { transform: none !important; }
  .mcy-worlds .mcy-worlds__ptag { opacity: 0 !important; }
  .mcy-worlds .mcy-worlds__pcontent { opacity: 1 !important; transform: none !important; }
  .mcy-worlds .mcy-worlds__headfoot { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .mcy-worlds .mcy-worlds__panel,
  .mcy-worlds .mcy-worlds__pimg,
  .mcy-worlds .mcy-worlds__pcontent,
  .mcy-worlds .mcy-worlds__ptag,
  .mcy-worlds .mcy-worlds__panel::before { transition: none; }
}
