/* ============================================================
   Donate page — donate.css
   Loaded in addition to style.css
   ============================================================ */

.donate-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.donate-page #main {
  flex: 1;
  padding-top: 80px;
}

/* Override style.css scroll-animation opacity:0 on section */
.donate-section {
  opacity: 1;
}

/* ── Page Header (shared with projects) ── */
.page-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0) 100%);
}

.page-header-content {
  display: inline-block;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.4rem 0 0.75rem;
}

.page-header-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto;
}

/* ── Donate section ── */
.donate-section {
  padding: 2rem 0 4rem;
  display: flex;
  justify-content: center;
}

/* ── Card ── */
.donate-card {
  background: var(--bg-card, rgba(30, 30, 46, 0.7));
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  backdrop-filter: blur(12px);
}

/* ── Amount preset buttons ── */
.donate-amounts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.amount-btn {
  flex: 1 1 70px;
  min-width: 64px;
  padding: 0.65rem 0.5rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 12px;
  color: #c5caff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.amount-btn:hover {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(129, 140, 248, 0.5);
  color: #fff;
}

.amount-btn.active {
  background: rgba(99, 102, 241, 0.28);
  border-color: var(--primary, #6366f1);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ── Custom amount input ── */
.donate-custom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.donate-custom-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.donate-custom-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 1rem;
  transition: border-color 0.18s ease;
}

.donate-custom-input-wrap:focus-within {
  border-color: rgba(129, 140, 248, 0.6);
  background: rgba(99, 102, 241, 0.06);
}

.donate-currency {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-right: 0.35rem;
  pointer-events: none;
  user-select: none;
}

.donate-custom-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary, #fff);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 0.75rem 0;
  width: 100%;
}

.donate-custom-input::-webkit-outer-spin-button,
.donate-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Stripe note ── */
.donate-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  justify-content: center;
}

.donate-note .fa-paypal {
  font-size: 1.3rem;
  color: #009cde;
}

/* ── Submit button ── */
.donate-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  gap: 0.5rem;
}

/* ── Disclaimer ── */
.donate-disclaimer {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  opacity: 0.7;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .donate-card {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  .amount-btn {
    font-size: 0.9rem;
    padding: 0.55rem 0.4rem;
  }
}
