/* ============================================
   PIXEL PRODUCTION — Team Member Card Styles
   ============================================ */

/* ─── Team Card ─── */
.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.team-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

/* Draggable State */
.team-card[draggable="true"] {
  cursor: grab;
}

.team-card[draggable="true"]:active {
  cursor: grabbing;
}

.team-card.dragging {
  opacity: 0.5;
}

/* ─── Card Header ─── */
.team-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.team-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
  position: relative;
}

.team-card-avatar .status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-surface);
}

.status-dot.available { background: var(--success); }
.status-dot.assigned  { background: var(--warning); }
.status-dot.busy      { background: var(--error); }
.status-dot.on-leave  { background: var(--text-muted); }

.team-card-info {
  flex: 1;
  min-width: 0;
}

.team-card-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.team-card-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.team-card-actions {
  flex-shrink: 0;
}

/* ─── Status Badge ─── */
.team-card-status {
  margin-bottom: var(--space-md);
}

/* ─── Contact Info ─── */
.team-card-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.team-card-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.team-card-contact-item svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* ─── Experience ─── */
.team-card-exp {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* ─── Equipment ─── */
.team-card-equipment {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

/* ─── Skills ─── */
.team-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--space-md);
}

/* ─── Current Assignment ─── */
.team-card-assignment {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.team-card-assignment-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.team-card-assignment-name {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.team-card-assignment-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* ─── Partner Company ─── */
.team-card-partner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--primary);
  font-weight: 500;
}

/* ─── Team Profile Modal ─── */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.profile-name {
  font-size: var(--text-xl);
  font-weight: 600;
}

.profile-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.profile-stat {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.profile-stat-value {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-mono);
}

.profile-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-section {
  margin-bottom: var(--space-xl);
}

.profile-section-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* ─── Mini Availability Calendar ─── */
.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mini-cal-header {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  padding: 4px;
}

.mini-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mini-cal-day.today {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.mini-cal-day.available {
  background: var(--success-bg);
  color: var(--success);
}

.mini-cal-day.assigned {
  background: var(--error-bg);
  color: var(--error);
}

.mini-cal-day.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.mini-cal-day.leave {
  background: var(--border-subtle);
  color: var(--text-secondary);
}

.mini-cal-day.empty {
  opacity: 0;
  pointer-events: none;
}
