/* World of Midgard — Site + Donate Theme */

/* Core palette */
:root{
  --bg: #e9cacb;              /* soft rose content plane */
  --frame: #2f0f10;           /* deep maroon outer frame */
  --topbar: #3a2d34;          /* dark plum header */
  --text: #1f2937;            /* slate */
  --muted: #6b7280;           /* muted slate */
  --card: #ffffff;            /* crisp white cards */
  --border: rgba(0,0,0,0.08); /* gentle borders */
  --brand: #10b981;           /* emerald/teal */
  --brand-2: #0ea5a8;         /* teal secondary */
  --btn-shadow: #0b6b62;      /* button shadow */
}

/* Page chrome */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 80% -120px, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(0deg, var(--frame), var(--frame)) fixed;
}

/* Inner rose panel (disabled for donate by override below) */
body::before{
  content:"";
  position: fixed;
  inset: 64px 64px 0 64px;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
  z-index: -1;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  height: 64px;
  background: var(--topbar);
  color: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
  z-index: 50;
}
.site-header .container{
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-link, .nav a{
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
}
.nav a{ margin-left: 16px; opacity: .95; }

/* Layout containers */
.container{
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 20px;
}
.container.narrow{ max-width: 840px; }

/* Headings and text */
h1, h2, h3 { 
    margin: 15 0 10px; 
    letter-spacing: .2px; 
    color: #FFFFFF; /* Makes headings pure white */
}

p { 
    color: #FFFFFF; /* Changed from var(--muted) to white */
    margin: 0 0 12px; 
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
  padding: 22px;
}

/* Form rows with label/field alignment */
.form-row{
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 14px;
}
.form-row label{
  font-size: 14px;
  font-weight: 800;
  color: #3f3f46;
  margin: 0;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"]{
  height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder{ color: #9ca3af; }
input:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .05s ease, filter .2s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  color: #083a36;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 0 var(--btn-shadow);
}
.btn-primary:hover{ filter: brightness(1.05); }

/* Alerts */
.alert{
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid;
  margin: 10px 0 14px;
  font-weight: 600;
}
.alert.success{
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.35);
  color: #065f46;
}
.alert.error{
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.35);
  color: #7f1d1d;
}

/* Donate helpers */
.amount-pills{ display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid #e5e7eb; border-radius:999px;
  padding:8px 14px; cursor:pointer; user-select:none; font-weight:800;
  transition: border-color .15s, box-shadow .15s, transform .05s;
}
.pill:hover{ border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.pill:active{ transform: translateY(1px); }

.pay-methods{ display:flex; gap:14px; flex-wrap:wrap; }
.pay-option{
  display:flex; align-items:center; gap:10px;
  background:#fff; border:1px solid #e5e7eb;
  border-radius:12px; padding:10px 14px; cursor:pointer;
}
.pay-option input{ accent-color: var(--brand); }
.pay-logo{ height:22px; }

.row-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.note{ font-size: 13px; color: var(--muted); }

/* Hide label on the action row so button aligns under fields */
.card .form-row:last-child { grid-template-columns: 200px auto; }
.card .form-row:last-child > label { display: none; }

/* Lighten heading region (donate) */
.container.narrow{
  position: relative;
}
.container.narrow::before{
  content: "";
  position: absolute;
  top: -24px;
  left: -20px;
  right: -20px;
  height: 72px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
}
.container.narrow > h2,
.container.narrow > p,
.container.narrow .alert,
.card.donate-panel{
  position: relative;
  z-index: 1;
}

/* Donate: inner pink panel inside the card */
.card.donate-panel {
  position: relative;
  overflow: hidden;                /* maintain rounded corners */
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}
.card.donate-panel::before {
  content: "";
  position: absolute;
  inset: 10px;                     /* thickness of white rim */
  border-radius: 12px;
  background: #f0d2d4;             /* inner pink */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  z-index: 0;
}
.card.donate-panel > * {
  position: relative;
  z-index: 1;
}

/* Donate page: remove the large bottom pink band for a clean edge */
body::before{
  display: none;
}

/* Small screens */
@media (max-width: 700px){
  .form-row{ grid-template-columns: 1fr; }
  .card .form-row:last-child{ grid-template-columns: 1fr; }
  .container.narrow{ max-width: 96%; }
}
