/* =========================
  ScanWin — campaigns.css
========================= */

/* =========================
  Discover Header Start
========================= */
.sw-discover {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.sw-discover__head {
  min-width: 0;
}

.sw-discover__title {
  font-size: 32px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.56px;
  color: #0f1020;
  margin: 0 0 6px 0;
}

.sw-discover__sub {
  font-size: 14px;
  line-height: 20px;
  color: var(--sw-text-muted);
  margin: 0;
}

/* Sort dropdown (right side of header) */
.sw-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #0f1020;
  flex-shrink: 0;
  cursor: pointer;
}

.sw-sort:hover {
  background: #f9fafb;
}

.sw-sort__label {
  color: var(--sw-text-muted);
}

.sw-sort__value {
  font-weight: 600;
}
/* =========================
  Discover Header End
========================= */

/* =========================
  Featured Carousel Banner Start
  Dark navy → violet gradient. Bootstrap 5 carousel with
  custom indicators (pill that grows on active).
========================= */
.sw-featured-carousel {
  position: relative;
  margin-bottom: 24px;
}

.sw-featured {
  background: linear-gradient(
    21.47deg,
    #0f0f21 31.7%,
    #4a3dc4 68.3%,
    #6e5ef7 104.9%
  );
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  gap: 32px;
  align-items: center;
}

/* Decorative blurred circles on the right */
.sw-featured::before,
.sw-featured::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.sw-featured::before {
  width: 280px;
  height: 280px;
  right: -100px;
  top: -99px;
  filter: blur(20px);
}

.sw-featured::after {
  width: 180px;
  height: 180px;
  right: -80px;
  top: 103px;
  filter: blur(20px);
}

/* Left content column */
.sw-featured__left {
  flex: 1;
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

/* LIMITED TIME · FEATURED green pill */
.sw-pill-limited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 10px;
  background: #a3f238;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.88px;
  color: #0f0f21;
  text-transform: uppercase;
}

.sw-pill-limited img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sw-featured__title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.56px;
  color: #fff;
  margin: 0;
}

/* Stats row with vertical dividers */
.sw-featured__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sw-featured__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sw-featured__stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.44px;
  color: rgba(255, 255, 255, 0.6);
}

.sw-featured__stat-value {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.18px;
  color: #fff;
}

.sw-featured__divider {
  width: 1px;
  height: 28px;
  background: rgba(217, 217, 217, 0.33);
  flex-shrink: 0;
}

/* Apply-now button (white, violet text) */
.sw-btn-apply {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 14px 22px;
  background: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sw-violet);
  text-decoration: none;
}

.sw-btn-apply:hover {
  background: var(--sw-violet-50);
  color: var(--sw-violet-600);
}

/* Right glass card with countdown */
.sw-featured__right {
  flex-shrink: 0;
  width: 280px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6.5px);
  -webkit-backdrop-filter: blur(6.5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.sw-featured__brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.sw-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sw-countdown__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  background: rgba(15, 15, 33, 0.4);
  border-radius: 8px;
  min-width: 46px;
}

.sw-countdown__num {
  font-size: 18px;
  line-height: 22px;
  font-weight: 600;
  color: #fff;
}

.sw-countdown__label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.72px;
  color: rgba(255, 255, 255, 0.6);
}

.sw-featured__expiry {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.sw-featured__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--sw-text-muted);
}

/* Carousel indicators (override Bootstrap default) */
.sw-featured-carousel .carousel-indicators {
  position: relative;
  margin: 0;
  gap: 4px;
  flex: 0 0 auto;
}

.sw-featured-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  border: 0;
  margin: 0;
  text-indent: 0;
  opacity: 1;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.sw-featured-carousel .carousel-indicators .active {
  width: 28px;
  background: var(--sw-violet);
}

.sw-featured-carousel .carousel-item {
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.15, 1);
}

/* Subtle "lift in" — incoming content fades + nudges upward */
.sw-featured-carousel .carousel-item .sw-featured__left,
.sw-featured-carousel .carousel-item .sw-featured__right {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease 0.2s,
    transform 0.3s ease 0.2s;
}

.sw-featured-carousel .carousel-item.active .sw-featured__left,
.sw-featured-carousel .carousel-item.active .sw-featured__right {
  opacity: 1;
  transform: translateY(0);
}
/* =========================
  Featured Carousel Banner End
========================= */

/* =========================
  Filter Bar Start (tabs + recommended)
========================= */
.sw-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* "Filters" button with sliders icon */
.sw-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #0f1020;
}

.sw-filter-toggle:hover {
  background: #f9fafb;
}

.sw-filter-toggle__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sw-violet);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* Pill tab */
.sw-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
}

.sw-tab:hover {
  background: #f9fafb;
  color: #0f1020;
}

.sw-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.sw-tab.is-active {
  background: #0f1020;
  color: #fff;
  border-color: #0f1020;
}

.sw-tab.is-active:hover {
  color: #fff;
  background: #1a1a2e;
}

.sw-tab.is-active .sw-tab__count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.sw-recommend {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  background: #eeedfe;
  border: 1px solid var(--sw-violet);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sw-violet);
  text-decoration: none;
}

.sw-recommend:hover {
  background: var(--sw-violet-50);
  color: var(--sw-violet-600);
}
/* =========================
  Filter Bar End
========================= */

/* =========================
  Campaign Grid Start
========================= */
.sw-grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sw-grid-head__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f1020;
  margin: 0;
}

.sw-grid-head__count {
  font-size: 12px;
  color: var(--sw-text-muted);
}

.sw-camp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sw-camp-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 14px 18px;
  background: #f3f4f6;
}

.sw-camp-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sw-camp-card__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.sw-camp-card__logo--rounded {
  border-radius: 999px;
}

.sw-camp-card__brand-name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #0f1020;
}

.sw-camp-card__brand-cat {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: #6b7280;
}

.sw-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.sw-status--hot {
  background: linear-gradient(90deg, #f59e0a 0%, #ed4545 100%);
  color: #fff;
  letter-spacing: 0.2px;
}

.sw-status--hot img {
  width: 10px;
  height: 10px;
}

.sw-status--new {
  background: #a3f238;
  color: #0f0f21;
  letter-spacing: 0.8px;
}

.sw-status--trending {
  background: #eeedfe;
  color: var(--sw-violet);
  letter-spacing: 0.8px;
}

.sw-status--premium {
  background: #ddd9fc;
  color: var(--sw-violet);
  letter-spacing: 0.8px;
}

.sw-camp-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  flex: 1;
}

.sw-camp-card__title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #0f1020;
  margin: 0;
}

.sw-camp-card__region {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: #6b7280;
}

.sw-camp-card__region svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #6b7280;
}

.sw-camp-stats {
  display: flex;
  gap: 8px;
}

.sw-camp-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 10px;
  min-width: 0;
}

.sw-camp-stat__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.sw-camp-stat__value {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-camp-stat--payout {
  background: #d1fae5;
  color: #065f46;
}

.sw-camp-stat--payout .sw-camp-stat__label,
.sw-camp-stat--payout .sw-camp-stat__value {
  color: #065f46;
}

.sw-camp-stat--neutral {
  background: #f3f4f6;
}

.sw-camp-stat--neutral .sw-camp-stat__label {
  color: #9ca3af;
}

.sw-camp-stat--neutral .sw-camp-stat__value {
  color: #0f1020;
}

.sw-camp-stat--tier-violet {
  background: #eeedfe;
  color: var(--sw-violet);
}

.sw-camp-stat--tier-violet .sw-camp-stat__label,
.sw-camp-stat--tier-violet .sw-camp-stat__value {
  color: var(--sw-violet);
}

/* Budget row + striped progress bar */
.sw-camp-budget {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.sw-camp-budget__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.sw-camp-budget__label {
  color: #9ca3af;
  font-weight: 500;
}

.sw-camp-budget__value {
  color: #6b7280;
  font-weight: 600;
}

.sw-camp-budget__bar {
  height: 12px;
  background: #f3f4f6;
  border-radius: 32px;
  overflow: hidden;
}

.sw-camp-budget__bar-fill {
  height: 100%;
  border-radius: 10px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18) 0 6px,
      rgba(255, 255, 255, 0) 6px 12px
    ),
    linear-gradient(180deg, #6e5ef7 0%, #9c8ff7 100%);
}

/* Footer button row */
.sw-camp-card__footer {
  padding: 0 18px 16px;
}

.sw-btn-apply-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  background: var(--sw-violet);
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.sw-btn-apply-now:hover {
  background: var(--sw-violet-600);
  color: #fff;
}

.sw-btn-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  background: #fef3c7;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  cursor: not-allowed;
}

.sw-btn-locked svg {
  width: 15px;
  height: 15px;
}
/* =========================
  Campaign Grid End
========================= */

/* =========================
  Campaigns Page Responsive Start
========================= */

/* Tablet & smaller */
@media (max-width: 991.98px) {
  .sw-featured {
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
  }

  .sw-featured__right {
    width: 100%;
  }

  .sw-featured__title {
    font-size: 22px;
    line-height: 28px;
  }

  .sw-featured__stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .sw-discover {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .sw-sort {
    align-self: flex-start;
  }
}

@media (max-width: 575.98px) {
  .sw-app__content {
    display: flex;
    flex-direction: column;
  }

  .sw-discover {
    order: 1;
  }
  .sw-filter-bar {
    order: 2;
  }
  .sw-featured-carousel {
    order: 3;
  }
  .sw-camp-grid {
    order: 4;
  }

  .sw-discover__title {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.52px;
  }

  .sw-featured {
    flex-direction: column-reverse;
    padding: 20px 16px;
    gap: 16px;
  }

  .sw-featured__right {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .sw-featured__brand-logo {
    width: 72px;
    height: 72px;
  }

  .sw-featured__expiry {
    display: none;
  }

  .sw-featured__title {
    font-size: 22px;
    line-height: 28px;
  }

  .sw-featured__stats {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .sw-featured__stat-label {
    font-size: 9px;
    letter-spacing: 0.36px;
  }

  .sw-featured__stat-value {
    font-size: 12px;
  }

  .sw-featured__divider {
    height: 32px;
  }

  .sw-btn-apply {
    width: 100%;
    justify-content: center;
  }

  .sw-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .sw-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .sw-tab,
  .sw-filter-toggle,
  .sw-recommend {
    flex-shrink: 0;
  }

  .sw-recommend {
    margin-left: 0;
  }
}
/* =========================
  Campaigns Page Responsive End
========================= */
