
/* ========================================
   1. COLOUR PALETTE
======================================== */

:root {
  --pink: #e95b91;
  --pink-dark: #bd356b;
  --pink-light: #ffe1ed;
  --pink-pale: #fff5f9;
  --white: #ffffff;
  --text: #54233b;
  --muted: #956b7d;
  --border: #f5c1d4;
}

/* ========================================
   2. RESET AND PAGE STYLING
======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--text);

  background:
    radial-gradient(
      circle at top left,
      #ffd6e6,
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      #ffc5dc,
      transparent 40%
    ),
    linear-gradient(
      135deg,
      #fff7fa,
      #ffeaf2
    );

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 30px 6px;
}

/* ========================================
   3. MAIN CONTAINER
======================================== */

.container {
  width: 100%;
  max-width: 560px;
  margin: auto;
  position: relative;
}

/* ========================================
   4. WEBSITE HEADER
======================================== */

.header {
  text-align: center;
  margin-bottom: 24px;
}

.logo {
  width: 65px;
  height: 65px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0 auto 14px;

  font-size: 32px;
  background: var(--white);
  border-radius: 22px;

  box-shadow: 0 8px 25px #d94f8320;

  transform: rotate(-6deg);
}

.header h1 {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}

.header p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   5. MAIN CARD
======================================== */

.card {
  position: relative;


  overflow: visible;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 30px;

  padding: 35px 28px;
  text-align: center;

  box-shadow: 0 24px 65px #ae3e6f20;



  animation: cardAppear 0.7s ease both;
}

/* Pink strip at the top of the card */

.card::before {
  content: "";
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  border-radius: 30px 30px 0 0;

  background: linear-gradient(
    90deg,
    #ffb4ce,
    var(--pink),
    #f7b8d1
  );

  pointer-events: none;
}

/* ========================================
   6. CUTE MASCOT
======================================== */

.mascot {
  width: 80px;
  height: 80px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0 auto 22px;

  font-size: 40px;

  background: linear-gradient(
    145deg,
    #fff0f6,
    #ffd8e7
  );

  border-radius: 35px;

  box-shadow: inset 0 0 0 1px white;

  animation: float 3s ease-in-out infinite;
}

/* ========================================
   7. TEXT AND MESSAGES
======================================== */

.eyebrow {
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 2px;

  margin-bottom: 12px;
}

.card h2 {
  font-size: clamp(1rem, 6vw, 1.7rem);
  line-height: 1;
  letter-spacing: -1px;

  margin-bottom: 16px;
}

.message {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.funny-message {
  background: var(--pink-pale);

  border: 1px dashed #f2a7c3;
  border-radius: 10px;

  padding: 10px;
  margin: 22px 0;

  color: #9d4267;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ========================================
   8. BUTTON AREA
======================================== */

.buttons {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 12px;
}

/* Shared button styling */

.buttons button {
  appearance: none;
  border: none;
  border-radius: 50px;

  padding: 15px 22px;
  min-height: 42px;

  font-family: inherit;
  font-size: 0.9rem;
  font-weight: bold;

  cursor: pointer;
  touch-action: manipulation;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;

  -webkit-tap-highlight-color: transparent;
}

/* ========================================
   9. YES BUTTON
======================================== */

#yesButton {
  position: relative;
  z-index: 2;

  color: white;

  background: linear-gradient(
    135deg,
    #f17ca8,
    #d83d7b
  );

  box-shadow: 0 10px 22px #d83d7b36;
}

#yesButton:hover {
  transform: translateY(-3px) scale(1.03);

  box-shadow: 0 14px 26px #d83d7b45;
}

#yesButton:active {
  transform: scale(0.97);
}

/* ========================================
   10. NO BUTTON
======================================== */

#noButton {
  position: relative;
  z-index: 3;

  color: #a04b6d;
  background: #fff0f6;

  border: 1px solid var(--border);

  will-change: left, top;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#noButton:hover {
  background: #ffe3ee;
}

/* Keyboard accessibility */

.buttons button:focus-visible {
  outline: 3px solid var(--pink-dark);
  outline-offset: 4px;
}

/* ========================================
   11. REACTION MESSAGE
======================================== */

#reaction {
  min-height: 42px;

  margin-top: 20px;

  color: #b14c76;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ========================================
   12. FOOTER
======================================== */

.footer {
  text-align: center;

  margin-top: 22px;

  color: #aa7b8f;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ========================================
   13. ANIMATIONS
======================================== */

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

@keyframes cardAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ========================================
   14. MOBILE RESPONSIVENESS
======================================== */

@media (max-width: 480px) {
  body {
    padding: 18px 10px;
    align-items: flex-start;
  }

  .container {
    margin: auto;
  }

  .card {
    padding: 20px 15px;
    border-radius: 20px;
  }

  .buttons {
    gap: 10px;
  }

  .buttons button {
    padding: 14px 16px;
    font-size: 0.92rem;
  }

  .header h1 {
    letter-spacing: -1px;
  }

  .mascot {
    width: 75px;
    height: 75px;
    font-size: 64px;
  }
}

/* ========================================
   15. REDUCED MOTION ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   16. YES CELEBRATION SCREEN
======================================== */

.success-screen[hidden] {
  display: none !important;
}

.success-screen {
  text-align: center;
}

.success-mascot {
  background: linear-gradient(
    145deg,
    #ffe8f1,
    #ffc8df
  );

  box-shadow:
    inset 0 0 0 1px #ffffff,
    0 12px 30px #d94f8320;
}

/* ========================================
   17. DONATION CARD
======================================== */

.donation-box {
  margin-top: 25px;
  padding: 22px 18px;

  background: linear-gradient(
    145deg,
    #fff7fa,
    #fff0f6
  );

  border: 1px solid #f5c1d4;
  border-radius: 23px;

  text-align: left;
}

.donation-box h3 {
  color: var(--pink-dark);
  font-size: 1.15rem;
  line-height: 1.4;
  text-align: center;

  margin-bottom: 8px;
}

.donation-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;

  margin-bottom: 18px;
}

/* ========================================
   18. BANK ACCOUNT DETAILS
======================================== */

.account-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 14px;
  padding: 13px 0;

  border-top: 1px solid #f4d7e2;
}

.account-detail span {
  color: var(--muted);
  font-size: 0.85rem;
}

.account-detail strong {
  color: var(--text);
  font-size: 0.9rem;
  text-align: right;

  overflow-wrap: anywhere;
}

/* ========================================
   19. COPY ACCOUNT BUTTON
======================================== */

#copyAccountButton {
  display: block;
  width: 100%;

  margin-top: 12px;
  padding: 14px 18px;

  color: var(--pink-dark);
  background: var(--pink-light);

  border: 1px solid #f4bdd2;
  border-radius: 50px;

  font-family: inherit;
  font-size: 0.9rem;
  font-weight: bold;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#copyAccountButton:hover {
  background: #ffd2e3;
  transform: translateY(-2px);
}

/* ========================================
   20. PAYSTACK DONATION BUTTON
======================================== */

.paystack-button {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  min-height: 52px;

  margin-top: 12px;
  padding: 14px 18px;

  color: #ffffff;
  background: #25233e;

  border-radius: 50px;

  font-size: 0.92rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;

  box-shadow: 0 10px 20px #25233e20;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.paystack-button:hover {
  background: #393654;
  transform: translateY(-2px);

  box-shadow: 0 14px 25px #25233e30;
}

.paystack-button:focus-visible,
#copyAccountButton:focus-visible {
  outline: 3px solid var(--pink-dark);
  outline-offset: 4px;
}

/* ========================================
   21. DONATION MESSAGES
======================================== */

.donation-note {
  margin-top: 17px;

  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}

/* ========================================
   22. MOBILE DONATION LAYOUT
======================================== */

@media (max-width: 480px) {
  .donation-box {
    padding: 15px 10px;
    border-radius: 15px;
  }

  .donation-box h3 {
    font-size: 1.05rem;
  }

  .account-detail {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .account-detail strong {
    text-align: left;
    max-width: 100%;
  }

  .paystack-button,
  #copyAccountButton {
    font-size: 0.85rem;
  }
}
