/* ========================================================
   TEAM — Team cards, avatars, modals
   Extracted from client/templates/team.html inline <style>
   ======================================================== */

/* Team card interactive state */
.team-card-interactive {
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.team-card-interactive:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

/* Avatar wrapper and mail badge */
.team-avatar-link {
  display: inline-block;
  margin: 0 auto 1.125rem;
  text-decoration: none;
  position: relative;
}

.team-avatar-wrap {
  position: relative;
}

.team-avatar-mail-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.team-avatar-link:hover .team-avatar-mail-badge {
  transform: scale(1.15);
  background: var(--accent);
  color: var(--accent-foreground);
}

/* Expand prompt */
.team-card-expand-prompt {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary);
  opacity: 0.85;
  transition: var(--t-fast);
}

[data-theme="dark"] .team-card-expand-prompt {
  color: var(--accent);
}

.team-card-interactive:hover .team-card-expand-prompt {
  opacity: 1;
  transform: translateX(4px);
}

/* Team modal */
.team-modal-box {
  width: min(560px, 94vw);
}

.team-modal-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.team-modal-avatar-link {
  text-decoration: none;
  flex-shrink: 0;
}

.team-modal-avatar {
  margin: 0;
  width: 84px;
  height: 84px;
  font-size: 2.25rem;
}

.team-modal-info {
  flex: 1;
}

.team-modal-title {
  font-size: var(--text-h3);
  margin: 0.35rem 0 0.2rem;
}

.team-modal-subtitle {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.team-modal-text {
  font-size: var(--text-small);
  line-height: 1.7;
  color: var(--fg-2);
  white-space: pre-line;
}

.team-modal-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
