/* ==========================================================================
   AbraTestimonials: styles
   Values come from the old site (Tailwind classes translated to plain CSS):
     single   = StarMasterPage / QuestionPage / VaultSection "TestimonialSlider"
     carousel = components/TestimonialsSection.tsx (homepage)
   Override the tokens below to re-theme. Add .abt--light to the mount element
   for the new light ("off-white with a pink blur") background.
   ========================================================================== */

.abt {
  --abt-gold: #D4AF37;                       /* old GOLD */
  --abt-gold-dim: rgba(212, 175, 55, .2);
  --abt-pink: hsl(322 100% 48%);             /* old --primary */
  --abt-pink-glow: hsl(318 90% 58%);
  --abt-fg: hsl(40 33% 92%);                 /* old --foreground */
  --abt-card: hsl(0 0% 6%);                  /* old --card */
  --abt-card-single: rgba(20, 15, 2, 1);     /* StarMaster card */
  --abt-border: hsl(322 35% 22%);            /* old --border */
  --abt-ms: 900ms;                           /* set by JS */
  --abt-per: 1;                              /* set by JS */
  font-family: "Heebo", system-ui, sans-serif;
  color: var(--abt-fg);
  position: relative;
}
.abt *, .abt *::before, .abt *::after { box-sizing: border-box; }
.abt figure, .abt blockquote { margin: 0; }

/* ---------- stars (old GoldStar / lucide Star) ---------- */
.abt-stars { display: inline-flex; align-items: center; gap: 2px; direction: ltr; }
.abt-star { position: relative; display: inline-block; width: 14px; height: 14px; }
.abt-star svg { display: block; width: 14px; height: 14px; }
.abt-star-base path { fill: none; stroke: rgba(202, 138, 4, .3); stroke-width: 2; stroke-linejoin: round; }
.abt-star-fill { position: absolute; inset: 0; overflow: hidden; }
.abt-star-fill svg { filter: drop-shadow(0 0 3px rgba(255, 215, 0, .8)) drop-shadow(0 0 6px rgba(255, 180, 0, .5)); }
.abt-star-fill path { stroke: #FFD700; stroke-width: 2; stroke-linejoin: round; }

/* ==========================================================================
   SINGLE: one card at a time, blur cross-fade
   ========================================================================== */
.abt--single { max-width: 42rem; margin-inline: auto; padding-inline: 16px; }
.abt--single .abt-track { display: grid; }           /* all slots stacked → height = tallest card, no jump */
.abt--single .abt-slot {
  grid-area: 1 / 1;
  opacity: 0;
  filter: blur(14px);
  transform: scale(.985);
  visibility: hidden;
  transition:
    opacity calc(var(--abt-ms) * .7) ease,
    filter calc(var(--abt-ms) * .7) ease,
    transform calc(var(--abt-ms) * .7) ease,
    visibility 0s linear calc(var(--abt-ms) * .7);
  will-change: opacity, filter;
}
.abt--single .abt-slot.is-on {
  opacity: 1;
  filter: blur(0);
  transform: none;
  visibility: visible;
  transition:
    opacity var(--abt-ms) ease calc(var(--abt-ms) * .25),
    filter var(--abt-ms) ease calc(var(--abt-ms) * .25),
    transform var(--abt-ms) ease calc(var(--abt-ms) * .25),
    visibility 0s;
}
.abt--single .abt-card {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, .22);
  background: var(--abt-card-single);
  box-shadow: 0 0 60px rgba(212, 175, 55, .06);
  padding: 32px;
}
@media (min-width: 640px) { .abt--single .abt-card { padding: 40px; } }
.abt--single .abt-top { display: flex; justify-content: center; margin-bottom: 20px; }
.abt--single .abt-rate { display: inline-flex; align-items: center; gap: 6px; }
.abt--single .abt-stars { gap: 4px; }
.abt--single .abt-star, .abt--single .abt-star svg { width: 18px; height: 18px; }
.abt--single .abt-star-base path { stroke: var(--abt-gold); }
.abt--single .abt-star-fill svg { filter: none; }
.abt--single .abt-star-fill path { stroke: var(--abt-gold); }
.abt--single .abt-text {
  color: #fff; font-size: 16px; line-height: 1.625; font-style: italic; margin-bottom: 24px;
}
@media (min-width: 640px) { .abt--single .abt-text { font-size: 18px; } }
.abt--single .abt-cap { display: flex; flex-direction: column; align-items: center; }
.abt--single .abt-line {
  width: 48px; height: 1px; margin-bottom: 16px;
  background: linear-gradient(90deg, transparent, var(--abt-gold), transparent);
}
.abt--single .abt-name { font-weight: 900; font-size: 16px; color: var(--abt-gold); }
.abt--single .abt-role { font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: 2px; }
.abt--single .abt-topic {
  align-self: center; font-size: 11px; font-weight: 600; color: var(--abt-gold);
  background: rgba(212, 175, 55, .1); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.abt--single .abt-num { font-size: 11px; font-weight: 700; color: rgba(234, 179, 8, .8); }

/* controls: [›] [dots] [‹] */
.abt--single .abt-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.abt--single .abt-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 900 20px/1 "Heebo", system-ui, sans-serif;
  background: rgba(212, 175, 55, .1); border: 1px solid rgba(212, 175, 55, .3); color: var(--abt-gold);
  cursor: pointer; transition: transform .3s ease;
}
.abt--single .abt-arrow:hover { transform: scale(1.1); }
.abt--single .abt-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.abt--single .abt-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: var(--abt-gold-dim); cursor: pointer;
  transition: all .3s ease;
}
.abt--single .abt-dot.is-on { width: 22px; background: var(--abt-gold); }

/* ==========================================================================
   CAROUSEL: literal homepage port
   ========================================================================== */
.abt--carousel .abt-frame { position: relative; max-width: 72rem; margin-inline: auto; }
.abt--carousel .abt-stage { overflow: hidden; }
.abt--carousel .abt-track {
  display: flex;
  transition: transform var(--abt-ms) cubic-bezier(.4, 0, .2, 1);   /* Tailwind ease-in-out */
  will-change: transform;
}
.abt--carousel .abt-slot { flex: 0 0 calc(100% / var(--abt-per)); padding: 0 12px; }
.abt--carousel .abt-card {
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--abt-card);
  border: 1px solid hsl(318 90% 58% / .32);
  box-shadow: inset 0 0 20px hsl(318 90% 58% / .06), 0 0 15px hsl(318 90% 58% / .12);
  border-radius: 16px;
  padding: 20px;
}
@media (min-width: 640px) { .abt--carousel .abt-card { padding: 32px; } }
.abt--carousel .abt-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.abt--carousel .abt-rate { display: flex; align-items: center; gap: 6px; }
.abt--carousel .abt-num { font-size: 10px; font-weight: 700; color: rgba(234, 179, 8, .8); }
.abt--carousel .abt-quote-icon { color: hsl(322 100% 48% / .2); display: inline-flex; }
.abt--carousel .abt-topic {
  align-self: flex-start; display: inline-block;
  font-size: 10px; font-weight: 600; letter-spacing: .025em; text-transform: uppercase;
  color: var(--abt-pink); background: hsl(322 100% 48% / .1);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.abt--carousel .abt-text { color: hsl(40 33% 92% / .8); font-size: 14px; line-height: 1.625; margin-bottom: 24px; flex: 1; }
@media (min-width: 640px) { .abt--carousel .abt-text { font-size: 16px; } }
.abt--carousel .abt-cap { display: flex; flex-direction: column; }
.abt--carousel .abt-line {
  width: 32px; height: 2px; margin-bottom: 16px;
  background: linear-gradient(90deg, transparent, var(--abt-pink-glow), transparent);
}
.abt--carousel .abt-name { font-weight: 700; font-size: 14px; color: var(--abt-fg); }
.abt--carousel .abt-role { font-size: 12px; color: hsl(40 33% 92% / .4); }

.abt--carousel .abt-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--abt-card); border: 1px solid var(--abt-border); color: hsl(40 33% 92% / .5);
  cursor: pointer; transition: all .3s ease;
}
.abt--carousel .abt-arrow:hover { background: var(--abt-pink); color: #fff; }
.abt--carousel .abt-prev { left: -4px; }   /* physical sides, as in the old code */
.abt--carousel .abt-next { right: -4px; }
@media (min-width: 768px) {
  .abt--carousel .abt-arrow { width: 40px; height: 40px; }
  .abt--carousel .abt-prev { left: -48px; }
  .abt--carousel .abt-next { right: -48px; }
}
.abt--carousel .abt-dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.abt--carousel .abt-dot {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px;
  background: hsl(40 33% 92% / .15); cursor: pointer; transition: all .3s ease;
}
.abt--carousel .abt-dot.is-on { width: 24px; background: var(--abt-pink); }

/* ---------- shared ---------- */
.abt button:focus-visible { outline: 2px solid var(--abt-gold); outline-offset: 3px; }

/* ---------- light variant for the new site (opt-in: class="abt--light") ---------- */
.abt--light { --abt-fg: #1d1517; }
.abt--light.abt--single .abt-card,
.abt--light.abt--carousel .abt-card {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(184, 134, 43, .28);
  box-shadow: 0 20px 60px -30px rgba(154, 106, 18, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.abt--light.abt--single .abt-text { color: #1d1517; }
.abt--light.abt--single .abt-role, .abt--light.abt--carousel .abt-role { color: rgba(29, 21, 23, .55); }
.abt--light { --abt-gold: #B8862B; --abt-gold-dim: rgba(184, 134, 43, .22); }

@media (prefers-reduced-motion: reduce) {
  .abt--single .abt-slot, .abt--single .abt-slot.is-on { filter: none; transform: none; transition-duration: 0s; transition-delay: 0s; }
  .abt--carousel .abt-track { transition: none; }
}
