/**
 * Elequate Hub — Global Stylesheet
 * ─────────────────────────────────────────────────────────────────────────────
 * Link this as the FIRST stylesheet on every Hub page:
 *   <link rel="stylesheet" href="shared/global.css">
 *
 * Defines:
 *   1. CSS custom properties (design tokens)
 *   2. Base reset
 *   3. Body base layout (flex column, full-height)
 *   4. Canonical .app-footer component
 * ─────────────────────────────────────────────────────────────────────────────
 */

/* ── 1. Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-primary:   #1a2744;
  --bg-secondary: #0d1e36;
  --bg-tertiary:  #112033;
  --bg-card:      rgba(255,255,255,0.04);
  --bg-hover:     rgba(255,255,255,0.06);

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-3:         #94a3b8;   /* alias */
  --text-muted:     #64748b;

  /* Accent */
  --accent-primary: #1a6dbd;
  --accent-hover:   #1557a0;
  --accent-cyan:    #21c0ff;
  --blueprint-blue: #2d7db3;

  /* Borders */
  --border-light: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

/* ── 2. Base Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── 3. Body Base ──────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ── 4. Canonical Footer ───────────────────────────────────────────────────── */
.app-footer {
  background: #1e5a82;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;   /* pushes to bottom when content is short */
  flex-shrink: 0;     /* never squish the footer */
}

.footer-tagline {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  flex: 1;
}

.footer-tagline em {
  font-style: italic;
  font-weight: 800;
}

.footer-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

.footer-meta a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}

.footer-meta a:hover {
  color: rgba(255,255,255,0.55);
}
