/* ═══════════════════════════════════════════════════════════════════════════
   Eurion Status Page — Styles
   Scandinavian minimalism • EU-sovereignty branding
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --eu-blue:    #003399;
  --eu-gold:    #FFCC00;
  --bg:         #f8f9fb;
  --surface:    #ffffff;
  --border:     #e2e6ec;
  --text:       #1a1d23;
  --text-muted: #6b7280;
  --green:      #10b981;
  --green-bg:   #ecfdf5;
  --red:        #ef4444;
  --red-bg:     #fef2f2;
  --amber:      #f59e0b;
  --amber-bg:   #fffbeb;
  --gray:       #9ca3af;
  --gray-bg:    #f3f4f6;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg:  0 4px 12px rgba(0,0,0,.08);
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--eu-blue);
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--eu-blue); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 56px 24px 40px;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 16px 0 8px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.hero-updated {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ── Overall Badge ────────────────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--gray-bg);
  color: var(--gray);
  transition: all .3s;
}

.hero-badge.operational {
  background: var(--green-bg);
  color: var(--green);
}
.hero-badge.degraded {
  background: var(--red-bg);
  color: var(--red);
}
.hero-badge.partial {
  background: var(--amber-bg);
  color: var(--amber);
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

.hero-badge.operational .badge-dot::after,
.hero-badge.degraded .badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* ── Summary Cards ────────────────────────────────────────────────────────── */
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.summary-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.summary-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ── Service Groups ───────────────────────────────────────────────────────── */
.groups {
  flex: 1;
  padding-bottom: 64px;
}

.group {
  margin-bottom: 40px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.group-icon {
  width: 22px;
  height: 22px;
  color: var(--eu-blue);
  flex-shrink: 0;
}

/* ── Service Row ──────────────────────────────────────────────────────────── */
.service-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  transition: background .15s;
}
.service-row:hover {
  background: var(--bg);
}
.service-row + .service-row {
  border-top: 1px solid var(--border);
}

.service-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Status Chip ──────────────────────────────────────────────────────────── */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-chip.operational {
  background: var(--green-bg);
  color: var(--green);
}
.status-chip.down {
  background: var(--red-bg);
  color: var(--red);
}
.status-chip.unknown {
  background: var(--gray-bg);
  color: var(--gray);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Loading skeleton ─────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  height: 48px;
}
.skeleton + .skeleton { margin-top: 1px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  margin-top: 6px;
}
.footer-links a {
  color: var(--eu-blue);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-links .sep {
  margin: 0 6px;
  color: var(--border);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .summary { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.75rem; }
  .nav-links { gap: 16px; }
  .service-row { padding: 12px 16px; }
}

@media (max-width: 420px) {
  .nav-links { display: none; }
}
