/* RedReefDash website - the panel's look on a big screen.

   Same idea as the touch UI: a dark reef photo, glass cards with a highlight on
   their upper half, red gradients for anything that acts. Kept to one file with
   no framework, because this has to run on plain shared hosting. */

:root {
  --red: #ff3d3d;
  --red-deep: #b3101c;
  --txt: #fff3f1;
  --muted: rgba(255, 226, 222, .64);
  --line: rgba(255, 110, 100, .3);
  --ok: #86e3b4;
  --warn: #ffb547;
  --glass-top: rgba(40, 6, 10, .62);
  --glass-bottom: rgba(14, 2, 4, .78);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  color: var(--txt);
  background: #12080a url(img/reef.jpg) center / cover fixed no-repeat;
  line-height: 1.6;
}

/* One dark wash over the photo, so text stays readable wherever it lands. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 2, 4, .82), rgba(8, 2, 4, .92));
  z-index: -1;
}

a { color: var(--red); }
a:hover { color: #ff7a70; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -.5px; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 14px; }

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- header ---------- */

header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(10, 2, 4, .92), rgba(10, 2, 4, .55));
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
header.top img { width: 38px; height: 33px; }
header.top .brand { font-weight: 700; font-size: 18px; letter-spacing: .3px; }
header.top .brand span { color: var(--red); }
header.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header.top nav a:hover, header.top nav a.active { color: var(--txt); }

/* ---------- glass ---------- */

.card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 30px rgba(0, 0, 0, .45);
  padding: 22px 24px;
}
/* The highlight that makes the card look like glass. */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.card > * { position: relative; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

section { padding: 56px 0; }
section > .wrap > p.lead { color: var(--muted); font-size: 18px; max-width: 62ch; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 52ch; }
.hero .shot {
  border-radius: 18px;
  border: 1px solid rgba(255, 140, 130, .35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  width: 100%;
  display: block;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.badge {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 61, 61, .12);
  color: #ffb9b2;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  color: var(--txt);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: rgba(255, 140, 130, .7); color: var(--txt); }
.btn.primary {
  border-color: rgba(255, 190, 180, .7);
  background: linear-gradient(180deg, #ff6a60 0%, #e41e28 50%, #a50d16 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 20px rgba(255, 40, 40, .35);
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.07); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Donation buttons keep their services' colours, so they are recognised at a
   glance, but the same pill shape as everything else. */
.btn.donate { padding: 14px 26px; font-size: 16px; }
.btn.paypal {
  background: linear-gradient(180deg, #0070e0 0%, #003087 100%);
  border-color: rgba(160, 200, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 20px rgba(0, 80, 200, .35);
  color: #fff;
}
.btn.bmc {
  background: linear-gradient(180deg, #ffdd2e 0%, #f5b800 100%);
  border-color: rgba(255, 240, 180, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 20px rgba(245, 184, 0, .3);
  color: #3b2a00;
}
.btn.paypal:hover, .btn.bmc:hover { filter: brightness(1.08); }

/* The support band sits directly under the hero, where it is seen before the
   feature list rather than after it. */
.support-band { padding: 26px 0 10px; }
.support-band .card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  border-color: rgba(255, 140, 130, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 34px rgba(0, 0, 0, .5),
              0 0 0 1px rgba(255, 61, 61, .08);
}
.support-band .words { flex: 1 1 320px; }
.support-band h2 { margin-bottom: 6px; font-size: clamp(20px, 2.4vw, 26px); }
.support-band p { margin: 0; color: var(--muted); max-width: 54ch; }
.support-band .actions { margin: 0; flex: 0 0 auto; }

/* ---------- steps, lists, tables ---------- */

ol.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  border-left: 1px solid var(--line);
  margin-left: 16px;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -17px;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff6a60, #a50d16);
  box-shadow: 0 0 0 4px rgba(10, 2, 4, .9);
}
ol.steps h3 { margin-bottom: 4px; }
ol.steps p { color: var(--muted); }

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); }
ul.ticks li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 61, 61, .8);
}

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(255, 110, 100, .16); }
th { color: var(--muted); font-weight: 600; }

code, kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .92em;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 110, 100, .2);
  border-radius: 6px;
  padding: 2px 6px;
}
pre {
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 110, 100, .2);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
}
pre code { background: none; border: 0; padding: 0; }

.note {
  border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 61, 61, .08);
  padding: 12px 16px;
  color: var(--muted);
}
.note strong { color: var(--txt); }

.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }

/* ---------- flash page ---------- */

.state {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.bad { background: var(--red); box-shadow: 0 0 10px var(--red); }
.dot.busy { background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.log {
  margin-top: 16px;
  max-height: 260px;
  overflow: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 110, 100, .2);
  border-radius: 12px;
  padding: 12px 14px;
  white-space: pre-wrap;
}

.board-choice { display: grid; gap: 12px; margin: 18px 0; }
.board {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .3);
  cursor: pointer;
}
.board input { margin-top: 5px; accent-color: var(--red); }
.board.sel { border-color: rgba(255, 140, 130, .8); background: rgba(255, 61, 61, .1); }
.board .name { font-weight: 600; }
.board .hint { color: var(--muted); font-size: 14px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
footer a { color: var(--muted); }
footer .spacer { margin-left: auto; }

@media (max-width: 640px) {
  section { padding: 40px 0; }
  .card { padding: 18px; }
  header.top nav { gap: 12px; }
}
