/* ============================================
   Alert Component Styles
   ============================================ */

@import url('/ui-library/01-core/design-tokens-core.css');

/* Base alert styles */
.alert {
  position: relative;
  padding: var(--spacing-lg);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  opacity: 1;
  transition: opacity 0.3s ease-out;
  margin-bottom: var(--spacing-md);
}

/* Alert content container */
.alert-content {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  flex: 1;
}

/* Alert icon */
.alert-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* Alert text container */
.alert-text {
  flex: 1;
  min-width: 0;
}

/* Alert title */
.alert-title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-md);
  color: inherit;
}

/* Alert message */
.alert-message {
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  color: inherit;
  word-wrap: break-word;
}

/* Alert close button */
.alert-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  color: inherit;
  transition: background-color var(--transition-normal);
}

.alert-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   Alert Variants
   ============================================ */

/* Info variant (blue) */
.alert-info {
  background: #e7f3ff;
  border-color: #3b82f6;
  color: #0958a8;
}

/* Success variant (green) */
.alert-success {
  background: #d4edda;
  border-color: #22c55e;
  color: #146c32;
}

/* Warning variant (orange/yellow) */
.alert-warning {
  background: #fff3cd;
  border-color: #eab308;
  color: #856404;
}

/* Danger variant (red) */
.alert-danger {
  background: #f8d7da;
  border-color: #ef4444;
  color: #842029;
}

/* ============================================
   Accessibility
   ============================================ */

.alert[role="alert"] {
  /* Screen reader support for alerts */
}

/* ============================================
   Animation States
   ============================================ */

/* Fade out animation */
.alert[style*="opacity: 0"] {
  pointer-events: none;
}
