/* ════════════════════════════════════════════════════════════════════════
   Microsoft Teams mock  ·  Invisible
   ────────────────────────────────────────────────────────────────────────
   A self-contained, realistic Teams chat surface so the "Slack, Teams, email"
   promise has a Teams proof to point at. Mirrors the polish of the existing
   .coach-* Slack mock but stands alone (no shared chrome) so it can drop into
   any page that ships this stylesheet — no JS, transform/opacity only.

   Recognizable Teams chrome: the Fluent indigo accent (#5b5fc7), the official
   Teams hexagon mark (assets/logos/teams.svg), a left rail of app icons, a
   message from the Invisible app, a reaction, and the Teams compose box.
   Tokens (--white/--ink/--line/--subtle/--body-color) come from styles.css.
   ════════════════════════════════════════════════════════════════════════ */

.mock-teams {
  --teams: #5b5fc7;            /* Teams Fluent indigo */
  --teams-deep: #4f52b2;
  --teams-wash: #f5f5fb;       /* app canvas */
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -34px rgba(18, 28, 26, 0.45);
  display: grid;
  grid-template-columns: 52px 1fr;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  text-align: left;
}

/* ── Left app rail (Teams' signature vertical nav) ─────────────────────── */
.mock-teams-rail {
  background: var(--teams-wash);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.mock-teams-rail-logo {
  width: 26px; height: 26px;
  background: center / 100% no-repeat url('logos/teams.svg');
}
.mock-teams-rail-icon {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: color-mix(in oklab, var(--teams) 16%, var(--white));
  position: relative;
}
.mock-teams-rail-icon::after {
  content: '';
  position: absolute; inset: 5px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--teams) 45%, var(--white));
}
.mock-teams-rail-icon--active { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--teams); }
.mock-teams-rail-icon--active::before {
  content: '';
  position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 2px; background: var(--teams);
}
.mock-teams-rail-icon--active::after { background: var(--teams); }

/* ── Main pane ─────────────────────────────────────────────────────────── */
.mock-teams-main { display: flex; flex-direction: column; min-width: 0; }

.mock-teams-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.mock-teams-head-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  flex-shrink: 0;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
}
.mock-teams-head-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mock-teams-head-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 7px;
}
.mock-teams-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teams);
  background: color-mix(in oklab, var(--teams) 12%, var(--white));
  border-radius: 4px; padding: 2px 5px;
}
.mock-teams-head-sub { font-size: 10.5px; color: var(--subtle); margin-top: 1px; }

.mock-teams-thread {
  flex: 1;
  padding: 16px 16px 8px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white);
}

/* a single message: avatar + content column */
.mock-teams-msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.mock-teams-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
}
.mock-teams-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mock-teams-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.mock-teams-sender { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.mock-teams-time { font-size: 10px; color: var(--subtle); }

/* Teams renders messages in a soft bordered card with a left accent */
.mock-teams-bubble {
  background: var(--teams-wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teams);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}
.mock-teams-bubble strong { font-weight: 600; }

/* reaction pill that hangs off the bubble */
.mock-teams-reactions { display: flex; gap: 6px; margin-top: 6px; }
.mock-teams-reaction {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px 2px 6px;
  font-size: 11px; color: var(--body-color);
  box-shadow: 0 2px 6px -4px rgba(18,28,26,0.4);
}
.mock-teams-reaction-emoji { font-size: 12px; line-height: 1; }
.mock-teams-reaction-count { font-weight: 600; color: var(--ink); }

/* ── Compose box ───────────────────────────────────────────────────────── */
.mock-teams-composer {
  margin: 8px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
}
.mock-teams-composer-input {
  padding: 11px 14px;
  font-size: 12px; color: var(--subtle);
}
.mock-teams-composer-tools {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 12px;
  border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.mock-teams-tool { width: 14px; height: 14px; border-radius: 3px; background: color-mix(in oklab, var(--subtle) 45%, var(--white)); }
.mock-teams-send {
  margin-left: auto;
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--teams); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .mock-teams { grid-template-columns: 44px 1fr; }
  .mock-teams-rail { gap: 13px; }
}
