/* Allowed Online status page — brand styling (own class names, independent of Gatus's DOM).
 * Self-hosted Inter Variable (no Google Fonts / no third-party CDN), matching allowed.online. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: #ffffff;
  --ink: #111111;
  --muted: #5f6980;
  --border: #eaecf0;
  --teal: #47bbaf;
  --teal-dark: #3da99a;
  --teal-soft: rgba(48, 131, 143, 0.08);
  --accent: #30838f;
  --pink: #e55598;
  --pink-dark: #d4478d;
  --track: #f0f3f7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Hero band + fade, echoing allowed.online */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 380px;
  background-image: url('/img/hero-bg.avif');
  background-size: cover;
  background-position: center top;
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  top: 240px; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--white));
  z-index: 0;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
}

/* Header glass card */
.header {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(234, 236, 240, 0.8);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  padding: 2rem 2.5rem;
  margin: 2rem auto;
  text-align: center;
}
.header-logo { height: 120px; width: auto; }
.header h1 {
  margin: 0.75rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.intro {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Overall banner */
.banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.banner-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.banner-text { font-weight: 600; letter-spacing: -0.01em; }
.banner-note { font-size: 0.8rem; color: var(--muted); }
.banner--ok .banner-dot { background: var(--teal); }
.banner--ok .banner-text { color: var(--teal-dark); }
.banner--down .banner-dot { background: var(--pink); }
.banner--down .banner-text { color: var(--pink-dark); }
.banner--neutral .banner-dot { background: var(--muted); }
.banner--neutral .banner-text { color: var(--muted); }

/* Groups */
.group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}
.group-head { display: flex; align-items: center; gap: 0.6rem; }
.group-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.group-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8rem; color: var(--accent);
}
.group-badge-label { font-weight: 500; }

.endpoints { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.9rem; }
.endpoint-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.endpoint-name { font-weight: 500; color: var(--ink); }
.endpoint-right { display: flex; align-items: center; gap: 0.6rem; }
.endpoint-latency { font-size: 0.72rem; color: var(--muted); }

.pill {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 20px;
}
.pill--ok { color: var(--accent); background: var(--teal-soft); }
.pill--down { color: #fff; background: var(--pink); }
.pill--neutral { color: var(--muted); background: var(--track); }

/* Status-over-time bars (fixed colour classes — never set from JS/API) */
.bars {
  margin-top: 0.6rem;
  display: flex;
  gap: 2px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--track);
}
.bar { flex: 1 1 0; min-width: 2px; border-radius: 4px; }
.bar--up { background: var(--teal); }
.bar--down { background: var(--pink); }
.bar--empty { background: var(--border); }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1rem 2.5rem;
}
.footer-logo { height: 60px; width: auto; margin: 0 auto 1rem; display: block; }
.footer-copy { font-size: 13px; line-height: 1.6; color: var(--muted); }
.footer-copy a { color: var(--accent); text-decoration: none; }
.footer-copy a:hover { color: var(--teal); }
.footer-flag { width: 24px; height: 24px; margin-top: 0.75rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--teal); }

.status-updated {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

@media (max-width: 640px) {
  .header { padding: 1.5rem 1.25rem; }
  .header-logo { height: 96px; }
  .container { padding-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
