/* faucets.pk910.de landing page */

:root {
  color-scheme: light;
  /* same tones as the faucet pages: #f0f0f0 wrapper, white container, bootstrap inks, green primary */
  --bg: #f0f0f0;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.18);
  --ink: #212529;
  --ink-2: #495057;
  --ink-3: #6c757d;
  --brand: #198754;
  --good: #198754;
  --warn: #e0a800;
  --serious: #ec835a;
  --crit: #dc3545;
  --accent: #2a78d6;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.18);
  --radius: 20px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.muted { color: var(--ink-3); }

/* ---------- background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(42, 120, 214, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(25, 135, 84, 0.08), transparent 60%),
    var(--bg);
}
.bg i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: drift 28s ease-in-out infinite alternate;
}
.bg i:nth-child(1) { width: 520px; height: 520px; left: 55%; top: -200px; background: #2a78d6; }
.bg i:nth-child(2) { width: 460px; height: 460px; left: -120px; top: 40%; background: #198754; animation-delay: -9s; }
.bg i:nth-child(3) { width: 380px; height: 380px; left: 70%; top: 75%; background: #6250d6; animation-delay: -18s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px; /* the hub bar container above reserves its own 48px */
  padding-bottom: 40px;
}
.hero-text { max-width: 640px; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero h1 {
  margin-top: 8px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}
.lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 560px;
}
.hero-art { flex: 0 0 auto; }
.hero-art img {
  width: min(480px, 42vw);
  height: auto;
  image-rendering: pixelated;
}

.totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.total b { font-size: 22px; font-weight: 600; line-height: 1.2; }
.total b small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.totals-break { flex-basis: 100%; height: 0; } /* forces the payout tiles onto their own row */
.total span { font-size: 13px; color: var(--ink-3); }
.total.live b::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.5);
  animation: pulse 2s infinite;
  vertical-align: 3px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(25, 135, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* ---------- sections ---------- */

.section { padding-top: 40px; }
.section-head { display: flex; flex-direction: column; gap: 4px; }
.section-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-3); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* ---------- cards ---------- */

.card {
  --accent: #3987e5;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -140px;
  width: 420px;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent);
  opacity: 0.6;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 48px -24px color-mix(in srgb, var(--accent) 45%, rgba(0, 0, 0, 0.2));
}
.card.offline { opacity: 0.7; }
.card > * { position: relative; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-head h3 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.card-head .sub { font-size: 14px; color: var(--ink-3); }
.card-desc { color: var(--ink-2); font-size: 15px; }
.card-tagline { color: var(--ink-2); font-size: 15px; font-weight: 500; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink-2);
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-3);
}
.pill.live { color: #146c43; background: #e8f5ee; border-color: rgba(25, 135, 84, 0.3); }
.pill.live::before { background: var(--good); animation: pulse 2s infinite; }
.pill.active::before { background: var(--accent); }
.pill.offline { color: var(--ink-3); }
.pill.offline::before { background: var(--crit); }

/* chart */

.chart { display: flex; flex-direction: column; gap: 8px; }
.chart-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
}
.chart-label b { color: var(--ink-2); font-weight: 600; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 56px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--border);
}
.bar {
  flex: 1 1 0;
  min-height: 2px;
  height: var(--h, 2%);
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  opacity: 0.45;
  transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
  cursor: default;
}
.bar:hover, .bar.now { opacity: 1; }
.bar.empty { background: #adb5bd; opacity: 0.35; }

/* activity meter */

.meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.meter-track { display: flex; gap: 3px; }
.meter-track i {
  display: block;
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.meter-track i.on { background: var(--accent); }
.meter b { font-weight: 600; color: var(--ink); }

/* stats */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  min-width: 0;
}
.stat span { font-size: 12px; color: var(--ink-3); }
.stat b { font-size: 20px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { font-size: 12px; color: var(--ink-3); }

.kv {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.kv span { color: var(--ink-3); }
.kv b { font-weight: 600; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  background: #f1f3f5;
  border: 1px solid var(--border);
}

.notice {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-2);
  border-left: 3px solid var(--ink-3);
}
.notice.warn { border-left-color: var(--warn); }
.notice.error { border-left-color: var(--crit); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}
.card-foot .meta { font-size: 12px; color: var(--ink-3); text-align: right; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: filter 0.2s, transform 0.2s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

/* ---------- events ---------- */

.event {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.event + .event { margin-top: 20px; }
.event-head {
  display: flex;
  align-items: center;
  gap: 24px;
}
.event-art {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 220px;
  height: 100px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border);
}
.event-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.event-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-title h3 { font-size: 24px; font-weight: 650; letter-spacing: -0.01em; }
.event-title .where { color: var(--ink-2); font-size: 15px; }
.event-title .blurb { color: var(--ink-3); font-size: 14px; }
.event-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #f1f3f5;
  color: var(--ink-2);
}
.event-badge.live { background: #e8f5ee; color: #146c43; }
.event-badge.soon { background: #fff3cd; color: #856404; }
.event .grid { margin-top: 20px; }
.event .card { background: var(--surface-2); box-shadow: none; }

/* ---------- archive ---------- */

.archive {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.archive a {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 0.2s;
}
.archive a:hover { border-color: var(--border-strong); }
.archive b { font-size: 14px; font-weight: 600; }
.archive span { font-size: 12px; color: var(--ink-3); }

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 56px;
  padding-bottom: 40px;
  color: var(--ink-3);
  font-size: 14px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-note { font-variant-numeric: tabular-nums; }

/* ---------- tooltip ---------- */

.tip {
  position: fixed;
  z-index: 20;
  padding: 6px 10px;
  border-radius: 8px;
  background: #212529;
  border: 1px solid #212529;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}

/* ---------- states ---------- */

.loading .skel {
  height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(100deg, #f8f9fa 30%, #ffffff 50%, #f8f9fa 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.error-box {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220, 53, 69, 0.4);
  background: var(--surface);
  color: var(--ink-2);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { flex-direction: column-reverse; align-items: flex-start; padding-top: 32px; }
  .hero-art img { width: min(360px, 80vw); }
  .event-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bg i, .pill.live::before, .total.live b::before { animation: none; }
  .card, .bar, .btn { transition: none; }
}

/* ---------- PoWFaucet hub bar (sideloaded, expects bootstrap's .fixed-top) ---------- */

.faucethub-header-container .navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}
/* the bar lays its content out in a bootstrap .container; replicate bootstrap's centered widths */
.faucethub-header-container .container {
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}
@media (min-width: 576px)  { .faucethub-header-container .container { max-width: 540px; } }
@media (min-width: 768px)  { .faucethub-header-container .container { max-width: 720px; } }
@media (min-width: 992px)  { .faucethub-header-container .container { max-width: 960px; } }
@media (min-width: 1200px) { .faucethub-header-container .container { max-width: 1140px; } }
@media (min-width: 1400px) { .faucethub-header-container .container { max-width: 1320px; } }
/* bootstrap bits the hub bundle's scoped css leaves out but its markup uses (copied from bootstrap 5) */
.faucethub-header-container .me-auto { margin-right: auto !important; }
.faucethub-header-container .flex-row { flex-direction: row !important; }
.faucethub-header-container .ms-2 { margin-left: 0.5rem !important; }
.faucethub-header-container .navbar-light .navbar-brand,
.faucethub-header-container .navbar-light .navbar-brand:hover { color: rgba(0, 0, 0, 0.9); text-decoration: none; }
.faucethub-header-container .dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}
.faucethub-header-container .dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}
.faucethub-header-container .dropdown-menu[data-bs-popper] { top: 100%; left: 0; margin-top: 0.125rem; }
.faucethub-header-container .dropdown-menu.show { display: block; }
.faucethub-header-container .dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}
.faucethub-header-container .dropdown-item:hover,
.faucethub-header-container .dropdown-item:focus { color: #1e2125; background-color: #e9ecef; }
.faucethub-header-container .dropdown-divider { height: 0; margin: 0.5rem 0; overflow: hidden; border-top: 1px solid rgba(0, 0, 0, 0.15); }
.faucethub-header-container .dropdown,
.faucethub-header-container .dropup,
.faucethub-header-container .dropend,
.faucethub-header-container .dropstart { position: relative; }
