/* =========================================================
   MUSCLE // ATLAS — Röntgen Spot Işığı Kas Haritası
   Namespace: .wcs-atlas
   ========================================================= */

html, body { margin: 0; padding: 0; }

.wcs-atlas {
  --wcs-accent: #59c8ff;
  --wcs-spot-x: 50%;
  --wcs-spot-y: 33%;
  --wcs-spot-r: 0px;
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  max-height: 1300px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 40%, #10181e 0%, #07090b 60%),
    #07090b;
  color: #eef4f8;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.wcs-atlas * {
  box-sizing: border-box;
}

.wcs-atlas__layout {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(24px, 5vw, 80px);
}

/* ---------- Sol panel ---------- */
.wcs-atlas__panel {
  max-width: 480px;
  flex: 1 1 auto;
}

.wcs-atlas__kicker {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wcs-accent);
  margin-bottom: 16px;
}

.wcs-atlas__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  margin: 0 0 14px;
  line-height: 1.14;
}

.wcs-atlas__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(238, 244, 248, 0.68);
  max-width: 42ch;
  margin: 0 0 30px;
}

/* ---------- Bilgi kartı ---------- */
.wcs-atlas__info {
  border: 1px solid rgba(238, 244, 248, 0.14);
  border-left: 3px solid var(--wcs-accent);
  border-radius: 6px;
  background: rgba(7, 9, 11, 0.6);
  backdrop-filter: blur(8px);
  padding: 22px 24px;
  max-width: 380px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wcs-atlas__info.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- Egzersiz videosu ---------- */
.wcs-atlas__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #0a0d10;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.wcs-atlas__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wcs-atlas__video-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(7, 9, 11, 0.72);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(238, 244, 248, 0.2);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wcs-accent);
}

/* ---------- Işıklı bağlantı teli ---------- */
.wcs-atlas__wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}
.wcs-atlas__wire-path {
  fill: none;
  stroke: url(#wcsAtlasWireGrad);
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(238, 244, 248, 0.55));
}
.wcs-atlas__wire-dot {
  fill: #fff;
  filter: drop-shadow(0 0 8px rgba(238, 244, 248, 0.9));
  opacity: 0;
}

.wcs-atlas__info-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.wcs-atlas__info-num {
  font-family: Georgia, serif;
  font-size: 0.9rem;
  color: rgba(238, 244, 248, 0.4);
}
.wcs-atlas__info-name {
  margin: 0;
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
}

.wcs-atlas__info-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.wcs-atlas__info-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(238, 244, 248, 0.85);
  border-bottom: 1px dashed rgba(238, 244, 248, 0.12);
  padding-bottom: 7px;
}
.wcs-atlas__info-list li span {
  color: rgba(238, 244, 248, 0.5);
  font-size: 0.8rem;
  white-space: nowrap;
}

.wcs-atlas__info-foot {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wcs-accent);
}

/* ---------- Figür + spot ışığı ---------- */
.wcs-atlas__figure {
  position: relative;
  flex: 0 0 auto;
  height: min(86vh, 780px);
  aspect-ratio: 2 / 3;
  user-select: none;
}

.wcs-atlas__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Taban görsel: kas seçiliyken kararır */
.wcs-atlas__img--base {
  filter: brightness(0.62) saturate(0.55);
  transition: filter 0.5s ease;
}
.wcs-atlas.is-idle .wcs-atlas__img--base {
  filter: brightness(0.95) saturate(0.9);
}

/* Işıklı kopya: yalnızca spot dairesi içinde görünür */
.wcs-atlas__img--lit {
  filter: brightness(1.22) saturate(1.15) contrast(1.06);
  -webkit-mask-image: radial-gradient(
    circle var(--wcs-spot-r) at var(--wcs-spot-x) var(--wcs-spot-y),
    #000 0%, #000 62%, transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--wcs-spot-r) at var(--wcs-spot-x) var(--wcs-spot-y),
    #000 0%, #000 62%, transparent 100%
  );
  transition:
    -webkit-mask-position 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    mask-position 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Spot konum/yarıçap geçişini custom property üzerinden yumuşatmak için */
@supports (transition: --wcs-spot-x 0.4s) {
  .wcs-atlas__img--lit {
    transition: none;
  }
}

/* ---------- Hotspot noktaları ---------- */
.wcs-atlas__hotspots {
  position: absolute;
  inset: 0;
}

.wcs-atlas__dot {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.wcs-atlas__dot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(238, 244, 248, 0.95);
  box-shadow: 0 0 10px rgba(89, 200, 255, 0.9);
  transition: transform 0.25s ease, background 0.25s ease;
}
.wcs-atlas__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(89, 200, 255, 0.65);
  animation: wcs-atlas-pulse 2.4s ease-out infinite;
}
@keyframes wcs-atlas-pulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wcs-atlas__dot:hover::before,
.wcs-atlas__dot.is-active::before {
  transform: scale(1.35);
  background: var(--wcs-accent);
}
.wcs-atlas__dot.is-active::after {
  animation: none;
  border-color: var(--wcs-accent);
  transform: scale(1.35);
}
.wcs-atlas__dot:focus-visible {
  outline: 2px solid var(--wcs-accent);
  outline-offset: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .wcs-atlas__layout {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: clamp(20px, 4vh, 40px);
    gap: 16px;
    overflow: hidden;
  }
  .wcs-atlas__panel {
    text-align: center;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .wcs-atlas__title br { display: none; }
  .wcs-atlas__desc { margin-bottom: 18px; }
  .wcs-atlas__figure {
    height: auto;
    width: min(64vw, 300px);
    order: -1;
  }
  .wcs-atlas__info {
    padding: 16px 18px;
  }
  .wcs-atlas__info-list li { font-size: 0.85rem; }
  /* Mobilde panel figürün hemen altında — tel çizgisi gereksiz/karmaşık durur */
  .wcs-atlas__wire { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wcs-atlas__dot::after {
    animation: none;
  }
  .wcs-atlas__img--base,
  .wcs-atlas__info {
    transition: none;
  }
}
