/* =============================================
   HERYERPARKOUR — Activity Modal
   Asimetrik popup, vault animasyonu, random pozisyon
   ============================================= */

/* ===== OVERLAY ===== */
.act-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) - 1);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.act-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== MODAL CONTAINER ===== */
.act-modal {
  position: fixed;
  z-index: var(--z-modal);
  background: white;
  overflow: hidden;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.2);
  width: clamp(300px, 90vw, 660px);
  max-height: min(90vh, 90dvh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transform-origin: center bottom;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Open state */
.act-modal.open {
  pointer-events: auto;
  animation: modalVault 0.65s var(--ease-bounce) forwards;
}

/* Closing state */
.act-modal.closing {
  animation: modalDrop 0.35s var(--ease-out) forwards;
  pointer-events: none;
}

/* ===== 6 ASIMETRIK CLIP-PATH VARIANT ===== */
.act-modal[data-clip="1"] { clip-path: polygon(0 0, 100% 3%, 97% 100%, 2% 98%); }
.act-modal[data-clip="2"] { clip-path: polygon(3% 0, 100% 0, 98% 97%, 0 100%); }
.act-modal[data-clip="3"] { clip-path: polygon(0 2%, 98% 0, 100% 98%, 2% 100%); }
.act-modal[data-clip="4"] { clip-path: polygon(2% 0, 100% 2%, 98% 100%, 0 98%); }
.act-modal[data-clip="5"] { clip-path: polygon(0 0, 100% 2%, 97% 100%, 3% 97%); }
.act-modal[data-clip="6"] { clip-path: polygon(3% 2%, 100% 0, 97% 98%, 0 100%); }

/* ===== ENTRY / EXIT ANIMATIONS ===== */
@keyframes modalVault {
  0%   { opacity: 0; transform: translateY(100px) rotate(-10deg) scale(0.6); }
  55%  { opacity: 1; transform: translateY(-16px) rotate(4deg) scale(1.03); }
  75%  { transform: translateY(6px) rotate(-1.5deg) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes modalDrop {
  0%   { opacity: 1; transform: scale(1) rotate(0deg) translateY(0); }
  100% { opacity: 0; transform: scale(0.65) rotate(-9deg) translateY(70px); }
}

/* ===== IMAGE / PLACEHOLDER AREA ===== */
.act-modal-img {
  height: clamp(140px, 18vw, 220px);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.act-modal-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Diagonal stripe texture overlay */
.act-modal-img-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2l4 3.25-4 3.25zM0 0h2v20H0V0z' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
}

.act-modal-emoji {
  font-size: clamp(48px, 5vw, 72px);
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.15));
  z-index: 1;
}

/* Age badge in image area */
.act-modal-age {
  position: absolute;
  top: 14px;
  left: 16px;
  padding: 7px 22px 7px 14px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-family: var(--ff-heading);
  font-size: var(--font-label);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  clip-path: polygon(0 0, 94% 0, 100% 100%, 0 100%);
  z-index: 4;
}

/* ===== BODY ===== */
.act-modal-body {
  padding: clamp(16px, 2vw, 28px) clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px);
  flex: 1;
}

.act-modal-tag {
  font-family: var(--ff-handwrite);
  font-size: var(--font-small);
  color: var(--accent);
  display: inline-block;
  transform: rotate(-1.5deg);
  margin-bottom: 10px;
}

.act-modal-title {
  font-family: var(--ff-heading);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.act-modal-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--accent);
  flex-shrink: 0;
}

.act-modal-desc {
  font-family: var(--ff-body);
  font-size: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

/* ===== FEATURES LIST ===== */
.act-modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.act-modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: var(--font-small);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

.act-modal-features li::before {
  content: '▸';
  color: var(--accent);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== CTA BUTTON ===== */
.act-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(10px, 1vw, 12px) clamp(20px, 2vw, 28px);
  background: var(--accent);
  color: white;
  font-family: var(--ff-heading);
  font-size: var(--font-label);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.act-modal-cta:hover {
  background: #e03d00;
  box-shadow: 0 6px 24px rgba(255, 77, 0, 0.4);
  transform: translateY(-2px);
  color: white;
}

/* ===== CLOSE BUTTON ===== */
.act-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.75);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}

.act-modal-close:hover {
  background: var(--accent);
}

/* ===== ACCENT BORDER STRIP (bottom) ===== */
.act-modal-accent {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
}

/* ===== RESPONSIVE — sadece yapisal ===== */

/* Center modal on screens ≤1440px */
@media (max-width: 1440px) {
  .act-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .act-modal.open {
    animation: modalVaultMobile 0.5s var(--ease-bounce) forwards;
  }

  .act-modal.closing {
    animation: modalDropMobile 0.3s var(--ease-out) forwards;
  }
}

@keyframes modalVaultMobile {
  0%   { opacity: 0; transform: translate(-50%, calc(-50% + 60px)) scale(0.85); }
  60%  { opacity: 1; transform: translate(-50%, calc(-50% - 8px)) scale(1.01); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes modalDropMobile {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% + 40px)) scale(0.85); }
}
