/* moneyrain.top — minimal style */
:root {
  --bg: #0f1a12;
  --bg-2: #132218;
  --surface: rgba(20, 34, 24, 0.82);
  --surface-solid: #14221a;
  --text: #e9f1ea;
  --text-dim: #a6b8ab;
  --accent: #4ade80;
  --accent-dark: #166534;
  --gold: #e6c76f;
  --border: rgba(255,255,255,0.08);
  --radius: 10px;
  --shadow: 0 6px 22px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, #1a3122 0%, #0a130d 60%, #060a07 100%) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* keep content above the rain */
header, main, footer, .wrap { position: relative; z-index: 1; }
#moneyrain-bg { z-index: 0 !important; }

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

/* ========= Header ========= */
.site-head {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(8,14,10,0.92), rgba(8,14,10,0.72));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: 0.2px;
}
.brand .logo {
  width: 26px; height: 26px; display: inline-block;
}
.brand .dot { color: var(--accent); }
.brand .tld { color: var(--gold); }
.nav-links { display: flex; gap: 14px; font-size: 14px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }

/* ========= Layout ========= */
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 16px 24px;
}

/* ========= Home listing ========= */
.hero {
  text-align: center;
  padding: 8px 6px 14px;
}
.hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0.2px;
}
.hero p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.post-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.post-card {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.post-card:hover {
  transform: translateY(-1px);
  border-color: rgba(74,222,128,0.35);
  text-decoration: none;
}
.post-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--text);
}
.post-card .meta {
  font-size: 12px;
  color: var(--text-dim);
}
.post-card .excerpt {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========= Post page ========= */
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 22px;
  box-shadow: var(--shadow);
}
.post h1 {
  margin: 0 0 6px;
  font-size: clamp(20px, 3.6vw, 26px);
  line-height: 1.25;
}
.post .meta {
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 10px;
}
.post .body { font-size: 15.5px; line-height: 1.65; }
.post .body p { margin: 0 0 10px; }
.post .body p:last-child { margin-bottom: 0; }
.post .body a { color: var(--accent); word-break: break-word; }

.back-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

/* ========= Per-post accents (override --accent within one article) ========= */
.post.accent-emerald { --accent: #4ade80; --accent-dark:#166534; --accent-soft:rgba(74,222,128,.14); }
.post.accent-gold    { --accent: #fbbf24; --accent-dark:#92400e; --accent-soft:rgba(251,191,36,.14); }
.post.accent-sky     { --accent: #38bdf8; --accent-dark:#0369a1; --accent-soft:rgba(56,189,248,.14); }
.post.accent-rose    { --accent: #fb7185; --accent-dark:#9f1239; --accent-soft:rgba(251,113,133,.14); }
.post.accent-violet  { --accent: #a78bfa; --accent-dark:#5b21b6; --accent-soft:rgba(167,139,250,.14); }
.post.accent-lime    { --accent: #a3e635; --accent-dark:#3f6212; --accent-soft:rgba(163,230,53,.14); }

/* Headings inside post body */
.post .post-h2 {
  font-size: 17px;
  margin: 18px 0 6px;
  color: var(--accent);
  letter-spacing: 0.2px;
}

/* Pull quote */
.pullquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  font-style: italic;
  color: var(--text);
}

/* Callouts */
.callout {
  margin: 12px 0;
  padding: 10px 12px 10px 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 14.5px;
  position: relative;
}
.callout::before {
  content: "";
  position: absolute; left: 12px; top: 14px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.callout-tip       { border-color: rgba(74,222,128,0.35); }
.callout-warning   { border-color: rgba(251,191,36,0.35); }
.callout-warning::before { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,0.18); }
.callout-highlight { border-color: var(--accent); }

/* Lists in post body */
.post-list { margin: 10px 0; padding-left: 20px; }
.post-list li { margin: 4px 0; }
.post-list li::marker { color: var(--accent); }

/* ========= CTA variants ========= */
.cta-wrap { margin: 14px 0 4px; }
.cta {
  display: inline-block;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  border: 1px solid rgba(0,0,0,0.25);
  color: #06210f;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}
.cta:hover { transform: translateY(-1px); text-decoration: none; filter: brightness(1.05); }
.cta .arr { display:inline-block; transition: transform .15s ease; }
.cta:hover .arr { transform: translateX(3px); }

.cta-pill  { border-radius: 999px; box-shadow: 0 4px 12px var(--accent-soft); }
.cta-block { display: block; width: 100%; text-align: center; border-radius: 10px; padding: 13px 18px; }
.cta-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: none;
}
.cta-ghost:hover { background: var(--accent-soft); color: var(--accent); }

/* For dark accents (gold, sky) white text reads better */
.post.accent-sky .cta,
.post.accent-violet .cta { color: #0b1220; }

/* ========= Scorecard ========= */
.scorecard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 14px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.score-item { display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.score-label { font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim); }
.score-pips { display:flex; gap:4px; }
.score-pips .pip {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-block;
}
.score-pips .pip.on { background: var(--accent); box-shadow: 0 0 6px var(--accent-soft); }
.score-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
}
/* Effort / country difficulty color cues */
.score-tag.tag-none, .score-tag.tag-almostnone, .score-tag.tag-low, .score-tag.tag-passive {
  background: rgba(74,222,128,0.14); color:#86efac; border-color: rgba(74,222,128,0.25);
}
.score-tag.tag-medium {
  background: rgba(251,191,36,0.14); color:#fcd34d; border-color: rgba(251,191,36,0.25);
}
.score-tag.tag-high {
  background: rgba(251,113,133,0.14); color:#fda4af; border-color: rgba(251,113,133,0.25);
}

/* ========= Layout variants (subtle — style stays unified) ========= */
.post.layout-compact { padding: 14px 16px 18px; }
.post.layout-compact h1 { font-size: clamp(19px, 3.4vw, 22px); }
.post.layout-score-first .scorecard { margin-top: 4px; }
.post.layout-quote-first .body > p:first-child,
.post.layout-quote-first .body > blockquote:first-child {
  font-size: 16.5px;
}

/* ========= Admin / login ========= */
.card {
  max-width: 420px;
  margin: 28px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h1 { margin-top: 0; font-size: 20px; }
input[type=password], input[type=text], textarea, input[type=file] {
  width: 100%;
  padding: 10px 12px;
  background: #0b140f;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
}
button, .btn {
  display: inline-block;
  padding: 10px 16px;
  background: var(--accent);
  color: #062310;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
button:hover, .btn:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent; color: var(--text-dim); border: 1px solid var(--border);
}
label { display: block; font-size: 13px; color: var(--text-dim); margin: 10px 0 4px; }

.err { color: #fca5a5; font-size: 13px; margin-top: 8px; }
.ok { color: #86efac; font-size: 13px; margin-top: 8px; }

/* stats table */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 16px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; text-align: center;
}
.stat .v { font-size: 22px; font-weight: 800; color: var(--accent); }
.stat .l { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

table.data {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
table.data th, table.data td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); }
table.data th { background: rgba(255,255,255,0.03); color: var(--text-dim); font-weight: 600; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ========= Footer ========= */
.site-foot {
  margin-top: 20px;
  padding: 12px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  border-top: 1px solid var(--border);
  background: rgba(8,14,10,0.55);
}

/* ========= Mobile tweaks ========= */
@media (max-width: 520px) {
  .wrap { padding: 10px 12px 18px; }
  .site-head { padding: 8px 12px; }
  .brand { font-size: 16px; }
  .post { padding: 14px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat .v { font-size: 18px; }
}
