/* Easy4Life Status — Public */
:root {
  --bg: #0b1220;
  --bg-elev: #111827;
  --bg-soft: #152033;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e5eef9;
  --muted: #94a3b8;
  --brand: #38bdf8;
  --brand-2: #0ea5e9;
  --ok: #22c55e;
  --warn: #eab308;
  --orange: #f97316;
  --bad: #ef4444;
  --info: #3b82f6;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #0a101c 40%, #080d16 100%);
  line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #041018;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.brand-text h1 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-text p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hero status banner */
.hero {
  margin: 1.75rem 0 2rem;
}

.status-banner {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.5rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(17, 24, 39, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeUp 0.55s ease both;
}

.status-banner[data-status="degraded"] {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(17, 24, 39, 0.9));
}
.status-banner[data-status="partial_outage"] {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(17, 24, 39, 0.9));
}
.status-banner[data-status="major_outage"] {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(17, 24, 39, 0.9));
}
.status-banner[data-status="maintenance"] {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(17, 24, 39, 0.9));
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.status-banner[data-status="degraded"] .status-dot { background: var(--warn); }
.status-banner[data-status="partial_outage"] .status-dot { background: var(--orange); }
.status-banner[data-status="major_outage"] .status-dot { background: var(--bad); }
.status-banner[data-status="maintenance"] .status-dot { background: var(--info); }

.status-banner h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.status-banner .meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  margin-bottom: 2.25rem;
  animation: fadeUp 0.6s ease both;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.card {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

/* Categories / services */
.category {
  margin-bottom: 1rem;
}

.category-head {
  padding: 1rem 1.15rem 0.35rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.category-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.category-head span {
  color: var(--muted);
  font-size: 0.85rem;
}

.service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--border);
}

.service:first-of-type { border-top: none; }

.service-name {
  font-weight: 600;
  margin: 0;
}

.service-desc {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  height: fit-content;
  align-self: center;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Uptime bars */
.uptime {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
}

.uptime-bars {
  display: flex;
  gap: 2px;
  height: 28px;
  align-items: stretch;
}

.uptime-bars span {
  flex: 1;
  border-radius: 2px;
  min-width: 0;
  cursor: default;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.uptime-bars span:hover {
  transform: scaleY(1.15);
  opacity: 0.9;
}

.uptime-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Incidents / maintenance */
.item {
  padding: 1.15rem 1.2rem;
  border-top: 1px solid var(--border);
}

.item:first-child { border-top: none; }

.item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.45rem;
}

.item-head h4 {
  margin: 0;
  font-size: 1rem;
  flex: 1;
}

.pill {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 0.85rem 1rem;
  border-left: 2px solid var(--border);
  margin-left: 0.35rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline .when {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--mono);
}

.timeline .msg {
  margin: 0.2rem 0 0;
  white-space: pre-wrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.tag {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.empty {
  padding: 1.25rem;
  color: var(--muted);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.site-footer .refresh {
  opacity: 0.8;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .service {
    grid-template-columns: 1fr;
  }
  .badge { justify-self: start; }
  .status-banner h2 { font-size: 1.15rem; }
}
