/* ============================================
   VIDEO SECTION - LP TruScale IaaS
   ============================================
   
   Seção com player de vídeo YouTube
*/

.video-section {
  position: relative;
  background-color: var(--color-bg-pink-light);
  /* reduz espaçamento inferior para eliminar espaço branco entre seções */
  padding-top: 80px;
  overflow: hidden;
}

.video-section__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--padding-xl);
}

/* Título */
.video-section__title {
  font-family: var(--font-gotham-bold);
  font-size: var(--font-size-subtitle);
  line-height: 1.2;
  text-align: center;
  color: var(--color-text-primary);
  margin-bottom: var(--margin-md);
  max-width: 957px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 10px;
}

.video-section__title-highlight {
  font-family: var(--font-gotham-book);
  font-weight: var(--font-weight-light);
}

/* Player container */
.video-section__player-wrapper {
  position: relative;
  max-width: 972px;
  /* remove margem inferior para evitar espaço extra entre seções */
  margin: var(--margin-md) auto 0;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  background-color: var(--color-white);
}

.video-section__player {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-normal);
}

.video-section__player:hover {
  opacity: 0.95;
}

.video-section__thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transform: scale(1.02); /* Evita bordas brancas no blur */
}

/* Play button */
.video-section__play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 125px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 2;
}

.video-section__play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-section__play-button-icon {
  width: 125px;
  height: 125px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* States */
.video-section__player.playing {
  display: none;
}

/* Iframe container */
.video-section__iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  display: none;
  overflow: hidden;
}

.video-section__iframe-container.active {
  display: block;
}

.video-section__iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Conteúdo abaixo do vídeo */
.video-section__content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--gap-3xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0px;
  margin-bottom: 0; /* remove espaço extra entre a seção de vídeo e a próxima seção */
}

.video-section__text-left {
  font-family: var(--font-gotham-book);
  font-size: 18px;
  font-style: normal;
  font-weight: 325;
  line-height: 27px;
  color: #1D1616;
}

.video-section__text-left strong {
  font-family: var(--font-gotham-bold);
}

/* Divider vertical */
.video-section__divider {
  width: 1px;
  height: 316px;
  background-color: var(--border-color);
  margin: 0 auto;
}

.video-section__text-right {
  font-family: var(--font-gotham-book);
  font-size: 18px;
  font-style: normal;
  font-weight: 325;
  line-height: 27px;
  color: #1D1616;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 20px;
}

.video-section__text-right p {
  margin-top: 8px;
}

/* Link para Partner Hub */
.video-section__link {
  font-family: var(--font-gotham-bold);
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 28.8px */
  color: #E1251B;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 1px;
  text-underline-offset: auto;
  text-underline-position: from-font;
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  transition: var(--transition-normal);
  margin-bottom: 0;
}

.video-section__link:hover {
  opacity: var(--opacity-hover);
}

.video-section__link-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .video-section {
    padding: 60px 0;
  }
  
  .video-section__container {
    padding: 0 var(--padding-lg);
  }
  
  .video-section__title {
    font-size: 28px;
    margin-bottom: var(--margin-lg);
  }
  
  .video-section__content {
    grid-template-columns: 1fr;
    gap: var(--gap-2xl);
  }
  
  .video-section__divider {
    height: 1px;
    width: 100%;
    margin: 0;
  }
  
  .video-section__play-button {
    width: 100px;
    height: 100px;
  }
  
  .video-section__play-button-icon {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .video-section {
    padding: 40px 0;
  }
  
  .video-section__container {
    padding: 0 var(--padding-md);
  }
  
  .video-section__title {
    font-size: 24px;
  }
  
  .video-section__text-left,
  .video-section__text-right {
    font-size: var(--font-size-base);
  }
  
  .video-section__link {
    font-size: var(--font-size-large);
  }
  
  .video-section__play-button {
    width: 80px;
    height: 80px;
  }
  
  .video-section__play-button-icon {
    width: 80px;
    height: 80px;
  }
}
