/* persona-bio.css -- OCA Team Dashboard v2
   Persona bio modal: overlay, dialog, avatar, content.
   Matches v2 design tokens. No em-dashes.
*/

/* ---- Overlay backdrop ---- */
.persona-bio-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 19, 24, 0.52);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: persona-bio-fade-in 0.14s ease;
}

@keyframes persona-bio-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Dialog surface ---- */
.persona-bio-dialog {
  position: relative;
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--surface-0);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--border);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: persona-bio-slide-up 0.16s ease;
}

@keyframes persona-bio-slide-up {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Focus ring for keyboard users */
.persona-bio-dialog:focus {
  outline: none;
}

/* ---- Close button ---- */
.persona-bio-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, color 0.1s;
}

.persona-bio-close:hover {
  background: var(--hover-strong);
  color: var(--ink-1);
}

/* ---- Avatar wrap ---- */
.persona-bio-avatar-wrap {
  margin-bottom: 4px;
}

/* Fallback when makePersonaAvatar is unavailable */
.persona-bio-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Francois One', sans-serif;
  font-size: 40px;
  color: #fff;
  flex-shrink: 0;
}

/* ---- Name ---- */
.persona-bio-name {
  margin: 0;
  font-family: 'Francois One', sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-1);
  text-align: center;
}

/* ---- Role + dept row ---- */
.persona-bio-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

.persona-bio-role {
  font-weight: 600;
}

.persona-bio-dept {
  font-weight: 500;
  color: var(--ink-3);
}

/* ---- Divider ---- */
.persona-bio-divider {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

/* ---- Bio paragraph ---- */
.persona-bio-body {
  margin: 0;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  text-align: left;
  width: 100%;
}

/* ---- "Start a conversation" CTA button ---- */
.persona-bio-cta {
  margin-top: 16px;
  width: 100%;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: var(--coral, #EF7B45);
  background-image: linear-gradient(
    180deg,
    rgba(255,255,255,.18) 0%,
    rgba(255,255,255,0) 55%,
    rgba(0,0,0,.06) 100%
  );
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 1px 3px rgba(0,0,0,.12),
    0 2px 8px rgba(239,123,69,.22);
  transition: transform .08s, box-shadow .08s;
}

.persona-bio-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 2px 6px rgba(0,0,0,.14),
    0 4px 12px rgba(239,123,69,.28);
}

.persona-bio-cta:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 1px 2px rgba(0,0,0,.10);
}

/* ---- Info icon trigger (small ⓘ appended next to avatars) ---- */
.persona-bio-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  vertical-align: middle;
  transition: color 0.12s, background 0.12s;
  flex-shrink: 0;
}

.persona-bio-info-icon:hover {
  color: var(--teal);
  background: var(--teal-soft);
}
