/**
 * Latest Videos Slider – tek yerden yönetilen component.
 * Sayfalarda sadece @include('components.v3.latest-videos-slider', ['videos' => $latestVideos]) kullan.
 */

.latest-videos-slider-section {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(40, 40, 40, 0.95));
  padding: 40px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: hidden;
}

.latest-videos-slider-section .container-fluid {
  max-width: 100%;
  overflow-x: hidden;
  padding-left: 15px;
  padding-right: 15px;
}

.latest-videos-header {
  margin-bottom: 25px;
  padding: 0;
}

.latest-videos-header a {
  text-decoration: none;
}

.latest-videos-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.videos-slider-wrapper {
  position: relative;
  padding: 0 50px;
  max-width: 100%;
  overflow: hidden;
}

.videos-slider-container {
  overflow: hidden;
  position: relative;
  max-width: 100%;
}

.videos-slider-track {
  display: flex;
  gap: 12px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.videos-slider-item {
  flex: 0 0 auto;
  width: 160px;
  min-width: 160px;
}

.videos-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.videos-slider-nav:hover {
  background: #ff4757;
  transform: translateY(-50%) scale(1.1);
}

.videos-slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.videos-slider-prev {
  left: 0;
}

.videos-slider-next {
  right: 0;
}

/* Video card mini – slider içinde kullanılan kart */
.latest-videos-slider-section .video-card-mini {
  background: 0 0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.latest-videos-slider-section .video-link-mini {
  display: block;
  text-decoration: none;
  color: inherit;
}

.latest-videos-slider-section .video-thumbnail-mini {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.latest-videos-slider-section .video-image-mini,
.latest-videos-slider-section .video-overlay-mini {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.latest-videos-slider-section .video-image-mini {
  object-fit: cover;
}

.latest-videos-slider-section .video-thumbnail-mini:hover .video-image-mini {
  transform: none !important;
  opacity: 1 !important;
}

.latest-videos-slider-section .video-preview-img {
  display: none !important;
}

.latest-videos-slider-section .video-duration-badge-mini {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  z-index: 5;
}

.latest-videos-slider-section .video-overlay-mini {
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
  border-radius: 6px;
}

.latest-videos-slider-section .video-card-mini:hover .video-overlay-mini {
  opacity: 1;
}

.latest-videos-slider-section .video-overlay-content-mini {
  color: #fff;
  font-size: 32px;
}

.latest-videos-slider-section .video-overlay-content-mini i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.latest-videos-slider-section .video-info-section-mini {
  padding: 6px 2px 0;
  text-align: center;
}

.latest-videos-slider-section .video-title-link-mini {
  text-decoration: none;
  color: inherit;
  display: block;
}

.latest-videos-slider-section .video-card-title-mini {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-videos-slider-section .video-title-link-mini:hover .video-card-title-mini {
  color: #ff4757;
}

@media (max-width: 768px) {
  .latest-videos-slider-section {
    padding: 30px 0;
  }

  .latest-videos-header h2 {
    font-size: 22px;
  }

  .videos-slider-wrapper {
    padding: 0 40px;
  }

  .videos-slider-item {
    width: 150px;
    min-width: 150px;
  }

  .videos-slider-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .videos-slider-wrapper {
    padding: 0 35px;
  }

  .videos-slider-item {
    width: 130px;
    min-width: 130px;
  }
}
