/* backend/src/main/resources/static/infrastructure/error-overlay.css */

/* ==============================================
   ERROR OVERLAY — Infrastructure

   JS-created overlay shown when frontend
   initialization fails (DOMContentLoaded catch).
   Created by showErrorOverlay() in index.ts.
   ============================================== */

.error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gb-backdrop-heavy);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--gb-font-primary);
}

.error-overlay__card {
  text-align: center;
  padding: var(--gb-spacing-2xl);
  background: var(--gb-bg-surface);
  border: 1px solid var(--gb-border-default);
  border-radius: var(--gb-radius-lg);
  max-width: 500px;
  box-shadow: var(--gb-shadow-lg);
}

.error-overlay__icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-bottom: var(--gb-spacing-md);
}

.error-overlay__title {
  color: var(--gb-color-error);
  font-size: var(--gb-type-heading-3-size);
  line-height: var(--gb-type-heading-3-leading);
  letter-spacing: var(--gb-type-heading-3-tracking);
  font-weight: var(--gb-font-weight-bold);
  margin: 0 0 var(--gb-spacing-lg);
}

.error-overlay__text {
  color: var(--gb-text-secondary);
  font-size: var(--gb-type-body-size);
  margin: 0 0 var(--gb-spacing-md);
}

.error-overlay__detail {
  color: var(--gb-text-tertiary);
  font-size: var(--gb-type-secondary-size);
  margin: 0 0 var(--gb-spacing-xl);
}

.error-overlay__reload {
  background: var(--gb-color-success);
  color: var(--gb-text-on-accent);
  border: none;
  padding: var(--gb-spacing-sm) var(--gb-spacing-lg);
  border-radius: var(--gb-radius-sm);
  font-size: var(--gb-type-secondary-size);
  font-weight: var(--gb-font-weight-medium);
  font-family: inherit;
  cursor: pointer;
  transition: background var(--gb-transition-fast);
}

.error-overlay__reload:hover {
  filter: brightness(0.9);
}