/* Medya Sayfası Özel CSS */

/* Video Filtreleme */
.media-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  background-color: #f0f0f0;
  border: none;
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: rgba(0, 109, 119, 0.1);
}

.filter-btn.active {
  background-color: #006d77;
  color: white;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.video-item {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-item:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
  opacity: 1;
}

.play-button {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 109, 119, 0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background-color: #006d77;
  transform: scale(1.1);
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #006d77;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 15px;
}

.video-meta span {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}

.video-meta i {
  margin-right: 5px;
  color: #006d77;
}

.video-description {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  width: 90%;
  max-width: 900px;
  border-radius: 10px;
  overflow: hidden;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  z-index: 10;
  cursor: pointer;
}

.modal-body {
  padding: 0;
}

.embed-responsive {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* YouTube Kanal Bağlantısı */
.youtube-channel {
  margin-top: 50px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
}

.youtube-channel h3 {
  color: #006d77;
}

.btn-danger {
  background-color: #ff0000;
  border-color: #ff0000;
  font-weight: 500;
  padding: 10px 20px;
}

.btn-danger:hover {
  background-color: #cc0000;
  border-color: #cc0000;
}

/* Filtreleme Efekti */
.video-item {
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.video-item.hidden {
  display: none;
}

/* Responsive Düzenlemeler */
@media (max-width: 991px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 767px) {
  .media-filter {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-btn {
    width: 100%;
    text-align: center;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .video-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .modal-content {
    width: 95%;
  }
}
