/* stylelint-disable selector-class-pattern */

.bac-sheet-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.bac-sheet-card-pills--selector {
  justify-content: flex-start;
  margin-top: 10px;
}

.challenge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgb(0 0 0 / 38%);
  color: #e2e8f0;
  font-family: var(--font-ui, system-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  overflow: hidden;
  pointer-events: none;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(12px) saturate(150%);
  /* stylelint-disable-next-line property-no-vendor-prefix */
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.challenge-pill svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.challenge-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.challenge-pill--account {
  border: 1px solid rgb(56 189 248 / 50%);
  background: linear-gradient(135deg, rgb(15 23 42 / 78%), rgb(30 64 175 / 68%));
  box-shadow:
    0 8px 20px rgb(14 165 233 / 25%),
    inset 0 1px 0 rgb(255 255 255 / 10%);
  color: #bae6fd;
}

.challenge-pill--unlocked {
  border: 1px solid rgb(52 211 153 / 50%);
  background: linear-gradient(135deg, rgb(15 23 42 / 78%), rgb(6 95 70 / 70%));
  box-shadow:
    0 8px 20px rgb(16 185 129 / 24%),
    inset 0 1px 0 rgb(255 255 255 / 10%);
  color: #34d399;
}

.challenge-pill--qcm {
  border: 1px solid rgb(251 191 36 / 50%);
  background: linear-gradient(135deg, rgb(15 23 42 / 78%), rgb(154 52 18 / 68%));
  box-shadow:
    0 8px 20px rgb(217 119 6 / 25%),
    inset 0 1px 0 rgb(255 255 255 / 10%);
  color: #fef08a;
}

.challenge-pill--ai {
  border: 1px solid rgb(168 85 247 / 50%);
  background: linear-gradient(135deg, rgb(15 23 42 / 78%), rgb(88 28 135 / 70%));
  box-shadow:
    0 8px 20px rgb(147 51 234 / 25%),
    inset 0 1px 0 rgb(255 255 255 / 10%);
  color: #e9d5ff;
}

.challenge-pill--paid {
  border: 1px solid rgb(139 92 246 / 48%);
  background: linear-gradient(145deg, rgb(30 27 75 / 72%), rgb(15 23 42 / 84%));
  box-shadow:
    0 10px 28px rgb(168 85 247 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 10%);
  color: #f5d0fe;
}

.bac-sheet-lock-fallback {
  margin: 20px 0 24px;
}

.bac-sheet-lock-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bac-sheet-lock-modal.is-open {
  display: flex;
}

.bac-sheet-lock-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(2 6 23 / 78%);
  backdrop-filter: blur(12px);
  /* stylelint-disable-next-line property-no-vendor-prefix */
  -webkit-backdrop-filter: blur(12px);
}

.bac-sheet-lock-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  border: 1px solid rgb(148 163 184 / 22%);
  border-radius: 24px;
  background: linear-gradient(145deg, rgb(15 23 42 / 98%), rgb(2 6 23 / 98%));
  box-shadow: 0 28px 80px rgb(2 6 23 / 72%);
}

.bac-sheet-lock-modal__dialog .bac-course-sheet-lock {
  min-height: 0;
  border: 0;
  background: transparent;
}

.bac-sheet-lock-modal__dialog .bac-course-sheet-lock__content {
  max-width: none;
  padding: 44px 28px 30px;
}

.bac-sheet-lock-modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  background: rgb(15 23 42 / 76%);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.bac-sheet-lock-modal__close:hover,
.bac-sheet-lock-modal__close:focus-visible {
  border-color: rgb(168 85 247 / 48%);
  color: #fff;
  outline: none;
}

.bac-sheet-secondary-link {
  color: #f8fafc;
  font-weight: 800;
  text-decoration: none;
}

.bac-sheet-secondary-link:hover,
.bac-sheet-secondary-link:focus-visible {
  color: #c4b5fd;
  outline: none;
}

.bac-course-sheet-grid .bac-course-sheet-card .card-content p {
  margin: 8px 0 0;
  color: rgb(203 213 225 / 82%);
  font-size: 0.9rem;
  line-height: 1.45;
}

.bac-course-sheet-grid.bac-method-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.bac-course-sheet-grid .bac-course-sheet-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgb(148 163 184 / 18%);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgb(15 23 42 / 78%), rgb(9 16 35 / 92%)),
    radial-gradient(circle at 8% 0%, rgb(34 211 238 / 10%), transparent 36%);
  box-shadow: 0 24px 58px -38px rgb(2 6 23 / 96%);
}

.bac-course-sheet-grid .bac-course-sheet-card:hover,
.bac-course-sheet-grid .bac-course-sheet-card:focus-within {
  border-color: rgb(125 211 252 / 38%);
  background:
    linear-gradient(145deg, rgb(15 23 42 / 88%), rgb(9 16 35 / 96%)),
    radial-gradient(circle at 8% 0%, rgb(34 211 238 / 16%), transparent 38%);
  transform: translateY(-6px);
}

.bac-course-sheet-grid .bac-method-card__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.bac-course-sheet-grid .card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.bac-course-sheet-grid .card-chapter-number {
  color: rgb(248 250 252 / 72%);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.bac-course-sheet-grid .card-content h3 {
  margin: 0;
  color: rgb(248 250 252 / 96%);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  line-height: 1.18;
}

.bac-course-sheet-grid .card-xp-container {
  margin-top: auto;
  padding-top: 12px;
}

.bac-course-sheet-grid .xp-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgb(226 232 240 / 92%);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bac-course-sheet-grid .xp-track {
  height: 4px;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  overflow: hidden;
}

.bac-course-sheet-grid .xp-bar {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  box-shadow: 0 0 12px rgb(34 211 238 / 48%);
}

@media (max-width: 640px) {
  .bac-sheet-card-pills {
    justify-content: flex-start;
  }

  .challenge-pill {
    max-width: 100%;
    font-size: 0.6rem;
    padding: 6px 9px;
  }

  .bac-sheet-lock-modal {
    padding: 14px;
  }
}

/* stylelint-enable selector-class-pattern */
