/**
 * Banner Anywhere by FlowNex AI - Frontend Styles
 *
 * @author FlowNex AI
 * @copyright 2024 FlowNex AI
 */

/* Contenedor principal de banners */
.fnai-banners {
  margin: 0;
  padding: 0;
}

/* Banner individual */
.fnai-banner {
  display: block;
  margin-bottom: 1rem;
}

/* Enlace del banner */
.fnai-banner__link {
  display: block;
  text-decoration: none;
}

/* Imagen del banner */
.fnai-banner__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover */
.fnai-banner__link:hover .fnai-banner__image {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 
 * Device-specific visibility
 * Using modern 2025 breakpoints
 */

/* Mobile: 0 - 767px */
@media (max-width: 767px) {
  /* Hide banners not configured for mobile */
  .fnai-banner:not(.fnai-banner--mobile) {
    display: none !important;
  }

  .fnai-banner {
    margin-bottom: 15px;
  }
}

/* Tablet: 768px - 1023px (portrait and small landscape) */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Hide banners not configured for tablet */
  .fnai-banner:not(.fnai-banner--tablet) {
    display: none !important;
  }

  .fnai-banner {
    margin-bottom: 18px;
  }
}

/* Tablet landscape: 1024px - 1279px */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Hide banners not configured for tablet */
  .fnai-banner:not(.fnai-banner--tablet) {
    display: none !important;
  }
}

/* Desktop: 1280px and up */
@media (min-width: 1280px) {
  /* Hide banners not configured for desktop */
  .fnai-banner:not(.fnai-banner--desktop) {
    display: none !important;
  }
}

/* 
 * Special cases for foldable devices and ultra-wide screens
 */

/* Foldable phones unfolded (small tablets) */
@media (min-width: 768px) and (max-width: 896px) and (orientation: landscape) {
  .fnai-banner:not(.fnai-banner--mobile):not(.fnai-banner--tablet) {
    display: none !important;
  }
}

/* Ultra-wide desktops (2560px+) */
@media (min-width: 2560px) {
  .fnai-banners {
    max-width: 2560px;
    margin: 0 auto;
  }
}

/* Estilos específicos por hook */
.fnai-banners--displayTop .fnai-banner,
.fnai-banners--displayBanner .fnai-banner {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .fnai-banner {
    margin-bottom: 10px;
  }
}
