/* YouTube Arc Gallery Section Styles */

#youtube-gallery {
   position: relative;
   overflow: hidden;
   width: 100vw;
   margin-left: calc(-50vw + 50%);
}

.youtube-gallery-container {
   position: relative;
   width: 100vw;
   height: 580px;
   display: flex;
   align-items: flex-start;
   justify-content: center;
   padding-top: 30px;
   cursor: grab;
   user-select: none;
   overflow: visible;
}

.youtube-gallery-container:active {
   cursor: grabbing;
}


.youtube-gallery-track {
   position: relative;
   width: 100%;
   height: 100%;
   display: flex;
   align-items: flex-start;
   justify-content: center;
   z-index: 1;
}

.youtube-video-card {
   position: absolute;
   width: 300px;
   height: 400px;
   cursor: pointer;
   will-change: transform;
   transform-origin: center bottom;
   z-index: 2;
}

/* Video card content - NO SHADOW */
.youtube-card-inner {
   width: 100%;
   height: 100%;
   background: white;
   border-radius: 1.25rem;
   overflow: hidden;
   border: 1px solid #e5e7eb;
   transition: transform 0.3s ease, border-color 0.3s ease;
}

.youtube-video-card:hover .youtube-card-inner {
   transform: translateY(-5px);
   border-color: #f97316;
}

/* Video thumbnail */
.youtube-thumbnail {
   position: relative;
   width: 100%;
   height: 55%;
   overflow: hidden;
   background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.youtube-thumbnail img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.4s ease;
}

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

.youtube-play-button {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 56px;
   height: 56px;
   background: rgba(255, 0, 0, 0.9);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.3s ease;
   z-index: 2;
}

.youtube-video-card:hover .youtube-play-button {
   background: rgba(255, 0, 0, 1);
   transform: translate(-50%, -50%) scale(1.1);
}

.youtube-play-button i {
   color: white;
   font-size: 1.3rem;
   margin-left: 3px;
}

.youtube-duration {
   position: absolute;
   bottom: 8px;
   right: 8px;
   background: rgba(0, 0, 0, 0.85);
   color: white;
   padding: 4px 8px;
   border-radius: 4px;
   font-size: 0.75rem;
   font-weight: 600;
}

/* Video info */
.youtube-card-info {
   padding: 1.25rem;
   height: 45%;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   background: white;
}

.youtube-card-title {
   font-size: 0.95rem;
   font-weight: 700;
   color: #111827;
   line-height: 1.4;
   margin-bottom: 0.5rem;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden;
}

.youtube-card-meta {
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 0.7rem;
   color: #6b7280;
   margin-bottom: 0.5rem;
}

.youtube-card-link {
   color: #f97316;
   font-weight: 600;
   font-size: 0.85rem;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   transition: color 0.3s ease;
}

.youtube-card-link:hover {
   color: #ea580c;
}

/* Responsive */
@media (max-width: 1024px) {
   .youtube-gallery-container {
      height: 520px;
   }
   
   .youtube-video-card {
      width: 280px;
      height: 380px;
   }
}

@media (max-width: 768px) {
   .youtube-gallery-container {
      height: 480px;
   }
   
   .youtube-video-card {
      width: 260px;
      height: 360px;
   }
}

@media (max-width: 480px) {
   .youtube-gallery-container {
      height: 440px;
   }
   
   .youtube-video-card {
      width: 240px;
      height: 340px;
   }
   
   .youtube-card-info {
      padding: 1rem;
   }
   
   .youtube-card-title {
      font-size: 0.9rem;
   }
}
