/* === Sayfa Başlığı Stili (Sitenizin Koyu Temasıyla Uyumlu Hale Getirildi) === */
.content-section {
  padding: 5%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

/* === Video Galerisi Stilleri (Sitenin Genel Temasına Uyarlandı) === */
.video-gallery {
  display: grid;
  /* Diğer sayfalardaki grid yapısıyla tutarlı */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  /* Sitedeki genel boşluk değeri */
}

.video-post {
  /* Sitedeki diğer kartlarla (blog, ürün vb.) aynı stil */
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

/* Sitedeki diğer kartlarla tutarlı hover efekti */
.video-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(184, 115, 51, 0.5);
  /* Sitenizin ana rengi */
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Modern 16:9 video oranı */
  overflow: hidden;
  position: relative;
  cursor: pointer;
  /* Tıklanabilir olduğunu göster */
}

.video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-post:hover .video-wrapper img {
  transform: scale(1.05);
}

/* Oynat ikonu overlay (isteğe bağlı ama kullanıcı deneyimi için iyi olur) */
.video-wrapper::after {
  content: '\f04b';
  /* FontAwesome play icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0.8;
  transition: all 0.3s ease;
  pointer-events: none;
}

.video-post:hover .video-wrapper::after {
  color: #B87333;
  /* Gold renk */
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.video-content {
  padding: 25px;
  flex-grow: 1;
  /* Kart yüksekliğini eşitler */
  display: flex;
  flex-direction: column;
}

.video-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  /* Ana metin rengi değişkeni */
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.video-description {
  font-size: 0.95rem;
  color: var(--text-dim);
  /* İkincil metin rengi değişkeni */
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* === Mobil ve Tablet Uyumlu Hale Getirme (Responsive) === */
@media (max-width: 768px) {

  /* .page-header ve .content-section stilleri style.css'den geldiği için
     burada ek bir ayara gerek yok, tasarım zaten uyumlu olacaktır. */
  .video-gallery {
    padding: 40px 0;
    gap: 20px;
  }
}

/* --- Video Modal (Popup) Tasarımı --- */
.video-modal {
  display: none;
  /* Varsayılan olarak gizli */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  /* Arka planı karart */
  justify-content: center;
  align-items: center;
  padding: 20px;
  /* Mobilde kenarlardan boşluk */
  box-sizing: border-box;
}

.video-modal.active {
  display: flex;
  /* Aktif olduğunda göster */
}

.video-modal-content {
  position: relative;
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 90vh;
  /* Ekran yüksekliğinin %90'ını geçmesin */
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-modal-content video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  /* Videonun kendisi de ekranı taşmasın */
  display: block;
  object-fit: contain;
}

.close-video-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  transition: 0.3s;
}

.close-video-btn:hover {
  background: red;
}