/*
 * Shared UI components
 */

/* ========== STAT CARD (signature component) ========== */

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-stat-bar);
}

.stat-card:hover {
  box-shadow: 0 0 0 1px var(--color-accent-dim), var(--shadow-elevated);
}

.stat-card .stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.stat-card .stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.stat-card--danger::before {
  background: var(--color-danger);
}

.stat-card--secondary::before {
  background: var(--color-stat-bar-secondary);
}

.stat-card--warning::before {
  background: var(--color-stat-bar-warning);
}

.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

/* ========== HERO / PAGE HEADER ========== */

.page-hero {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  padding: 2rem 1.5rem;
}

.page-hero h1,
.page-hero .display-5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.page-hero .lead {
  color: var(--color-text-muted);
}

/* ========== UTILITIES ========== */

.loading-indicator {
  display: none;
}

.hidden {
  display: none !important;
}

.alert-max-width {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-white-75 {
  color: var(--color-footer-link) !important;
  text-decoration: none !important;
}

.text-white-75:hover {
  color: var(--color-text-on-dark) !important;
  text-decoration: underline !important;
}
