/* =============================================
   HERYERPARKOUR — Video Gallery
   5'li asimetrik grid, play butonları
   ============================================= */

.vid-section {
  background: var(--bg-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.vid-section::before {
  content: 'OYNA';
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--ff-display);
  font-size: 200px;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.02);
  -webkit-text-fill-color: transparent;
  pointer-events: none;
}
html[lang="en"] .vid-section::before {
  content: 'PLAY';
}

.vid-section > .container { position: relative; z-index: 2; }
.vid-section .sec-sub { color: rgba(255, 255, 255, 0.4); }
.vid-section .sec-label { color: var(--lime); }

/* Title override for dark bg */
.vid-title .letter {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

.vid-title .letter.stroke-letter {
  -webkit-text-stroke: 2px white !important;
  -webkit-text-fill-color: transparent !important;
}

/* Grid */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 16px;
  margin-top: 56px;
}

.vid-card {
  position: relative;
  overflow: visible;
  cursor: pointer;
  transition: all var(--duration-slow) var(--ease-out);
  opacity: 0;
  transform: translateY(40px);
}

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

/* Grid placement */
.vid-main { grid-column: 1 / 8; grid-row: 1 / 3; }
.vid-side { grid-column: 8 / 13; grid-row: 1; }
.vid-sm-1 { grid-column: 8 / 10; grid-row: 2; }
.vid-sm-2 { grid-column: 10 / 13; grid-row: 2; }
.vid-full { grid-column: 1 / 13; grid-row: 3; }

.vid-card-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Clip-paths */
.vid-main .vid-card-inner { clip-path: var(--clip-card-1); }
.vid-side .vid-card-inner { clip-path: var(--clip-card-2); }
.vid-sm-1 .vid-card-inner { clip-path: var(--clip-card-3); }
.vid-sm-2 .vid-card-inner { clip-path: var(--clip-card-4); }
.vid-full .vid-card-inner { clip-path: polygon(0 0, 100% 3%, 99% 100%, 1% 96%); }

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

.vid-main .vid-accent { clip-path: var(--clip-card-1); top: 12px; left: 12px; }
.vid-side .vid-accent { clip-path: var(--clip-card-2); top: -10px; left: -10px; }
.vid-sm-1 .vid-accent { clip-path: var(--clip-card-3); top: 10px; left: -8px; }
.vid-sm-2 .vid-accent { clip-path: var(--clip-card-4); top: -8px; left: 10px; }
.vid-full .vid-accent { clip-path: polygon(0 0, 100% 3%, 99% 100%, 1% 96%); top: 12px; left: -10px; }

.vid-card:hover .vid-accent { opacity: 0.4; }
.vid-card:hover { transform: translateY(-8px) !important; }

/* Placeholder */
.vid-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  min-height: 200px;
}

.vid-main .vid-placeholder { min-height: 480px; }
.vid-side .vid-placeholder { min-height: 230px; }
.vid-sm-1 .vid-placeholder,
.vid-sm-2 .vid-placeholder { min-height: 230px; }
.vid-full .vid-placeholder { min-height: 260px; }

/* Play button */
.vid-play-btn {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal);
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.05);
}

.vid-play-btn svg { margin-left: 4px; }
.vid-main .vid-play-btn { width: 80px; height: 80px; }
.vid-main .vid-play-btn svg { width: 36px; height: 36px; }

.vid-card:hover .vid-play-btn {
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.vid-label {
  font-family: var(--ff-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.7);
}

.vid-main .vid-label { font-size: 16px; }

.vid-placeholder img,
.vid-placeholder video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.vid-play-btn,
.vid-label {
  position: relative;
  z-index: 2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .vid-main { grid-column: 1 / 7; grid-row: 1 / 3; }
  .vid-side { grid-column: 7 / 13; grid-row: 1; }
  .vid-sm-1 { grid-column: 7 / 10; grid-row: 2; }
  .vid-sm-2 { grid-column: 10 / 13; grid-row: 2; }
  .vid-full { grid-column: 1 / 13; grid-row: 3; }
  .vid-main .vid-placeholder { min-height: 360px; }
}

@media (max-width: 768px) {
  .vid-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 12px;
  }
  .vid-main { grid-column: 1 / -1; grid-row: 1; }
  .vid-side { grid-column: 1 / -1; grid-row: 2; }
  .vid-sm-1 { grid-column: 1; grid-row: 3; }
  .vid-sm-2 { grid-column: 2; grid-row: 3; }
  .vid-full { grid-column: 1 / -1; grid-row: 4; }
  .vid-main .vid-placeholder { min-height: 220px; }
  .vid-side .vid-placeholder { min-height: 180px; }
  .vid-sm-1 .vid-placeholder,
  .vid-sm-2 .vid-placeholder { min-height: 160px; }
  .vid-full .vid-placeholder { min-height: 180px; }
  .vid-section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .vid-grid { grid-template-columns: 1fr; }
  .vid-main, .vid-side, .vid-sm-1, .vid-sm-2, .vid-full { grid-column: 1 / -1; grid-row: auto; }
}
