/* =========================================================
   WORLD ACTION RIVALRY
   PUBLIC DONATION LEDGER
   VERSION 1.0
========================================================= */

:root {
  --war-ledger-bg: #050505;
  --war-ledger-panel: #0b0b0d;
  --war-ledger-panel-soft: #0f0f12;
  --war-ledger-border: rgba(255, 255, 255, 0.09);
  --war-ledger-border-strong: rgba(255, 255, 255, 0.15);
  --war-ledger-text: #f4f4f4;
  --war-ledger-muted: #7b7b82;
  --war-ledger-red: #e50914;
  --war-ledger-max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.war-donation-ledger-page {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(229, 9, 20, 0.09), transparent 28%),
    #050505;
  color: var(--war-ledger-text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.war-ledger-shell {
  width: min(calc(100% - 40px), var(--war-ledger-max));
  margin: 0 auto;
}

.war-kicker {
  display: inline-block;
  color: var(--war-ledger-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.war-ledger-wallet-link {
  text-decoration: none;
}

/* =========================================================
   HERO
========================================================= */

.war-ledger-hero {
  padding: 170px 0 90px;
  border-bottom: 1px solid var(--war-ledger-border);
}

.war-ledger-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 70px;
  align-items: end;
}

.war-ledger-hero h1 {
  max-width: 850px;
  margin: 15px 0 18px;
  color: #ffffff;
  font-size: clamp(52px, 7vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.war-ledger-hero p {
  max-width: 760px;
  margin: 0;
  color: #a1a1a7;
  font-size: 16px;
  line-height: 1.8;
}

.war-ledger-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.war-ledger-summary {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--war-ledger-border-strong);
  border-radius: 16px;
}

.war-ledger-summary > span {
  display: block;
  color: var(--war-ledger-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.war-ledger-summary > strong {
  display: block;
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: clamp(46px, 5vw, 74px);
  line-height: 1;
}

.war-ledger-summary > small {
  display: block;
  color: #76767d;
  font-size: 11px;
  line-height: 1.65;
}

/* =========================================================
   BUTTONS
========================================================= */

.war-ledger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.war-ledger-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.war-ledger-button--primary {
  background: var(--war-ledger-red);
  color: #ffffff;
  border-color: var(--war-ledger-red);
}

.war-ledger-button--ghost {
  background: rgba(255, 255, 255, 0.025);
  color: #f1f1f1;
  border-color: var(--war-ledger-border-strong);
}

.war-ledger-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* =========================================================
   LEDGER SECTION
========================================================= */

.war-ledger-section {
  padding: 86px 0 110px;
}

.war-ledger-section__heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 28px;
}

.war-ledger-section__heading h2 {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.war-ledger-section__heading > p {
  max-width: 380px;
  margin: 0;
  color: var(--war-ledger-muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

/* =========================================================
   TABLE
========================================================= */

.war-ledger-table-wrap {
  overflow-x: auto;
  background: var(--war-ledger-panel);
  border: 1px solid var(--war-ledger-border);
  border-radius: 16px;
}

.war-ledger-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.war-ledger-table th,
.war-ledger-table td {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  text-align: left;
  vertical-align: top;
}

.war-ledger-table th {
  color: #616168;
  background: rgba(255, 255, 255, 0.02);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.war-ledger-table tbody tr:last-child td {
  border-bottom: 0;
}

.war-ledger-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.018);
}

.war-ledger-from {
  min-width: 180px;
}

.war-ledger-from strong,
.war-ledger-value {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.war-ledger-from small {
  display: block;
  margin-top: 5px;
  color: #696970;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.war-ledger-date,
.war-ledger-time {
  white-space: nowrap;
  color: #b5b5bb;
  font-size: 12px;
}

.war-ledger-value {
  white-space: nowrap;
}

.war-ledger-message {
  min-width: 280px;
  max-width: 420px;
  color: #b7b7bd;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.war-ledger-message.is-empty {
  color: #55555c;
  font-style: italic;
}

.war-ledger-tx-link {
  color: var(--war-ledger-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.war-ledger-tx-link:hover {
  text-decoration: underline;
}

.war-ledger-state-cell {
  padding: 42px 18px !important;
  color: #74747b;
  text-align: center !important;
  font-size: 12px;
}

/* =========================================================
   EMPTY / ERROR
========================================================= */

.war-ledger-empty {
  margin-top: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--war-ledger-border);
  border-radius: 14px;
}

.war-ledger-empty span {
  display: block;
  color: var(--war-ledger-red);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.war-ledger-empty strong {
  display: block;
  margin-top: 9px;
  color: #ffffff;
  font-size: 18px;
}

.war-ledger-empty p {
  margin: 8px 0 0;
  color: #77777e;
  font-size: 12px;
  line-height: 1.65;
}

/* =========================================================
   PAGINATION
========================================================= */

.war-ledger-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.war-ledger-pagination > button:first-child {
  justify-self: start;
}

.war-ledger-pagination > button:last-child {
  justify-self: end;
}

.war-ledger-pagination__status {
  min-width: 170px;
  text-align: center;
}

.war-ledger-pagination__status span,
.war-ledger-pagination__status small {
  display: block;
}

.war-ledger-pagination__status span {
  color: #5d5d64;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.war-ledger-pagination__status strong {
  display: block;
  margin: 4px 0;
  color: #ffffff;
  font-size: 14px;
}

.war-ledger-pagination__status small {
  color: #65656c;
  font-size: 9px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .war-ledger-hero__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .war-ledger-section__heading {
    display: block;
  }

  .war-ledger-section__heading > p {
    max-width: none;
    margin-top: 16px;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .war-ledger-shell {
    width: min(calc(100% - 28px), var(--war-ledger-max));
  }

  .war-ledger-hero {
    padding: 135px 0 65px;
  }

  .war-ledger-section {
    padding: 60px 0 80px;
  }

  .war-ledger-hero__actions {
    display: grid;
  }

  .war-ledger-button {
    width: 100%;
  }

  .war-ledger-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .war-ledger-pagination__status {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .war-ledger-pagination > button:first-child,
  .war-ledger-pagination > button:last-child {
    justify-self: stretch;
  }
}
