/* ================================================
   VEHICLE GALLERY & VIDEO STYLES
   For single vehicle pages
================================================ */

/* Casual Videos Section - Horizontal Scrolling Layout */
.msl-casual-videos {
  padding: 80px 0;
  background: #f8f9fa;
  overflow: hidden;
}

.casual-videos-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.msl-casual-videos .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 50px;
  padding: 0 20px;
  color: #1a1a1a;
}

.msl-casual-videos .section-title span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.casual-video-item {
  position: relative;
  flex: 0 0 auto;
  width: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casual-video-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.casual-video-wrapper {
  position: relative;
  width: 280px;
  height: 498px;
  background: #000;
  overflow: hidden;
}

.casual-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.casual-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(249, 115, 22, 0.9) 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
  z-index: 10;
}

.casual-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 48px rgba(239, 68, 68, 0.6);
}

.casual-play-btn svg {
  margin-left: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.casual-video-item.playing .casual-play-btn {
  opacity: 0;
  pointer-events: none;
}

.casual-video-item.playing .casual-video-player {
  cursor: pointer;
}

/* Vehicle Gallery Section */
.vehicle-gallery-section {
  padding: 80px 0;
  background: #fff;
}

.vehicle-gallery-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 50px;
  color: #1a1a1a;
}

.vehicle-gallery-section .section-title span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vehicle-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.vehicle-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.vehicle-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vehicle-gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vehicle-gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  font-size: 3rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Vehicle Video Section */
.vehicle-video-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.vehicle-video-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 40px;
  color: #1a1a1a;
}

.vehicle-video-section .section-title span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vehicle-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  background: #000;
}

.vehicle-video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vehicle-gallery-section,
  .vehicle-video-section,
  .msl-casual-videos {
    padding: 50px 0;
  }

  .vehicle-gallery-section .section-title,
  .vehicle-video-section .section-title,
  .msl-casual-videos .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .vehicle-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }

  .casual-video-item {
    width: 240px;
  }

  .casual-video-wrapper {
    width: 240px;
    height: 427px;
  }

  .casual-play-btn {
    width: 64px;
    height: 64px;
  }

  .casual-play-btn svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .vehicle-gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vehicle-gallery-section .section-title,
  .vehicle-video-section .section-title,
  .msl-casual-videos .section-title {
    font-size: 1.75rem;
  }

  .msl-casual-videos {
    padding: 40px 0;
  }

  .casual-video-item {
    width: 200px;
  }

  .casual-video-wrapper {
    width: 200px;
    height: 356px;
  }

  .casual-play-btn {
    width: 56px;
    height: 56px;
  }

  .casual-play-btn svg {
    width: 32px;
    height: 32px;
  }
}

/* Simple Lightbox Effect (Optional - can be enhanced with a lightbox library) */
.vehicle-gallery-item[data-lightbox] {
  cursor: zoom-in;
}
