/* Support page. Builds on the home page tokens in ../styles.css. */

/* Hero: same glow and entrance as the home page, with a heart in place of the screenshot. */
.support-hero { position: relative; isolation: isolate; padding: 112px 0 40px; text-align: center; }
.support-hero::before { content: ""; position: absolute; left: 50%; top: 30%; width: min(1000px, 140vw); aspect-ratio: 1.6; translate: -50% -50%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(244, 114, 182, .16), rgba(194, 55, 143, .2) 45%, transparent); }
.support-emblem { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 36px; border-radius: 26px; background: linear-gradient(160deg, rgba(244, 114, 182, .22), rgba(194, 55, 143, .22)); border: 1px solid rgba(244, 114, 182, .38); box-shadow: 0 24px 70px -18px rgba(244, 114, 182, .55); animation: rise .9s var(--ease) both, beat 2.8s ease-in-out 1.2s infinite; }
.support-emblem .support-heart { width: 36px; height: 36px; }
@keyframes beat { 0%, 100% { scale: 1; } 8% { scale: 1.07; } 16% { scale: 1; } 24% { scale: 1.04; } 32% { scale: 1; } }
.support-hero h1 { margin: 0 auto; max-width: 860px; font-size: clamp(42px, 7vw, 80px); animation: rise .9s var(--ease) .06s both; }
.support-lead { margin: 22px auto 0; max-width: 620px; font-size: clamp(18px, 2.2vw, 22px); color: var(--text); animation: rise .9s var(--ease) .12s both; }
.support-purpose { margin: 12px auto 0; max-width: 560px; color: var(--muted); font-size: 17px; animation: rise .9s var(--ease) .18s both; }

/* Two-column sections: sticky heading on the left, content on the right (same rhythm as the home page). */
.support-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; padding-top: 120px; }
.split-head { position: sticky; top: 112px; }
.split-head h2 { font-size: clamp(30px, 4vw, 46px); }
.split-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* Wallet card */
#wallet-list { display: grid; gap: 24px; }
.donation-card { min-width: 0; padding: 32px; border-radius: var(--radius); background: radial-gradient(90% 120% at 100% 0%, rgba(194, 55, 143, .2), transparent 60%), var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 40px 100px -50px rgba(194, 55, 143, .6); }
.donation-heading { display: flex; align-items: center; gap: 14px; }
.donation-heading > img { width: 44px; height: 44px; }
.donation-heading h3 { font-size: 26px; }
.donation-network { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); color: #d5d2e4; font-size: 13.5px; font-weight: 500; }
.donation-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.donation-main { min-width: 0; }
.donation-main label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.address-field { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 999px; background: #08070d; border: 1px solid var(--line-strong); transition: border-color .2s; }
.address-field:focus-within { border-color: rgba(185, 166, 255, .6); }
.address-field input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--text); font: 14px/1.4 "Cascadia Mono", Consolas, monospace; text-overflow: ellipsis; outline: none; }
.address-field .button { flex: none; min-height: 40px; padding: 0 18px; font-size: 14px; gap: 8px; }
.donation-status { margin-top: 10px; padding-left: 16px; color: #f3d49b; font-size: 13.5px; }
.donation-status:empty { display: none; }
/* A successful copy is confirmed on the button; the status line stays for screen readers only. */
.donation-status[data-i18n="addressCopied"] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.address-field .button:has([data-i18n="addressCopied"]) { background: #1f9d63; box-shadow: 0 10px 30px -12px rgba(31, 157, 99, .8); }
.donation-network-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; color: #f3d49b; font-size: 14.5px; }
.donation-network-note::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #f3c26b; box-shadow: 0 0 12px #f3c26b; }
.donation-explorer { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 14.5px; }
.donation-explorer .icon { width: 16px; height: 16px; }
.donation-qr { margin: 0; text-align: center; }
.donation-qr > img { width: 160px; height: 160px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.donation-qr figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; }

/* Ways to help: the same plain list as the home page tools. */
.help-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.help-list li { border-bottom: 1px solid var(--line); }
.help-list a { display: flex; align-items: center; gap: 20px; padding: 26px 4px; text-decoration: none; transition: background-color .2s, padding .3s var(--ease); border-radius: 14px; }
.help-list a:hover { background: rgba(255, 255, 255, .03); padding-inline: 16px; }
.help-list .icon { flex: none; color: var(--accent-soft); }
.help-copy { flex: 1; min-width: 0; }
.help-copy h3 { font-size: 19px; letter-spacing: -.01em; }
.help-copy p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.help-arrow { width: 18px; height: 18px; color: var(--faint) !important; transition: color .2s, translate .3s var(--ease); }
.help-list a:hover .help-arrow { color: var(--text) !important; translate: 3px -3px; }

.support-back { padding-top: 72px; }

@media (prefers-reduced-motion: reduce) {
  .support-emblem, .support-hero h1, .support-lead, .support-purpose { animation: none !important; }
}
@media (max-width: 960px) {
  .support-split { grid-template-columns: 1fr; gap: 28px; padding-top: 88px; }
  .split-head { position: static; }
}
@media (max-width: 640px) {
  .support-hero { padding-top: 72px; }
  .donation-card { padding: 22px 18px; }
  .donation-heading { flex-wrap: wrap; }
  .donation-network { margin-left: 0; }
  .donation-details { grid-template-columns: 1fr; gap: 28px; }
  .address-field { flex-wrap: wrap; border-radius: 18px; padding: 10px; }
  .address-field input { flex-basis: 100%; padding: 4px 6px 8px; font-size: 13px; }
  .address-field .button { width: 100%; }
  .donation-qr { justify-self: center; }
}
@media (forced-colors: active) {
  .donation-card, .donation-network, .support-emblem, .address-field { border-color: CanvasText; }
  .donation-network-note { color: CanvasText; }
  .donation-qr > img { forced-color-adjust: none; }
}
