/* index.css - Solana Acolytes Donation Page (mobile-first, pink zigzag background with navy accents) */
*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --navy: #0b1b37;
  --navy-soft: #213056;
  --pink: #ff4d9e;
  --pink-soft: rgba(255, 77, 158, 0.25);
  --glass: rgba(255, 255, 255, 0.88);
  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  --focus: 0 0 0 3px rgba(0, 255, 170, 0.6);
  --text: #0a0a0a;
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: var(--text);
  /* Pink zigzag background + navy accents for hacker-night vibe */
  background: #fff;
  background-image:
    linear-gradient(135deg, rgba(255, 77, 158, 0.15) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 77, 158, 0.15) 25%, transparent 25%);
  background-size: 20px 20px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

a { color: #0a5a8a; text-decoration: none; }
a:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Layout scaffolding */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0);
}
.brand {
  font-weight: 900;
  font-size: 1.05rem;
  color: #0b4b7a;
  text-shadow: 0 0 14px rgba(0, 150, 180, 0.6);
  letter-spacing: .4px;
}

/* Hero section (QR centerpiece) */
.hero {
  display: grid;
  place-items: center;
  padding: 1.75rem 1rem 2.5rem;
}
.hero-layout {
  width: min(1100px, 94%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92); /* frosted glass */
  border: 1px solid rgba(0,0,0,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.hero-copy { padding: 0.75rem; }
.hero-copy h1 {
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 0.5rem 0;
  color: var(--navy);
}
.subhead {
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  color: #2b3a63;
  margin: 0 0 0.75rem 0;
}
.telegram-link a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 128, 128, 0.65);
  background: rgba(0, 128, 128, 0.15);
  color: #0a2b2b;
  font-weight: 700;
}
.telegram-link a:hover { background: rgba(0, 128, 128, 0.25); transform: translateY(-1px); }
.hero-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
}
.hero-qr img {
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
  filter: saturate(1.05);
}

/* Two-column layout on larger screens for depth */
@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 1.5rem;
  }
  .hero-copy { padding: 1.75rem 1.75rem 1.75rem 2rem; }
  .hero-qr { padding: 1.75rem; }
  .hero-copy h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
}

/* CTA-like link styling (if used) */
.cta {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(10, 60, 120, 0.15);
  color: #0a1b2a;
}
.cta:hover { background: rgba(10, 60, 120, 0.25); transform: translateY(-1px); }

/* Footer styling */
.site-footer { padding: 1rem; text-align: center; color: #0a0a0a; }
.footer-ad { margin-bottom: 0.5rem; }
.footer-ad a {
  color: #0a4060;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(10, 106, 140, 0.6);
}
.gratitude { margin: 0.25rem 0 0; color: #2a2a2a; }

/* Accessibility helpers for motion */
@media (prefers-reduced-motion: reduce) {
  .telegram-link a, .hero-qr img { transition: none; }
}

/* Focus styles for keyboard navigation on links outside hero */
:focus { outline: none; }
@media (min-width: 0) {
  a:focus-visible { outline: 3px solid #7fff00; outline-offset: 2px; border-radius: 4px; }
}