/**
 * Estilos básicos do banner de vídeo em destaque.
 * Ajuste conforme o layout do tema.
 */

.foak-fvb-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 16px;
  border-radius: 8px;
  background-color: rgba(229, 229, 229, 0.9);
  color: #333;
  font-weight: 600;
  /* border: solid 3px #35c1bc; */
}

html.theme-dark .foak-fvb-banner {
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

.foak-fvb-banner__image {
  max-width: 40%;
}

.foak-fvb-banner__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  max-height: 200px;
}

.foak-fvb-banner__content {
  flex: 1;
}

.foak-fvb-banner__title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.foak-fvb-banner__subtitle {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.foak-fvb-banner__button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  background-color: #00bcd4;
  color: #051018;
  margin-top: 16px;
}

.foak-fvb-banner__button:hover {
  opacity: 0.9;
}

.pages-child-theme .foak-fvb-banner a,
.pages-child-theme .foak-fvb-banner a:visited {
  color: #fff;
}

p.foak-fvb-banner__subtitle {
  margin: 0;
}

@media (max-width: 768px) {
  .foak-fvb-banner {
    flex-direction: column;
    text-align: center;
  }

  .foak-fvb-banner__image {
    max-width: 100%;
  }
}

/* Rótulo superior ("Conteúdo recomendado – Vídeo no YouTube") */
.foak-fvb-banner-wrapper {
  margin: 2rem 0;
}

.foak-fvb-badge {
  display: inline-flex;
  flex-direction: column;
  background: rgba(0, 188, 212, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border-left: 4px solid #00bcd4;
}

.foak-fvb-badge-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00bcd4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.foak-fvb-badge-sub {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  color: #ffffff;
}

/* Banner flutuante */

.foak-fvb-floating-overlay {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  max-width: 1000px;
  left: 1.5rem;
  width: 100%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Classe aplicada via JS quando o banner deve aparecer */
.foak-fvb-floating-overlay.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.foak-fvb-floating {
  position: relative;
}

.foak-fvb-floating-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #1f2933;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.foak-fvb-banner--floating {
  margin: 0;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1180px) {
  .foak-fvb-floating-overlay {
    left: 0;
    right: 1rem;
    bottom: 0;
    max-width: none;
  }
}
