/**
 * Member listing cards (member_box_1) — minimal surface, responsive, accessible
 */
.member-card {
  --mc-radius: 12px;
  --mc-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --mc-shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.1);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--mc-radius);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--mc-shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.member-card:hover {
  box-shadow: var(--mc-shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(15, 23, 42, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .member-card {
    transition: none;
  }
  .member-card:hover {
    transform: none;
  }
}

.member-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.member-card__link:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #ff068f) 35%, transparent);
  border-radius: var(--mc-radius);
}

@supports not (border-color: color-mix(in srgb, red, blue)) {
  .member-card__link:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 6, 143, 0.25);
  }
}

.member-card__media {
  position: relative;
  height: 300px;
  max-height: 300px;
  background: #f1f5f9;
}

/**
 * Mobile: .aiz-carousel.gutters-* adds horizontal padding on .carousel-box (e.g. 10px),
 * which leaves empty bands beside the card — pull the card flush to the slide edges.
 */
@media (max-width: 767.98px) {
  .aiz-carousel.gutters-10 .carousel-box .member-card--in-carousel {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
    max-width: none;
  }

  .aiz-carousel.gutters-5 .carousel-box .member-card--in-carousel {
    margin-left: -5px;
    margin-right: -5px;
    width: calc(100% + 10px);
    max-width: none;
  }

  .aiz-carousel.gutters-15 .carousel-box .member-card--in-carousel {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    max-width: none;
  }

  /* Carousels without gutters-* class: zero side padding on the slide cell */
  .aiz-carousel:not([class*="gutters-"]) .carousel-box .member-card--in-carousel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

.member-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.member-card:hover .member-card__img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .member-card:hover .member-card__img {
    transform: none;
  }
}

.member-card__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  z-index: 2; /* below .member-card__body so name strip stays readable */
}

.member-card__lock i {
  font-size: 2.25rem;
  opacity: 0.95;
}

.member-card__gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.08) 65%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.member-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 0.75rem 0.85rem 0.9rem;
  text-align: center;
  isolation: isolate;
}

/* Mirror glass: frosted blur + layered “reflection” + specular streak (::after) */
.member-card__body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0 0 calc(var(--mc-radius) - 1px) calc(var(--mc-radius) - 1px);
  background:
    /* angled mirror gleam (top) */
    linear-gradient(
      168deg,
      rgba(255, 255, 255, 0.65) 0%,
      rgba(255, 255, 255, 0.18) 18%,
      transparent 42%
    ),
    /* soft milky glass tint */
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.06) 38%,
      transparent 68%
    ),
    /* depth + readability on any photo */
    linear-gradient(
      180deg,
      rgba(8, 12, 24, 0.38) 0%,
      rgba(15, 23, 42, 0.78) 100%
    );
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 -10px 36px rgba(0, 0, 0, 0.2);
}

/* Specular highlight strip (mirror reflection) */
.member-card__body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  z-index: -1;
  pointer-events: none;
  border-radius: 0 0 calc(var(--mc-radius) - 1px) calc(var(--mc-radius) - 1px);
  background: linear-gradient(
    122deg,
    transparent 38%,
    rgba(255, 255, 255, 0.5) 48%,
    rgba(255, 255, 255, 0.14) 51.5%,
    transparent 62%
  );
  opacity: 0.75;
  mix-blend-mode: soft-light;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .member-card__body::before {
    background: linear-gradient(
      168deg,
      rgba(55, 65, 85, 0.95) 0%,
      rgba(30, 41, 59, 0.96) 45%,
      rgba(15, 23, 42, 0.98) 100%
    );
  }

  .member-card__body::after {
    opacity: 0.35;
    mix-blend-mode: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-card__body::before {
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
  }
}

@media (min-width: 768px) {
  .member-card__body {
    padding: 1rem 1rem 1.1rem;
  }
}

.member-card__name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.member-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(0, 0, 0, 0.25);
}

.member-card__icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
}

.member-card__icon--ok {
  color: #6ee7b7;
}

.member-card__icon--pending {
  color: #fcd34d;
}

.member-card__meta {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.member-card__meta-label {
  opacity: 0.85;
}

.member-card__meta-code {
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 600;
  margin-inline-start: 0.25rem;
}

/* Carousel: keep gutters from parent */
.carousel-box .member-card {
  margin-bottom: 0;
}
