/* ============================================================
   HERBNET — Central do Assinante: Carousel Styles
   Design: Premium Dynamic Carousel
   ============================================================ */

.hb-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 135px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
  font-family: 'Poppins', sans-serif !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s ease, border-color 0.5s ease !important;
}

@media (max-width: 640px) {
  .hb-carousel-wrapper {
    height: 118px;
    margin-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .hb-carousel-slide {
    padding: 13px 16px 18px 16px;
  }

  .hb-slide-content {
    gap: 12px;
  }

  .hb-slide-icon-bg {
    width: 42px;
    height: 42px;
  }

  .hb-slide-title {
    font-size: 14px;
  }

  .hb-slide-desc {
    font-size: 11px;
    line-height: 1.28;
  }

  .hb-carousel-dots {
    bottom: 6px;
  }
}

.hb-carousel-wrapper:hover {
  transform: translateY(-2px) !important;
}

/* ─── THEMES ────────────────────────────────────────────────── */

/* Navy Theme (Azul Escuro) */
.hb-carousel-wrapper.hb-theme-navy {
  background: linear-gradient(135deg, #060B4F 0%, #101B7A 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 10px 25px rgba(6, 11, 79, 0.20) !important;
}
.hb-carousel-wrapper.hb-theme-navy:hover {
  box-shadow: 0 12px 30px rgba(6, 11, 79, 0.35) !important;
  border-color: rgba(255, 107, 0, 0.35) !important;
}
.hb-theme-navy .hb-slide-title { color: #FFFFFF !important; }
.hb-theme-navy .hb-slide-desc { color: rgba(255, 255, 255, 0.75) !important; }
.hb-theme-navy .hb-slide-arrow { color: rgba(255, 255, 255, 0.3) !important; }
.hb-theme-navy:hover .hb-slide-arrow { color: #FF8C2B !important; }
.hb-theme-navy .hb-carousel-dot { background: rgba(255, 255, 255, 0.3) !important; }
.hb-theme-navy .hb-carousel-dot.active { background: #FF8C2B !important; }

/* Orange Theme (Laranja) */
.hb-carousel-wrapper.hb-theme-orange {
  background: linear-gradient(135deg, #cf4f00 0%, #FF8C2B 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 25px rgba(207, 79, 0, 0.20) !important;
}
.hb-carousel-wrapper.hb-theme-orange:hover {
  box-shadow: 0 12px 30px rgba(207, 79, 0, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}
.hb-theme-orange .hb-slide-title { color: #FFFFFF !important; }
.hb-theme-orange .hb-slide-desc { color: rgba(255, 255, 255, 0.85) !important; }
.hb-theme-orange .hb-slide-arrow { color: rgba(255, 255, 255, 0.5) !important; }
.hb-theme-orange:hover .hb-slide-arrow { color: #FFFFFF !important; }
.hb-theme-orange .hb-carousel-dot { background: rgba(255, 255, 255, 0.4) !important; }
.hb-theme-orange .hb-carousel-dot.active { background: #FFFFFF !important; }

/* White Theme (Branco) */
.hb-carousel-wrapper.hb-theme-white {
  background-color: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(62, 63, 186, 0.12) !important;
  box-shadow: 0 10px 25px rgba(62, 63, 186, 0.05) !important;
}
.hb-carousel-wrapper.hb-theme-white:hover {
  box-shadow: 0 12px 30px rgba(62, 63, 186, 0.12) !important;
  border-color: rgba(62, 63, 186, 0.35) !important;
}
.hb-theme-white .hb-slide-title { color: #060B4F !important; }
.hb-theme-white .hb-slide-desc { color: #4A4C6D !important; }
.hb-theme-white .hb-slide-arrow { color: rgba(6, 11, 79, 0.3) !important; }
.hb-theme-white:hover .hb-slide-arrow { color: #FF6B00 !important; }
.hb-theme-white .hb-carousel-dot { background: rgba(6, 11, 79, 0.15) !important; }
.hb-theme-white .hb-carousel-dot.active { background: #060B4F !important; }

/* ─── CAROUSEL BASE ─────────────────────────────────────────── */

.hb-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hb-carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 22px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(15px);
}

.hb-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hb-slide-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.hb-slide-icon-bg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.25);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.1);
  color: #FF8C2B;
}

.hb-carousel-slide:nth-child(2) .hb-slide-icon-bg {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.hb-carousel-slide:nth-child(3) .hb-slide-icon-bg {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.hb-carousel-slide:nth-child(4) .hb-slide-icon-bg {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hb-slide-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #FF6B00 !important;
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.25) !important;
}

.hb-slide-text {
  min-width: 0;
  flex: 1;
}

.hb-slide-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.hb-theme-white .hb-slide-badge {
  background: rgba(6, 11, 79, 0.06);
  color: #060B4F;
}

.hb-theme-orange .hb-slide-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.hb-slide-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.hb-slide-desc {
  font-size: 12px;
  margin: 4px 0 0 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .hb-slide-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

.hb-slide-arrow {
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.hb-carousel-wrapper:hover .hb-slide-arrow {
  transform: translateX(4px);
}

.hb-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hb-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hb-carousel-dot.active {
  width: 14px;
  border-radius: 3px;
}
