/* ==========================================================================
   Certificate Generator - Thank You Page Styles
   ========================================================================== */

/* Thank You Wrapper */
.thank-you-wrapper {
  background: linear-gradient(180deg, #fefefe 0%, #f8f6ff 100%);
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

/* Confetti */
.ty-confetti {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.7;
  animation: ty-confetti-fall 4s ease-in-out infinite;
  z-index: 100;
  pointer-events: none;
}

.ty-confetti-1 { background: #8A63D2; left: 5%; top: -20px; animation-delay: 0s; }
.ty-confetti-2 { background: #D157B9; left: 15%; top: -20px; animation-delay: 0.5s; }
.ty-confetti-3 { background: #FEC417; left: 25%; top: -20px; animation-delay: 1s; }
.ty-confetti-4 { background: #7C3AED; left: 35%; top: -20px; animation-delay: 1.5s; }
.ty-confetti-5 { background: #EC008C; left: 45%; top: -20px; animation-delay: 0.3s; }
.ty-confetti-6 { background: #8A63D2; left: 55%; top: -20px; animation-delay: 0.8s; }
.ty-confetti-7 { background: #D157B9; left: 65%; top: -20px; animation-delay: 1.3s; }
.ty-confetti-8 { background: #FEC417; left: 75%; top: -20px; animation-delay: 0.2s; }
.ty-confetti-9 { background: #7C3AED; left: 85%; top: -20px; animation-delay: 0.7s; }
.ty-confetti-10 { background: #EC008C; left: 95%; top: -20px; animation-delay: 1.2s; }
.ty-confetti-11 { background: #8A63D2; left: 10%; top: -20px; animation-delay: 1.8s; }
.ty-confetti-12 { background: #D157B9; left: 30%; top: -20px; animation-delay: 2.1s; }
.ty-confetti-13 { background: #FEC417; left: 50%; top: -20px; animation-delay: 2.4s; }
.ty-confetti-14 { background: #7C3AED; left: 70%; top: -20px; animation-delay: 2.7s; }
.ty-confetti-15 { background: #EC008C; left: 90%; top: -20px; animation-delay: 3s; }

@keyframes ty-confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Sparkles */
.ty-sparkle {
  position: fixed;
  font-size: 24px;
  animation: ty-sparkle-pulse 2s ease-in-out infinite;
  z-index: 100;
  pointer-events: none;
}

.ty-sparkle-1 { left: 8%; top: 20%; animation-delay: 0s; }
.ty-sparkle-2 { right: 12%; top: 15%; animation-delay: 0.5s; }
.ty-sparkle-3 { left: 15%; bottom: 25%; animation-delay: 1s; }
.ty-sparkle-4 { right: 8%; bottom: 30%; animation-delay: 1.5s; }
.ty-sparkle-5 { left: 50%; top: 8%; animation-delay: 0.3s; }

@keyframes ty-sparkle-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Thank You Card */
.ty-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(138, 99, 210, 0.15);
  max-width: 1200px;
  width: 100%;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.ty-card-inner {
  max-width: 640px;
  margin: 0 auto;
}

.ty-hero-emoji {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
}

.ty-headline {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
  margin-bottom: 24px;
}

.ty-headline-saved {
  background: linear-gradient(90deg, #8A63D2 0%, #D157B9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ty-body-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
}

.ty-body-text strong {
  color: #1A1A1A;
}

.ty-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #8A63D2 0%, #D157B9 100%);
  margin: 32px auto;
  border-radius: 2px;
}

.ty-sign-off {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-style: italic;
  color: #555;
  margin-bottom: 8px;
}

.ty-team-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 700;
  color: #7C3AED;
}

/* Certificate Generator with Thank You - Adjustments */
.certificate-generator--with-thankyou {
  padding-top: 40px;
  background: linear-gradient(180deg, #f8f6ff 0%, #fefefe 100%);
}

/* Hide floating donate button on thank-you page */
.floating-donate {
  display: none !important;
}

.cert-gen-section-header {
  text-align: center;
  padding: 48px 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 1200px;
  margin: 0 auto 24px;
}

.cert-gen-section-emoji {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.cert-gen-section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 12px;
}

.cert-gen-section-desc {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: #555;
}

/* Next Steps Section */
.ty-next-steps-wrapper {
  background: #fefefe;
  padding: 40px 20px 60px;
}

.ty-next-steps {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 32px;
}

.ty-next-steps-inner {
  max-width: 640px;
  margin: 0 auto;
}

.ty-next-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.ty-next-step:last-child {
  margin-bottom: 0;
}

.ty-next-step-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ty-next-step-text {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

.ty-next-step-text a {
  color: #7C3AED;
  text-decoration: none;
  font-weight: 600;
}

.ty-next-step-text a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .thank-you-wrapper {
    padding: 40px 16px;
    min-height: auto;
  }

  .ty-card {
    padding: 32px 24px;
  }

  .ty-headline {
    font-size: 26px;
  }

  .ty-hero-emoji {
    font-size: 48px;
  }

  .ty-sparkle {
    display: none;
  }

  .cert-gen-section-header {
    padding: 40px 16px 30px;
  }

  .cert-gen-section-title {
    font-size: 22px;
  }

  .ty-next-steps {
    padding: 24px;
  }
}
