/* =============================================
   HERYERPARKOUR — Activities Section
   6 kart, asimetrik 12-col grid, hover efektleri
   ============================================= */

.activities {
  background: var(--bg-primary);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ===== GRID — 12 sütun, asimetrik yerleşim ===== */
.act-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 24px;
}

/* ===== CARD ===== */
.act-card {
  position: relative;
  overflow: visible;
  cursor: pointer;
  transition: all var(--duration-slow) var(--ease-out);
  opacity: 0;
  transform: translateY(60px);
}

.act-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Asimetrik grid pozisyonları */
.act-card:nth-child(1) { grid-column: 1 / 6; }
.act-card:nth-child(2) { grid-column: 6 / 10; margin-top: 60px; }
.act-card:nth-child(3) { grid-column: 10 / 13; margin-top: -30px; }
.act-card:nth-child(4) { grid-column: 1 / 4; margin-top: 30px; }
.act-card:nth-child(5) { grid-column: 4 / 9; margin-top: -20px; }
.act-card:nth-child(6) { grid-column: 9 / 13; margin-top: 40px; }

/* Card inner */
.act-inner {
  position: relative;
  background: white;
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

/* Her kart farklı clip-path */
.act-card:nth-child(1) .act-inner { clip-path: var(--clip-card-1); }
.act-card:nth-child(2) .act-inner { clip-path: var(--clip-card-2); }
.act-card:nth-child(3) .act-inner { clip-path: var(--clip-card-3); }
.act-card:nth-child(4) .act-inner { clip-path: var(--clip-card-4); }
.act-card:nth-child(5) .act-inner { clip-path: var(--clip-card-5); }
.act-card:nth-child(6) .act-inner { clip-path: var(--clip-card-6); }

/* Accent offset border */
.act-border {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  opacity: 0;
  transition: all var(--duration-slow) var(--ease-out);
  z-index: -1;
}

.act-card:nth-child(1) .act-border { clip-path: var(--clip-card-1); top: 10px; left: 10px; }
.act-card:nth-child(2) .act-border { clip-path: var(--clip-card-2); top: -8px; left: -8px; }
.act-card:nth-child(3) .act-border { clip-path: var(--clip-card-3); top: 8px; left: -10px; }
.act-card:nth-child(4) .act-border { clip-path: var(--clip-card-4); top: -10px; left: 10px; }
.act-card:nth-child(5) .act-border { clip-path: var(--clip-card-5); top: 10px; left: -8px; }
.act-card:nth-child(6) .act-border { clip-path: var(--clip-card-6); top: -8px; left: 12px; }

.act-card:hover .act-border { opacity: 0.4; }
.act-card:hover .act-inner { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); }
.act-card:hover { transform: translateY(-12px) !important; }

/* Number badge — gizli */
.act-num { display: none; }

/* Image area */
.act-img {
  height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOZAİK EFEKTİ — saf CSS, 3×2 eşit parça =====
   Resim 3 sütun × 2 satır = 6 parçaya bölünür.
   background-size: 300% 200% → her kart resmin 1/6'sını gösterir.
   % değerleri karttaki boyutla orantılı ölçeklenir → responsive,
   resize sırasında kayma olmaz, JS gerekmez.
   ===================================== */

/* Ortak: tüm kartlarda aynı ölçek */
.act-card .act-img {
  background-image: url('../../assets/images/heryerparkour-slider4.png');
  background-color: #1a1610;
  background-repeat: no-repeat;
  background-size: 300% 200%;
}

/* Yükseklik override — büyük kartlar */
.act-card:nth-child(1) .act-img,
.act-card:nth-child(5) .act-img { height: 280px; }

/* Row 1 — üst yarı */
.act-card:nth-child(1) .act-img { background-position: 0%   0%; }   /* sol    */
.act-card:nth-child(2) .act-img { background-position: 50%  0%; }   /* merkez */
.act-card:nth-child(3) .act-img { background-position: 100% 0%; }   /* sağ    */

/* Row 2 — alt yarı */
.act-card:nth-child(4) .act-img { background-position: 0%   100%; } /* sol    */
.act-card:nth-child(5) .act-img { background-position: 50%  100%; } /* merkez */
.act-card:nth-child(6) .act-img { background-position: 100% 100%; } /* sağ    */

.act-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Dark vignette overlay — grafiti görünür kalır ama renkleri frenler */
.act-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 4, 2, 0.38) 0%,
    rgba(8, 4, 2, 0.10) 45%,
    rgba(8, 4, 2, 0.28) 100%
  );
  z-index: 1;
}


/* Emoji placeholder — gizli (gerçek fotoğraf kullanılıyor) */
.act-img-emoji { display: none; }

/* Age tag */
.act-age {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 6px 18px;
  background: var(--bg-dark);
  color: white;
  font-family: var(--ff-heading);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  z-index: 4;
}

/* Card body */
.act-body {
  padding: 24px 24px 28px;
}

.act-body h3 {
  font-family: var(--ff-heading);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.act-body h3::before {
  content: '';
  width: 3px;
  height: 20px;
  background: var(--accent);
  flex-shrink: 0;
}

.act-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 18px;
}

.act-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--duration-normal), color var(--duration-normal);
}

.act-link:hover { gap: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .act-grid { grid-template-columns: repeat(6, 1fr); }
  .act-card:nth-child(n) { grid-column: span 3; margin-top: 0 !important; }
}

@media (max-width: 768px) {
  .act-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .act-card:nth-child(n) { grid-column: span 1; margin-top: 0 !important; }
  .act-img { height: 160px; }
  .act-card:nth-child(1) .act-img,
  .act-card:nth-child(5) .act-img { height: 160px; }
  .act-body { padding: 16px 16px 20px; }
  .act-body h3 { font-size: 18px; }
  .act-body p { font-size: 13px; margin-bottom: 12px; }
  .act-link { font-size: 12px; }
  .activities { padding: 80px 0 100px; }
}

@media (max-width: 480px) {
  .act-grid { grid-template-columns: 1fr; }
}
