/* ===== QMoji 2.0 — about page ===== */

/* admin.css's .admin-main caps out at 760px -- sensible for the
   form-heavy admin dashboard it was designed for, but on this page it
   left the team grid squeezed into a narrow column pinned to the left
   edge with a wide dead strip of empty screen next to it on anything
   wider than a laptop. Centered (inheriting admin.css's margin:0 auto)
   with a wider cap instead, so the page actually uses a wide screen
   without stretching into unreadably long text lines. */
.admin-main {
  max-width: 1100px;
}

/* Fixed 4 columns (Hui Ying/Kuokuo/Sriya/Diana across the top, Logan/
   Siddharth/Anya below, left-aligned with a trailing gap) rather than
   auto-fill, which was packing 5 across the top and stranding whoever's
   left on their own row. Collapses to fewer columns as the viewport
   narrows so it still reads fine on a phone. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* Mirrors index.html's game cabinets (.cabinet/.cabinet-emoji/etc in
   style.css) so the team roster reads as more cabinets in the same arcade,
   not a different, more corporate-looking component bolted on. A card with
   an href is a real <a> (opens the person's LinkedIn); one without is a
   plain <div> with the same look but no hover-lift/click affordance. */
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px 14px 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel) 0%, #150a29 100%);
  border: 3px solid var(--panel-line);
  text-decoration: none;
  cursor: default;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.12s ease, border-color 0.15s ease;
}

a.team-card { cursor: pointer; }

a.team-card:hover,
a.team-card:focus-visible {
  transform: translateY(-4px) scale(1.035);
  outline: none;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  opacity: 0;
  border-radius: 8px;
  transition: opacity 0.18s ease;
}
a.team-card:hover::before,
a.team-card:focus-visible::before { opacity: 1; }

.team-card-cyan { border-color: rgba(51,255,240,0.35); }
.team-card-cyan::before { box-shadow: 0 0 26px 4px var(--cyan), inset 0 0 22px rgba(51,255,240,0.25); }
.team-card-magenta { border-color: rgba(255,63,216,0.35); }
.team-card-magenta::before { box-shadow: 0 0 26px 4px var(--magenta), inset 0 0 22px rgba(255,63,216,0.25); }
.team-card-yellow { border-color: rgba(255,233,63,0.35); }
.team-card-yellow::before { box-shadow: 0 0 26px 4px var(--yellow), inset 0 0 22px rgba(255,233,63,0.25); }
.team-card-green { border-color: rgba(61,255,138,0.35); }
.team-card-green::before { box-shadow: 0 0 26px 4px var(--green), inset 0 0 22px rgba(61,255,138,0.25); }
.team-card-orange { border-color: rgba(255,138,63,0.35); }
.team-card-orange::before { box-shadow: 0 0 26px 4px var(--orange), inset 0 0 22px rgba(255,138,63,0.25); }
.team-card-violet { border-color: rgba(179,102,255,0.35); }
.team-card-violet::before { box-shadow: 0 0 26px 4px var(--violet), inset 0 0 22px rgba(179,102,255,0.25); }

/* Game-profile-card avatar: a circular photo with that person's emoji as a
   small badge over its lower-right corner. Fixed size regardless of the
   source photo's own aspect ratio (object-fit: cover) or which emoji
   renders wide/narrow/tall, so every card lines up the same -- the "same
   size, fit to a square or circle" ask.

   team-card-photo sits on TOP of team-card-emoji-fallback (both absolutely
   filling the same circle) and hides itself via onerror if
   team-photos/<name>.jpg doesn't exist yet -- no JS beyond that one inline
   handler. That reveals the fallback emoji underneath at full avatar size,
   so a teammate with no photo yet reads as "emoji avatar" (this app's
   original design) rather than a broken-image icon. */
.team-card-avatar {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  margin-bottom: 6px;
  border-radius: 50%;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.4));
  transition: transform 0.15s ease;
}

a.team-card:hover .team-card-avatar,
a.team-card:focus-visible .team-card-avatar {
  transform: scale(1.08) rotate(-3deg);
}

.team-card-emoji-fallback,
.team-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  border: 2px solid var(--panel-line);
}

.team-card-emoji-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  line-height: 1;
}

.team-card-photo {
  object-fit: cover;
  object-position: center top;
}

/* Small corner badge -- always shows this person's emoji, photo or not, so
   it reads as their own pick rather than only a fallback state. */
.team-card-emoji-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--panel-line);
  font-size: 1.1rem;
  line-height: 1;
}

.team-card-name {
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--ink);
}

.team-card-role {
  font-family: var(--mono-font);
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink-soft);
}

.team-card-link {
  font-family: var(--pixel-font);
  font-size: 0.6rem;
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255,233,63,0.7);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

a.team-card:hover .team-card-link,
a.team-card:focus-visible .team-card-link {
  opacity: 1;
  transform: translateY(0);
}
