/* ActivityItem Molecule */
/* Activity feed item for live updates and event logs */

.activity-item {
  background: var(--bg-surface);
  border-radius: var(--border-radius-sm);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
  border: var(--border-width-1) solid var(--border-subtle);
  transition: all var(--duration-200) var(--easing-out);
}

.activity-item.interactive {
  cursor: pointer;
}

.activity-item.interactive:hover {
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.activity-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2);
}

.activity-item-content {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.activity-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.activity-item-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.activity-item-type {
  padding: var(--border-width-2) var(--space-2);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.activity-item-body {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.activity-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: var(--border-width-1) solid var(--border-subtle);
}

/* Alert Levels */
.activity-item.alert-high {
  border-left: var(--border-width-2) solid var(--color-error);
}

.activity-item.alert-high .activity-item-type {
  background: var(--color-error);
  color: white;
}

.activity-item.alert-medium {
  border-left: var(--border-width-2) solid var(--color-warning);
}

.activity-item.alert-medium .activity-item-type {
  background: var(--color-warning);
  color: white;
}

.activity-item.alert-low {
  border-left: var(--border-width-2) solid var(--color-info);
}

.activity-item.alert-low .activity-item-type {
  background: var(--color-info);
  color: white;
}

.activity-item.alert-success {
  border-left: var(--border-width-2) solid var(--color-success);
}

.activity-item.alert-success .activity-item-type {
  background: var(--color-success);
  color: white;
}

/* Compact variant */
.activity-item-compact {
  padding: var(--space-2);
}

.activity-item-compact .activity-item-content {
  font-size: var(--text-xs);
}

/* Activity List Container */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.activity-list-empty {
  text-align: center;
  padding: var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Responsive */
@media (max-width: 768px) {
  .activity-item-header {
    flex-direction: column;
    gap: var(--space-1);
  }
  
  .activity-item-meta {
    width: 100%;
    justify-content: space-between;
  }
}
