/* Styles for /tt-testimonials.js: the result wall on the sales page and the "recent result" toast.
   Self-contained (own custom properties) because it is loaded by the static /akademia page and by
   Astro pages alike. Colours follow the site: green Akadémia, violet Belső Kör, gold Mentorprogram. */
.tt-host, .tt-toast, .tt-zoom {
  --tt-green: #00e297; --tt-green-hi: #3df0b3; --tt-green-ink: #03140d;
  --tt-pro-soft: #d8c6ff; --tt-gold-soft: #ecd485;
  --tt-text: #f2f5f3; --tt-t2: #b6bfba; --tt-t3: #96a09a;
  --tt-hair: rgba(255, 255, 255, 0.09); --tt-hair-strong: rgba(255, 255, 255, 0.16);
  --tt-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Wall ── */
/* Rows line up: every card in a row is the same height, every screenshot the same shape, and the
   result line sits on the bottom edge whatever the card holds. */
.tt-wall { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 640px) { .tt-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tt-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tt-disc { margin: 18px 0 0; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--tt-t3); }

.tt-card { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 14px; border-radius: 18px; border: 1px solid var(--tt-hair); background: rgba(255, 255, 255, 0.04); text-align: left; }
.tt-card.is-new { border-color: rgba(0, 226, 151, 0.5); background: rgba(0, 226, 151, 0.05); }
.tt-new { position: absolute; top: 14px; right: 14px; height: 22px; padding: 0 9px; border-radius: 6px; display: inline-flex; align-items: center; background: var(--tt-green); color: var(--tt-green-ink); font: 800 12px/1 Manrope, system-ui, sans-serif; letter-spacing: 0.02em; }
.tt-card-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tt-card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--tt-t2); }
.tt-card-foot b { font: 700 14.5px/1.2 Manrope, system-ui, sans-serif; color: var(--tt-text); }
.tt-card-foot time { color: var(--tt-t3); white-space: nowrap; }
.tt-shot { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: zoom-in; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.3); }
.tt-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.tt-shot:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 3px; }
.tt-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--tt-text); white-space: pre-wrap; overflow-wrap: anywhere; }

.tt-av { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.08); }
.tt-av--initials { display: grid; place-items: center; font: 800 13px/1 Manrope, system-ui, sans-serif; color: #0a0d0c; background: #9be7c9; }
.tt-who { min-width: 0; display: grid; gap: 3px; justify-items: start; }
.tt-who > b { font: 700 14.5px/1.2 Manrope, system-ui, sans-serif; color: var(--tt-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tt-role { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font: 600 11.5px/1 Inter, system-ui, sans-serif; white-space: nowrap; color: var(--tt-t2); background: rgba(255, 255, 255, 0.06); }
.tt-role--ak { color: var(--tt-green-hi); background: rgba(0, 226, 151, 0.12); }
.tt-role--bk { color: var(--tt-pro-soft); background: rgba(167, 123, 255, 0.18); }
.tt-role--mp { color: var(--tt-gold-soft); background: rgba(212, 175, 55, 0.15); }

/* ── Toast ── bottom-left on desktop. On phones it sits at the TOP, so it can never cover the pay
   button or the sticky call-to-action at the bottom of the screen. */
.tt-toast { position: fixed; z-index: 60; left: 16px; right: 16px; top: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--tt-hair-strong); border-top-color: rgba(255, 255, 255, 0.24); background: rgba(20, 25, 23, 0.94); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.95); opacity: 0; visibility: hidden; transform: translateY(-14px); transition: opacity 0.5s var(--tt-ease), transform 0.6s var(--tt-ease), visibility 0s 0.6s; font-family: Inter, system-ui, sans-serif; }
.tt-toast.is-in { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (min-width: 640px) { .tt-toast { top: auto; right: auto; left: 24px; bottom: 24px; width: 348px; transform: translateY(18px); } }
.tt-toast-main { display: flex; align-items: center; gap: 12px; }
.tt-toast .tt-av { width: 40px; height: 40px; }
.tt-toast .tt-who { flex: 1; }
.tt-toast-line { font-size: 14px; color: var(--tt-t2); }
.tt-toast-line b { font: 700 15px/1.2 Manrope, system-ui, sans-serif; color: var(--tt-text); }
.tt-toast-x { all: unset; box-sizing: border-box; cursor: pointer; flex: none; align-self: flex-start; width: 32px; height: 32px; margin: -6px -8px 0 0; display: grid; place-items: center; border-radius: 8px; color: var(--tt-t3); font-size: 18px; line-height: 1; }
.tt-toast-x:hover { color: var(--tt-text); background: rgba(255, 255, 255, 0.07); }
.tt-toast-x:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 1px; }

/* ── Enlarged image ── */
.tt-zoom { all: unset; box-sizing: border-box; position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.88); cursor: zoom-out; }
.tt-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .tt-toast { transition: none; transform: none; }
}

/* "Show more" under a folded wall */
.tt-card[hidden] { display: none; }
.tt-more { display: block; margin: 20px auto 0; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--tt-hair-strong); background: rgba(255, 255, 255, 0.05); color: var(--tt-text); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background 0.2s var(--tt-ease), border-color 0.2s var(--tt-ease); }
.tt-more:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.tt-more:focus-visible { outline: 2px solid var(--tt-green); outline-offset: 3px; }
