/* Alert Component Styles */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border-left: 4px solid;
  position: relative;
}

/* Alert Icon */
.alert__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert__icon-svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Alert Content */
.alert__content {
  flex: 1;
  min-width: 0;
}

.alert__title {
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-1);
}

.alert__description {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

/* Close Button */
.alert__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1);
  background: transparent;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-left: var(--space-2);
}

.alert__close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.alert__close:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.alert__close-icon {
  width: 1rem;
  height: 1rem;
}

/* Variant: Info */
.alert--info {
  background-color: rgba(58, 191, 248, 0.1);
  border-left-color: var(--color-info);
  color: #0c4a6e;
}

.alert--info .alert__icon-svg,
.alert--info .alert__close {
  color: var(--color-info);
}

/* Variant: Success */
.alert--success {
  background-color: rgba(54, 211, 153, 0.1);
  border-left-color: var(--color-success);
  color: #065f46;
}

.alert--success .alert__icon-svg,
.alert--success .alert__close {
  color: var(--color-success);
}

/* Variant: Warning */
.alert--warning {
  background-color: rgba(251, 189, 35, 0.1);
  border-left-color: var(--color-warning);
  color: #78350f;
}

.alert--warning .alert__icon-svg,
.alert--warning .alert__close {
  color: var(--color-warning);
}

/* Variant: Error */
.alert--error {
  background-color: rgba(248, 114, 114, 0.1);
  border-left-color: var(--color-error);
  color: #7f1d1d;
}

.alert--error .alert__icon-svg,
.alert--error .alert__close {
  color: var(--color-error);
}
