/* style.css */
body {
  font-family: sans-serif;
  margin: 0;
  background: #f4f4f4;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  width: 300px;
  text-align: center;
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* İzle butonu */
.video-card button {
  background-color: #6A1B9A;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.video-card button:hover {
  background-color: #7B1FA2;
  transform: translateY(-2px);
}

.video-card button:active {
  transform: translateY(0);
}


/* Modal stil */
/* Modal karartma arka planı */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease forwards;
}

/* Modal kutusu (video kutusu) */
.modal-content {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 16px;
  max-width: 90%;
  width: 600px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  animation: scaleIn 0.3s ease-out;
}

/* Video */
.modal-content video {
  width: 100%;
  border-radius: 12px;
}

/* Kapatma ikonu */
.close {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #fff;
  color: #ae0b80;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 30px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.close:hover {
  background: #eee;
}

/* Fade-in animasyon */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal kutusu animasyonu */
@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobil uyum */
@media (max-width: 600px) {
  .modal-content {
    width: 90%;
    padding: 16px;
  }
}
