/* ─── ShareableCard: 400×400 fixed canvas, CSS-scaled to fit container ── */

@keyframes sc-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(230,57,70,0.3), 0 32px 80px rgba(0,0,0,0.85), 0 8px 32px rgba(230,57,70,0.22), 0 0 60px rgba(230,57,70,0.08); }
  50%       { box-shadow: 0 0 0 1px rgba(230,57,70,0.5), 0 32px 80px rgba(0,0,0,0.85), 0 8px 32px rgba(230,57,70,0.36), 0 0 80px rgba(230,57,70,0.18); }
}

@keyframes sc-shimmer {
  0%   { transform: translateX(-100%) skewX(-18deg); }
  100% { transform: translateX(260%) skewX(-18deg); }
}

@keyframes sc-bar-glow {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; box-shadow: 2px 0 16px rgba(230,57,70,0.7); }
}

.sc-outer {
  overflow: hidden;
  border-radius: 22px;
  animation: sc-glow-pulse 3s ease-in-out infinite;
  background: #0A0A0A;
}

/* ─── Card canvas ─────────────────────────────────────────────────── */
.sc-card {
  width: 400px;
  height: 400px;

  /* [3] Richer background: warm diagonal base + deep red bloom bottom-right */
  background-color: #0A0A0A;
  background-image:
    radial-gradient(ellipse at 108% 115%, rgba(230, 57, 70, 0.42) 0%, rgba(160, 18, 30, 0.18) 28%, transparent 52%),
    radial-gradient(ellipse at -6% -6%,  rgba(230, 57, 70, 0.09) 0%, transparent 38%),
    linear-gradient(148deg, #0E0D0D 0%, #0A0A0A 45%, #120608 100%);

  display: flex;
  flex-direction: column;
  padding: 20px 22px 16px 26px;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep — runs once on mount, then every 6s */
.sc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  animation: sc-shimmer 6s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Left accent stripe */
.sc-accent-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, transparent 0%, #E63946 15%, #ff6b7a 50%, #E63946 85%, transparent 100%);
  z-index: 2;
  animation: sc-bar-glow 3s ease-in-out infinite;
}

/* Decorative concentric circles — bottom-right corner */
.sc-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.sc-circle-1 { bottom: -55px; right: -55px; width: 210px; height: 210px; border: 1px solid rgba(230, 57, 70, 0.22); background: radial-gradient(circle, rgba(230,57,70,0.04) 0%, transparent 70%); }
.sc-circle-2 { bottom: -38px; right: -38px; width: 155px; height: 155px; border: 1px solid rgba(230, 57, 70, 0.14); }
.sc-circle-3 { bottom: -22px; right: -22px; width: 100px; height: 100px; border: 1px solid rgba(230, 57, 70, 0.08); }

.sc-card > *:not(.sc-accent-bar):not(.sc-circle) {
  position: relative;
  z-index: 1;
}

/* ─── Top Bar ─────────────────────────────────────────────────────── */
.sc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sc-logo-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sc-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sc-logo-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.70);
}

.sc-logo-text span {
  color: #E63946;
  font-weight: 800;
}

.sc-period-badge {
  background: #E63946;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  line-height: 1;
}

/* ─── Thin red separator line ─────────────────────────────────────── */
.sc-topline {
  height: 1px;
  background: linear-gradient(90deg, #E63946 0%, rgba(230, 57, 70, 0.12) 100%);
  margin-bottom: 12px;
  opacity: 0.6;
}

/* ─── Hero Name ───────────────────────────────────────────────────── */
.sc-hero {
  margin-bottom: 12px;
}

/* [5] Uppercase name — institutional names look certified & shareable */
.sc-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;      /* wide tracking for uppercase */
  text-transform: uppercase;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 4px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sc-sub {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.30);
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ─── Portrait mode: large centered photo ────────────────────────── */
.sc-card--portrait {
  height: 560px;
  padding-bottom: 20px;
}

.sc-photo-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.sc-avatar-big {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(230, 57, 70, 0.92);
  box-shadow:
    0 0 0 3px rgba(0,0,0,0.65),
    0 0 40px rgba(230, 57, 70, 0.55),
    0 14px 36px rgba(0,0,0,0.80);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.sc-photo-hero .sc-name {
  text-align: center;
  font-size: 18px;
}

.sc-photo-hero .sc-sub {
  text-align: center;
}

/* ─── Stats Row (3 blocks) ────────────────────────────────────────── */
.sc-stats {
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 13px;
}

.sc-stat {
  flex: 1;
  padding: 11px 6px 9px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s;
}

.sc-stat:last-child {
  border-right: none;
}

/* [1] Accent stat: glowing red-tinted block — one number becomes the hero */
.sc-stat-accent {
  background: rgba(230, 57, 70, 0.10) !important;
  box-shadow: inset 0 0 0 1px rgba(230, 57, 70, 0.22);
}

/* [4] Bigger stat numbers — 28px → 34px, bold and poster-sized at export */
.sc-stat-number {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-stat-number.accent {
  color: #ff4d5a;
  text-shadow: 0 0 28px rgba(230, 57, 70, 0.70), 0 0 8px rgba(230,57,70,0.40);
}

.sc-stat-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.33);
  text-transform: uppercase;
  line-height: 1.2;
}

/* ─── Divider ─────────────────────────────────────────────────────── */
.sc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.75), transparent);
  margin-bottom: 10px;
}

/* ─── Message ─────────────────────────────────────────────────────── */
.sc-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0 4px;
  position: relative;   /* positioning context for quote mark */
  overflow: hidden;
}

/* [2] Large faint opening quote — editorial magazine feel */
.sc-quote-bg {
  position: absolute;
  top: -14px;
  left: -2px;
  font-size: 110px;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* All message text floats above the quote mark */
.sc-message > *:not(.sc-quote-bg) {
  position: relative;
  z-index: 1;
}

.sc-headline {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.sc-body {
  font-size: 10px;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-bottom: 7px;
}

.sc-closer {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.40);
  text-transform: uppercase;
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.sc-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sc-footer-dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #E63946;
  opacity: 0.55;
  flex-shrink: 0;
}

.sc-footer-text {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(230, 57, 70, 0.65);
  white-space: nowrap;
}
