/* Newve Clinic — Before/After Gallery + Gate
 * Gate page for non-logged-in, full gallery for members
 */

/* ── Gate page (non-logged-in) ────────────────────────── */
.newve-ba-gate {
  max-width: 1140px;
  margin: 0 auto;
}

.newve-ba-gate__hero {
  text-align: center;
  padding: 0 0 48px;
}
.newve-ba-gate__hero .newve-page-hero__eyebrow {
  color: #0070DF;
  letter-spacing: 0.3em;
}

.newve-ba-gate__value {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.newve-ba-gate__value-item {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--newve-border-soft, #eee);
  border-radius: 14px;
  background: var(--newve-white);
}
.newve-ba-gate__value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: rgba(0, 112, 223, 0.08);
  color: #0070DF;
}
.newve-ba-gate__value-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: var(--newve-fw-semibold);
  color: var(--newve-dark);
}
.newve-ba-gate__value-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--newve-gray-2);
}

/* Preview grid — blurred thumbnails */
.newve-ba-gate__preview {
  margin-bottom: 48px;
}
.newve-ba-gate__preview-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--newve-gray-2);
  margin-bottom: 20px;
}
.newve-ba-gate__preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.newve-ba-gate__preview-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--newve-bg-light, #f5f5f5);
}
.newve-ba-gate__preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(0.9);
}
.newve-ba-gate__preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}
.newve-ba-gate__preview-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: var(--newve-white);
}
.newve-ba-gate__preview-lock svg {
  background: rgba(0, 0, 0, 0.45);
  padding: 10px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

/* Gate CTA block */
.newve-ba-gate__cta {
  background: #0070DF;
  color: var(--newve-white);
  text-align: center;
  padding: 56px 40px;
  border-radius: 14px;
  margin-bottom: 48px;
}
.newve-ba-gate__cta h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: var(--newve-fw-bold);
  color: var(--newve-white);
}
.newve-ba-gate__cta p {
  margin: 0 0 28px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.newve-ba-gate__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.newve-ba-gate__cta .newve-btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--newve-white);
  color: #0070DF;
  border-radius: 9999px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.newve-ba-gate__cta .newve-btn--ghost {
  border: 1.5px solid var(--newve-white);
  color: var(--newve-white);
  border-radius: 9999px;
  padding: 14px 32px;
  font-size: 16px;
  background: transparent;
  text-decoration: none;
}
.newve-ba-gate__cta .newve-btn--ghost:hover {
  background: var(--newve-white);
  color: #0070DF;
}

/* Gate compliance strip */
.newve-ba-gate__compliance {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.newve-ba-gate__compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--newve-border-soft, #eee);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--newve-gray-2);
  background: var(--newve-white);
}
.newve-ba-gate__compliance-badge svg {
  width: 14px;
  height: 14px;
  color: #22C55E;
}

/* ── Gallery view (logged-in) ─────────────────────────── */
.newve-ba-gallery {
  max-width: 1140px;
  margin: 0 auto;
}

/* Category filter nav */
.newve-ba-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 16px 0;
  border-top: 1px solid var(--newve-border-soft, #eee);
  border-bottom: 1px solid var(--newve-border-soft, #eee);
}
.newve-ba-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--newve-border-soft, #eee);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--newve-text);
  text-decoration: none;
  background: var(--newve-white);
  transition: color 0.3s, border-color 0.3s;
}
.newve-ba-filter a:hover,
.newve-ba-filter a.is-active {
  color: #0070DF;
  border-color: #0070DF;
}

/* Gallery grid — 2 columns for side-by-side comparison */
.newve-ba-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Gallery case card */
.newve-ba-case {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--newve-border-soft, #eee);
  border-radius: 14px;
  overflow: hidden;
  background: var(--newve-white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.newve-ba-case:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.newve-ba-case__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.newve-ba-case__img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.newve-ba-case__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.newve-ba-case__img figcaption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.newve-ba-case__body {
  padding: 18px 20px;
}
.newve-ba-case__treatment {
  display: block;
  font-size: 15px;
  font-weight: var(--newve-fw-semibold);
  color: var(--newve-dark);
  margin-bottom: 6px;
}
.newve-ba-case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.newve-ba-case__meta span {
  font-size: 12px;
  color: var(--newve-gray-2);
  padding: 3px 8px;
  border: 1px solid var(--newve-border-soft, #eee);
  border-radius: 9999px;
}

/* ── Single case detail ───────────────────────────────── */
.newve-ba-single {
  max-width: 860px;
  margin: 0 auto;
}
.newve-ba-single__comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.newve-ba-single__figure {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}
.newve-ba-single__figure img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.newve-ba-single__figure figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.newve-ba-single__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  padding: 24px;
  border: 1px solid var(--newve-border-soft, #eee);
  border-radius: 14px;
  background: var(--newve-white);
}
.newve-ba-single__detail-item {
  text-align: center;
}
.newve-ba-single__detail-item dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--newve-gray-2);
  margin-bottom: 4px;
}
.newve-ba-single__detail-item dd {
  margin: 0;
  font-size: 16px;
  font-weight: var(--newve-fw-semibold);
  color: var(--newve-dark);
}
.newve-ba-single__content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--newve-text);
  margin-bottom: 40px;
}
.newve-ba-single__disclaimer {
  background: var(--newve-bg-light);
  padding: 24px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--newve-gray-2);
  line-height: 1.6;
  margin-bottom: 32px;
}
.newve-ba-single__actions {
  display: flex;
  gap: 12px;
}
.newve-ba-single__actions .newve-btn {
  border-radius: 10px;
}

/* ── Archive — eyebrow override ───────────────────────── */
.newve-ba-archive .newve-page-hero__eyebrow {
  color: #0070DF;
  letter-spacing: 0.3em;
}
.newve-ba-archive .newve-container {
  max-width: 1140px;
}

/* ── Responsive — tablet ──────────────────────────────── */
@media (max-width: 991px) and (min-width: 768px) {
  .newve-ba-gate__value {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .newve-ba-gate__preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newve-ba-gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .newve-ba-gate__cta {
    padding: 40px 24px;
  }
}

/* ── Responsive — mobile ─────────────────────────────── */
@media (max-width: 767px) {
  .newve-ba-gate__value {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .newve-ba-gate__preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .newve-ba-gate__preview-card:nth-child(n+5) {
    display: none;
  }
  .newve-ba-gate__cta {
    padding: 40px 20px;
    border-radius: 10px;
  }
  .newve-ba-gate__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .newve-ba-gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .newve-ba-single__comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .newve-ba-single__figure img {
    aspect-ratio: 4/3;
  }
  .newve-ba-single__details {
    grid-template-columns: repeat(2, 1fr);
  }
  .newve-ba-single__actions {
    flex-direction: column;
  }
  .newve-ba-filter {
    gap: 6px;
  }
  .newve-ba-filter a {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 34px;
  }
}
