/* ============================================
   GrapoliX Alerts Component
   DESIGN.md — UI Components — NOTIFICATION / ALERT
   ============================================ */

/* ── Base Alert ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 3px;
  border: 1px solid transparent;
  border-left-width: 3px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  margin-bottom: 16px;
}

/* ── Alert Icon ── */
.alert__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Alert Content ── */
.alert__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.alert__message {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Color Variants ── */
.alert--success {
  border-left-color: #2d6a4f;
  border-color: rgba(45, 106, 79, 0.2);
}

.alert--success .alert__icon,
.alert--success .alert__title {
  color: #4caf7d;
}

.alert--warning {
  border-left-color: var(--gold);
  border-color: rgba(232, 213, 163, 0.2);
}

.alert--warning .alert__icon,
.alert--warning .alert__title {
  color: var(--gold);
}

.alert--error {
  border-left-color: var(--garnet);
  border-color: rgba(110, 20, 35, 0.25);
}

.alert--error .alert__icon,
.alert--error .alert__title {
  color: #e05c6a;
}

.alert--info {
  border-left-color: var(--silver);
  border-color: rgba(192, 192, 192, 0.15);
}

.alert--info .alert__icon,
.alert--info .alert__title {
  color: var(--silver);
}

/* ── Dismissible ── */
.alert--dismissible {
  padding-right: 44px;
  position: relative;
}

.alert__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 2px;
  transition: color 200ms ease;
}

.alert__close:hover {
  color: var(--text);
}
