/* ===================================
   VIDEO PORTFOLIO - HERO + GALLERY
   Works with existing menu.php sidebar
   =================================== */

/* Main Content Container - adjust for existing sidebar */
.video-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Page Title */
.video-page-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 60px;
  opacity: 0.6;
  color: #888;
}

/* Project Item */
.video-project {
  margin-bottom: 120px;
}

.video-project:last-child {
  margin-bottom: 60px;
}

/* Project Header */
.video-project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #222;
}

.video-project-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #fff;
}

.video-project-meta {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
}

.video-meta-type {
  margin-right: 20px;
}

/* Hero Thumbnail */
.video-hero {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 20px;
  background: #111;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.video-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-hero:hover img {
  transform: scale(1.03);
  opacity: 0.8;
}

/* Overlay on Hero */
.video-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 60%,
    rgba(0,0,0,0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Play Button */
.video-play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  transform: scale(0.9);
}

.video-hero:hover .video-play-btn {
  transform: scale(1);
  background: white;
}

.video-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid #000;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

/* Watch Label */
.video-watch-label {
  position: absolute;
  bottom: 30px;
  left: 30px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.video-hero:hover .video-watch-label {
  opacity: 1;
  transform: translateY(0);
}

/* Thumbnail Gallery */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.video-gallery-item {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 3px;
  background: #111;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.video-gallery-item:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

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

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

/* Gallery Item Number */
.video-gallery-number {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-gallery-item:hover .video-gallery-number {
  opacity: 1;
}

/* Loading States */
.video-hero.loading,
.video-gallery-item.loading {
  background: linear-gradient(
    90deg,
    #111 0%,
    #1a1a1a 50%,
    #111 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .video-content-wrapper {
    padding: 40px 20px;
  }
  
  .video-page-title {
    font-size: 12px;
    margin-bottom: 40px;
  }
  
  .video-project {
    margin-bottom: 80px;
  }
  
  .video-project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .video-project-title {
    font-size: 24px;
  }
  
  .video-project-meta {
    font-size: 12px;
  }
  
  .video-hero {
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }
  
  .video-play-btn {
    width: 70px;
    height: 70px;
  }
  
  .video-play-btn::after {
    border-left-width: 18px;
    border-top-width: 11px;
    border-bottom-width: 11px;
  }
  
  .video-watch-label {
    font-size: 12px;
    bottom: 20px;
    left: 20px;
  }
  
  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .video-project-title {
    font-size: 20px;
  }
  
  .video-gallery {
    grid-template-columns: 1fr;
  }
  
  .video-play-btn {
    width: 60px;
    height: 60px;
  }
  
  .video-play-btn::after {
    border-left-width: 16px;
    border-top-width: 10px;
    border-bottom-width: 10px;
  }
}
