/* ─────────────────────────────────────────────
   index.css  —  styles specific to index.html
   ───────────────────────────────────────────── */

/* ── Hero background grid ── */
.hero-bg {
  background: #ffffff;
  background-image:
    linear-gradient(rgba(37, 99, 235, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Speaker cards ── */
.speaker-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
  transition: all .3s ease;
  overflow: hidden;
}
.speaker-card:hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, .12);
  border-color: #93c5fd;
  transform: translateY(-4px);
}

/* Speaker avatar colour variants */
.avatar-af { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.avatar-na { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.avatar-za { background: linear-gradient(135deg, #92400e, #d97706); }
.avatar-lk { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.avatar-ny { background: linear-gradient(135deg, #6b21a8, #a855f7); }
.avatar-vk { background: linear-gradient(135deg, #b91c1c, #ea580c); }
.avatar-tba { background: linear-gradient(135deg, #475569, #94a3b8); }

/* ── Schedule row types ── */
.sch-speaker { background: #eff6ff; border-left: 3px solid #2563eb; }
.sch-game    { background: #f5f3ff; border-left: 3px solid #7c3aed; }
.sch-break   { background: #f0fdf4; border-left: 3px solid #16a34a; }
.sch-special { background: #fffbeb; border-left: 3px solid #d97706; }
.sch-opening { background: #ecfeff; border-left: 3px solid #0891b2; }

/* ── Countdown boxes ── */
.cd-box {
  background: #fff;
  border: 2px solid #bfdbfe;
  border-radius: .75rem;
  min-width: 72px;
  padding: .75rem .5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .08);
}

/* ── Prize cards ── */
.prize-card {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 1rem;
  transition: all .25s ease;
  box-shadow: 0 1px 4px rgba(217, 119, 6, .08);
}
.prize-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 20px rgba(217, 119, 6, .15);
  transform: translateY(-3px);
}
.prize-card .prize-img {
  display: block;
  width: 100%;
  max-width: 7.5rem; /* ~120px — compact thumbnails */
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 0 auto 0.5rem;
  background: #f1f5f9;
}

/* E-passport plaque photo — visually drop black JPEG background on light UI */
.epassport-plaque-wrap {
  background: #fff;
}
.epassport-plaque-inner {
  position: relative;
  isolation: isolate;
}
.epassport-plaque-img {
  mix-blend-mode: screen;
  filter: contrast(1.08) saturate(1.05);
}

@media (prefers-color-scheme: dark) {
  .epassport-plaque-img {
    mix-blend-mode: normal;
    filter: none;
  }
}

/* ── Redesigned prize split cards ── */
.prize-split-card {
  background: #fff;
  border: 1px solid var(--card-accent, #e2e8f0);
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.prize-split-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
.prize-split-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  color: #fff;
}
.prize-split-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  opacity: .9;
}
.prize-split-label {
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
}
.prize-split-sublabel {
  font-size: .72rem;
  opacity: .72;
  margin-top: 2px;
}
.prize-split-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prize-split-desc {
  font-size: .8rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 18px;
}

/* Voucher card internals */
.prize-voucher-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-accent-light, #f8fafc);
  border-radius: .875rem;
  padding: 16px 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.prize-voucher-badge {
  text-align: center;
}
.prize-voucher-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1;
}
.prize-voucher-unit {
  font-size: .68rem;
  color: #92400e;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 3px;
}
.prize-voucher-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.prize-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}
.prize-stat-num {
  font-size: .85rem;
  font-weight: 700;
  color: #1e293b;
}
.prize-stat-lbl {
  font-size: .6rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 1px;
}
.prize-stat-sep {
  font-size: .75rem;
  color: #cbd5e1;
  font-weight: 600;
}
.prize-split-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-top: auto;
}
.prize-split-total-label {
  font-size: .72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.prize-split-total-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #92400e;
}

/* Podium rows for e-passport card */
.prize-podium {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.prize-podium-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-accent-light, #f8fafc);
  border-radius: .75rem;
  padding: 10px 14px;
}
.prize-podium-medal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.prize-podium-info {
  flex: 1;
}
.prize-podium-place {
  font-size: .75rem;
  font-weight: 700;
  color: #334155;
}
.prize-podium-prize {
  font-size: .68rem;
  color: #94a3b8;
  margin-top: 1px;
}
.prize-podium-amount {
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Plaque thumbnail — constrained, no overflow */
.prize-plaque-thumb {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  margin-top: auto;
  text-align: center;
}
.prize-plaque-thumb img {
  display: block;
  margin: 0 auto;
  max-height: 160px;
  width: auto;
  max-width: 100%;
  border-radius: .5rem;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.05) saturate(1.08);
}

/* Invited organisations (landing — matches registration agency list) */
.invited-agencies-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem 1rem;
  font-size: .75rem;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.invited-agencies-toggle:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}
.invited-agencies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  text-align: left;
}
@media (min-width: 640px) {
  .invited-agencies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .invited-agencies-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.invited-agency-chip {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .55rem .65rem;
  font-size: .7rem;
  line-height: 1.35;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: .5rem;
  transition: border-color .15s, background .15s;
}
.invited-agency-chip:hover {
  background: #fff;
  border-color: #93c5fd;
}
.invited-agency-chip__dot {
  width: 6px;
  height: 6px;
  margin-top: .35rem;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
}
