/* Yube Organizasyon - 9:16 Video Davetiye Vitrini & Google Veo AI Stüdyosu */

.video-section {
  padding: 60px 0 90px;
  position: relative;
}

.video-badge-ai {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(255, 215, 0, 0.2)) !important;
  border: 1px solid rgba(255, 215, 0, 0.7) !important;
  color: #fff9e6 !important;
  box-shadow: 0 2px 6px rgba(20, 18, 17, 0.25);
  font-weight: 700 !important;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #141211;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 16;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  border-color: rgba(212, 175, 55, 0.5);
}

.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s ease;
}

.video-card:hover video {
  transform: scale(1.04);
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  pointer-events: none;
}

.video-badge {
  align-self: flex-start;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.video-play-center {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 3;
  pointer-events: none;
  font-size: 20px;
}

.video-card:hover .video-play-center {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(212, 175, 55, 0.85);
  color: #141211;
}

.video-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.video-card-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.video-card-subtitle {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

.video-play-hint {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #e9d29c;
  letter-spacing: 0.02em;
}

/* Modal Video Player */
.video-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 95vw;
  max-height: 95vh;
  outline: none;
  overflow: visible;
}

.video-modal::backdrop {
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.video-modal-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.video-modal-close:hover {
  background: #d4af37;
  color: #141211;
}

.video-modal-frame {
  width: 360px;
  height: 640px;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  background: #000;
  position: relative;
}

.video-modal-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

#video-preview-btn { margin-top: 8px; text-align: center; }
.video-card:focus-visible { outline: 3px solid #d4af37; outline-offset: 4px; }

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .video-card-overlay {
    padding: 14px;
  }
  .video-card-title {
    font-size: 16px;
  }
  /* The whole card opens the film; on small cards the hint would crowd the title. */
  .video-play-hint {
    display: none;
  }
  .video-modal-frame {
    width: 290px;
    height: 515px;
  }
}
