/* FIMCON 2026 Speaker Cards — 1080×1080 card component */

@font-face {
  font-family: 'Gotham';
  src: url('assets/Gotham-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Gotham';
  src: url('assets/Gotham-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Gotham';
  src: url('assets/Gotham-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Gotham XNarrow';
  src: url('assets/Gotham-XNarrow-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Gotham XNarrow';
  src: url('assets/Gotham-XNarrow-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}

.card {
  width: 1080px; height: 1080px;
  background: var(--paper);
  position: relative;
  font-family: 'Gotham', 'Manrope', sans-serif;
  color: var(--blue);
  padding: 64px 64px 56px;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* Decorative corner shapes */
.card::before {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,179,62,0.10), transparent 70%);
}
.card::after {
  content: ""; position: absolute; bottom: -160px; left: -160px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,77,142,0.08), transparent 70%);
}

/* "I'M SPEAKING AT" — Gotham Medium, 0.215em tracking */
.card .speaking-at {
  font-family: 'Gotham', sans-serif;
  font-weight: 500;
  font-size: 96px;
  text-align: center;
  letter-spacing: 0.215em;
  text-indent: 0.215em;
  color: var(--blue);
  margin: 0;
  text-transform: uppercase;
  line-height: 1.0;
  white-space: nowrap;
}

/* Conference logo */
.wordmark {
  text-align: center;
  margin-top: 14px;
  position: relative;
}
.wordmark img {
  display: block;
  width: 760px;
  height: auto;
  margin: 0 auto;
}

/* Main grid: avatar | session info */
.card .body {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 40px;
  flex: 1;
  min-height: 0;
}

/* Avatar circle with thick gradient ring */
.avatar-ring {
  width: 420px; height: 420px;
  border-radius: 50%;
  padding: 14px;
  background: conic-gradient(from 220deg,
    #b9d2ed 0deg,
    #5a87b8 60deg,
    #1d4d8e 130deg,
    #5a87b8 200deg,
    #cfe1f5 280deg,
    #b9d2ed 360deg);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.9),
    0 6px 18px rgba(15,52,100,0.12);
  display: flex; align-items: center; justify-content: center;
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  position: relative;
  background: linear-gradient(135deg, #cfe1f5 0%, #e6f0fa 40%, #b9d2ed 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow:
    inset 16px 0 30px rgba(255,255,255,0.6),
    inset -10px -10px 30px rgba(29,77,142,0.18);
  cursor: pointer;
}
.avatar .photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar .upload-hint {
  position: absolute; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  font-family: 'Gotham', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: 0.12em;
  color: var(--blue); text-transform: uppercase;
  background: rgba(255,255,255,0.85);
  padding: 8px 16px; border-radius: 999px;
  pointer-events: none;
  opacity: 0; transition: opacity 0.15s;
  white-space: nowrap;
}
.avatar:hover .upload-hint { opacity: 1; }
.avatar.has-photo .initials,
.avatar.has-photo .upload-hint { display: none; }
.avatar .initials {
  font-family: 'Gotham', sans-serif;
  font-weight: 900;
  font-size: 220px;
  color: var(--blue);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 0 rgba(255,255,255,0.5);
  user-select: none;
}
.avatar::before {
  content: "";
  position: absolute; top: 14%; left: 18%;
  width: 38%; height: 18%;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  filter: blur(20px);
}

/* Session info column */
.session {
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 8px;
  padding-left: 28px;
  min-width: 0;
}
.session .session-label {
  font-family: 'Gotham', sans-serif;
  font-size: 36px; font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green-dk);
  text-transform: uppercase;
  line-height: 1;
}
.session .session-title {
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.04;
  margin: 0;
  font-size: 78px;
  max-width: 504px;
  text-wrap: balance;
}

/* Bottom row: speaker name + datetime pill */
.card .footer {
  display: grid;
  grid-template-columns: 1fr 540px;
  align-items: end;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: -56px;
  margin-left: -64px;
  margin-right: -64px;
  padding-left: 24px;
}

/*
  Speaker name: Gotham Bold, outlined, centered within its column.
  JS fitNameToBox() handles dynamic sizing — it temporarily removes
  -webkit-line-clamp to measure true scrollHeight before re-applying,
  ensuring the font shrinks until the full name fits within 2 visible lines.
*/
.speaker-name {
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--blue);
  font-size: 72px;
  text-align: center;
  text-wrap: balance;
  word-break: break-word;
  overflow-wrap: break-word;
  padding-bottom: 96px;
  max-width: 420px;
  margin-left: 40px;
  margin-right: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.speaker-name .creds {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: var(--blue);
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: inherit;
  display: inline;
}

/* Date/time pill — 540px, anchored bottom-right */
.datetime {
  background: linear-gradient(95deg, #0a4d8e 0%, #3d8a6e 50%, #6bb345 100%);
  border-radius: 28px 0 0 0;
  padding: 26px 56px 26px 84px;
  color: white;
  text-align: center;
  font-family: 'Gotham', sans-serif;
  width: 540px;
  box-sizing: border-box;
}
.datetime .time {
  font-size: 52px;
  letter-spacing: 0.02em;
  color: white;
  opacity: 0.95;
  font-weight: 700;
  display: block;
  line-height: 1.05;
  white-space: nowrap;
}
.datetime .date {
  font-size: 42px;
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-top: 4px;
  display: block;
  line-height: 1.05;
  white-space: nowrap;
}

.card .accent-bar { display: none; }
