/* GameVox Agent Dashboard - Context Panel Styles */

/* ─── User Dossier Header ─── */

.dossier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.dossier-header__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.dossier-header__info {
  flex: 1;
  min-width: 0;
}

.dossier-header__username {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-header__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* ─── Dossier Sections ─── */

.dossier-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.dossier-section__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ─── Account Info ─── */

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.account-row__label {
  font-size: 12px;
  color: var(--text-secondary);
}

.account-row__value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* ─── Risk Indicators ─── */

.risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.risk-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}

.risk-item__value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.risk-item__value--danger {
  color: var(--error);
}

.risk-item__value--warning {
  color: var(--warning);
}

.risk-item__label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.risk-flag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  color: var(--error);
  margin-top: 8px;
}

.risk-flag--warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.risk-flag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─── Server List ─── */

.server-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.server-item:hover {
  background: var(--hover-overlay);
}

.server-item__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.server-item__count {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Moderation History Timeline ─── */

.mod-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mod-timeline-entry {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  position: relative;
}

.mod-timeline-entry:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 26px;
  bottom: -8px;
  width: 1px;
  background: var(--border);
}

.mod-timeline-entry__icon {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.mod-timeline-entry__icon--warn { background: rgba(245, 158, 11, 0.2); border: 2px solid var(--warning); }
.mod-timeline-entry__icon--mute { background: rgba(96, 165, 250, 0.2); border: 2px solid #60a5fa; }
.mod-timeline-entry__icon--suspend { background: rgba(234, 88, 12, 0.2); border: 2px solid var(--severity-threats); }
.mod-timeline-entry__icon--ban { background: rgba(239, 68, 68, 0.2); border: 2px solid var(--error); }
.mod-timeline-entry__icon--unban { background: rgba(34, 197, 94, 0.2); border: 2px solid var(--success); }
.mod-timeline-entry__icon--note { background: rgba(139, 92, 246, 0.2); border: 2px solid #a78bfa; }

.mod-timeline-entry__body {
  flex: 1;
  min-width: 0;
}

.mod-timeline-entry__action {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.mod-timeline-entry__reason {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
  line-height: 1.4;
}

.mod-timeline-entry__meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Alt Account Indicator ─── */

.alt-accounts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alt-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.alt-account__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.alt-account__match {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.alt-account__match--high { color: var(--error); }
.alt-account__match--medium { color: var(--warning); }
.alt-account__match--low { color: var(--text-muted); }

/* ─── Quick Actions ─── */

.quick-actions {
  padding: 14px 16px;
}

.quick-actions__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

/* ─── Internal Notes ─── */

.note-entry {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-bottom: 8px;
}

.note-entry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.note-entry__author {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-light);
}

.note-entry__date {
  font-size: 10px;
  color: var(--text-muted);
}

.note-entry__body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.note-add {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.note-add textarea {
  flex: 1;
  min-height: 60px;
}
