/* index.css | http://louisverdad.test/assets/css/index.css */

.main {
  /* max-width: none; */
  padding: none;
}

/* Videos Grid Layout */
.videos-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin: 3rem 0;
}

.video-item {
  display: flex;
  gap: 2rem;
  min-height: 400px;
  /* background: rgba(255, 255, 255, 0.02); */
  max-height: 20rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
}

.video-item.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* .video-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
} */

/* Video Image Section (2/3 width) */
.video-image-section {
  flex: 2;
  position: relative;
  overflow: hidden;
}

.video-image {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #111; */
  height: 100%;
  min-height: 200px;
  overflow: hidden;
}

.video-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  background: #111;
  margin: auto;
  display: block;
  border-radius: 4px;
}

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

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333 0%, #222 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.25rem;
  border-radius: 6px;
  position: relative;
}

.video-placeholder::before {
  content: "▶";
  font-size: 3rem;
  color: #555;
  margin-bottom: 1rem;
  display: block;
}

.video-placeholder span {
  position: absolute;
  bottom: 1rem;
  font-size: 1rem;
  color: #888;
}

/* Video Info Section (1/3 width) */
.video-info-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem;
}

.video-info {
  width: 100%;
}

.video-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.video-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--color-text-grey);
  font-size: 0.95rem;
}

.video-projects-count {
  font-size: 0.9rem;
  color: var(--color-text-grey);
  font-style: italic;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  display: inline-block;
}

/* Video Thumbnail Specific Styles */
.video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.video-thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 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-thumbnail-overlay {
  opacity: 1;
}

.video-play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.5rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.video-item:hover .video-play-button {
  transform: scale(1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .video-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .video-image-section {
    flex: none;
  }
  
  .video-image {
    aspect-ratio: 16/9;
    max-height: 400px;
  }
  
  .video-info-section {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .videos-grid {
    gap: 2rem;
    margin: 2rem 0;
  }
  
  .video-item {
    min-height: auto;
  }
  
  .video-image {
    aspect-ratio: 16/9;
    max-height: 350px;
  }
  
  .video-title {
    font-size: 1.5rem;
  }
  
  .video-info-section {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .video-item {
    min-height: auto;
  }
  
  .video-image {
    aspect-ratio: 16/9;
    max-height: 300px;
  }
  
  .video-title {
    font-size: 1.25rem;
  }
  
  .video-description {
    font-size: 0.9rem;
  }
}

/* Video Player Styles */
.video-player-container {
  max-height: 80svh;
}

.video-embed {
  /* position: relative; */
  /* width: 100%; */
}

.video-player {
  /* position: relative; */
  /* width: 100%; */
  background: none;
  /* border-radius: 8px; */
  /* overflow: hidden; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.video-embed iframe {
  /* position: absolute; */
  /* top: 0; */
  /* left: 0; */
  /* width: 100%; */
  /* height: 100%; */
  max-width: 100%;
  max-height: 78svh;
}

/* Videos Intro */
.videos-intro {
  margin-bottom: 2rem;
}

.videos-intro .text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.videos-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-grey);
}

/* Mobile spacing fixes */
@media screen and (max-width: 60rem) {
  .videos-grid {
    gap: 1rem;
    padding: 1rem;
  }
  
  .video-item {
    gap: 1rem;
    min-height: auto;
    max-height: none;
    padding-bottom: 0;
  }
  
  .video-info-section {
    padding: 1rem;
  }
  
  .video-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    visibility: visible;
    opacity: 1;
  }
  
  .video-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .videos-intro {
    margin-bottom: 1rem;
    padding: 0 1rem;
  }
  
  .videos-intro .text {
    text-align: left;
  }
  
  .videos-empty {
    padding: 2rem 1rem;
  }
}
