/* UnitBrains CoverFlow Slider – Frontend Styles */

/* ---- Wrapper ---- */
.ub-slider-wrapper {
  --ub-primary: #0ea5ff;
  --ub-radius:  24px;

  position: relative;
  width: 100%;
  padding: 48px 0 64px;
  overflow: hidden;
}

/* ---- Swiper Container ---- */
.ub-swiper {
  width: 100%;
  min-height: 440px;
  padding-bottom: 56px !important;
}

/* ---- Slide ---- */
.ub-swiper .swiper-slide {
  width: 280px;
  height: auto;
  will-change: transform, opacity;
}

/* ---- Card ---- */
.ub-slide-card {
  border-radius: var(--ub-radius);
  overflow: hidden;
  background: #ffffff;
  height: 440px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
  transition: box-shadow .4s ease;
}

/* Dark overlay on inactive slides */
.ub-swiper .swiper-slide:not(.swiper-slide-active) .ub-slide-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  border-radius: inherit;
  z-index: 20;
  pointer-events: none;
  transition: background .4s ease;
}

/* Active slide glow + float */
.ub-swiper .swiper-slide-active .ub-slide-card {
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .45),
    0 0 50px rgba(14, 165, 255, .18);
  animation: ub-float 4s ease-in-out infinite;
}

/* ---- Logo Section (top white area) ---- */
.ub-card-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px 20px;
  background: #ffffff;
  min-height: 0;
}

.ub-slide-image {
  max-width: 82%;
  max-height: 155px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ---- Info Section (colored bottom area) ---- */
.ub-card-info {
  border-radius: var(--ub-radius) var(--ub-radius) 0 0;
  padding: 26px 22px 30px;
  text-align: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ---- Title ---- */
.ub-card-title {
  color: #ffffff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.25;
  margin: 0 0 16px;
}

/* ---- Shop Button ---- */
.ub-card-btn {
  display: inline-block;
  padding: 9px 28px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.ub-card-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  color: #ffffff;
  text-decoration: none;
}

/* ---- Pagination ---- */
.ub-pagination {
  bottom: 14px !important;
}

.ub-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(14, 165, 255, .3);
  opacity: 1;
  transition: all .3s;
}

.ub-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 4px;
  background: var(--ub-primary);
}

/* ---- Navigation Arrows ---- */
.ub-nav-prev,
.ub-nav-next {
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, .95) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2) !important;
  transition: all .2s !important;
}

.ub-nav-prev:hover,
.ub-nav-next:hover {
  background: #fff !important;
  box-shadow: 0 6px 24px rgba(14, 165, 255, .35) !important;
  transform: scale(1.08);
}

.ub-nav-prev::after,
.ub-nav-next::after {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--ub-primary) !important;
}

/* ---- Float animation ---- */
@keyframes ub-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ub-swiper .swiper-slide {
    width: 240px;
  }

  .ub-slide-card {
    height: 380px;
  }

  .ub-slide-image {
    max-height: 125px;
  }

  .ub-card-title {
    font-size: 15px;
  }

  .ub-nav-prev,
  .ub-nav-next {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 480px) {
  .ub-swiper .swiper-slide {
    width: 200px;
  }

  .ub-slide-card {
    height: 320px;
  }

  .ub-slide-image {
    max-height: 105px;
  }

  .ub-card-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .ub-card-btn {
    font-size: 10px;
    padding: 7px 20px;
    letter-spacing: 1px;
  }
}
