/* ==========================================================================
   TELA DE AGRADECIMENTO - ABRIGO RESGATE
   Design: Azul, Ciano, Branco e Rosa
   Elementos: Foto do cachorro resgatado, partículas flutuantes, comprovante
   ========================================================================== */

.resgaute-thankyou-page {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 40px 16px;
  box-sizing: border-box;
  background-color: #002437;
  background: radial-gradient(circle at 50% 15%, #034870 0%, #002437 55%, #001420 100%);
  color: #ffffff;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Floating Hearts & Paws Particles */
.resgaute-floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.resgaute-floating-particles .particle {
  position: absolute;
  bottom: -40px;
  font-size: 20px;
  opacity: 0.65;
  animation: floatHeartPaw 8s ease-in-out infinite;
  user-select: none;
}

.particle.p-1 { left: 8%;  font-size: 22px; animation-duration: 9s;   animation-delay: 0s; }
.particle.p-2 { left: 18%; font-size: 18px; animation-duration: 7.5s; animation-delay: 1.5s; }
.particle.p-3 { left: 28%; font-size: 16px; animation-duration: 8.5s; animation-delay: 3s; }
.particle.p-4 { left: 40%; font-size: 24px; animation-duration: 10s;  animation-delay: 0.5s; }
.particle.p-5 { left: 54%; font-size: 20px; animation-duration: 8s;   animation-delay: 2.2s; }
.particle.p-6 { left: 66%; font-size: 18px; animation-duration: 9.5s; animation-delay: 4s; }
.particle.p-7 { left: 78%; font-size: 22px; animation-duration: 7s;   animation-delay: 1.2s; }
.particle.p-8 { left: 88%; font-size: 16px; animation-duration: 8.8s; animation-delay: 2.8s; }
.particle.p-9 { left: 94%; font-size: 20px; animation-duration: 9.2s; animation-delay: 0.8s; }

@keyframes floatHeartPaw {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.75;
  }
  80% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(-110vh) scale(1.1) rotate(25deg);
    opacity: 0;
  }
}

/* Card Principal de Agradecimento */
.resgaute-thankyou-card {
  position: relative;
  z-index: 2;
  max-width: 580px;
  width: 100%;
  background: rgba(0, 36, 55, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(56, 189, 248, 0.25);
  border-radius: 28px;
  padding: 36px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(56, 189, 248, 0.15);
  text-align: center;
  box-sizing: border-box;
  animation: thankyouFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes thankyouFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Foto do Cachorro Resgatado */
.resgaute-thankyou-photo-wrapper {
  position: relative;
  display: inline-block;
  margin: 0 auto 20px auto;
}

.resgaute-photo-glow {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(242, 108, 157, 0.25) 70%, transparent 100%);
  filter: blur(10px);
  z-index: 1;
  animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { transform: scale(0.98); opacity: 0.5; }
  100% { transform: scale(1.03); opacity: 0.85; }
}

.resgaute-thankyou-photo {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
  display: block;
}

.resgaute-photo-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: linear-gradient(135deg, #05a9ff, #0284c7);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

/* Tipografia */
.resgaute-thankyou-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 14px 0 8px 0;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.resgaute-thankyou-subtitle {
  font-size: 17px;
  font-weight: 700;
  color: #38bdf8;
  margin: 0 0 18px 0;
  line-height: 1.4;
}

/* Frase em Destaque */
.resgaute-thankyou-quote-card {
  background: rgba(242, 108, 157, 0.12);
  border: 1px solid rgba(242, 108, 157, 0.35);
  border-left: 4px solid #f26c9d;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 auto 18px auto;
  text-align: center;
}

.resgaute-thankyou-quote-card .quote-text {
  font-size: 14px;
  font-weight: 700;
  color: #fce7f3;
  line-height: 1.5;
  margin: 0;
}

/* Texto Complementar */
.resgaute-thankyou-complement {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 auto 22px auto;
  max-width: 490px;
}

/* Comprovante / Detalhes da Doação */
.resgaute-donation-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 0 auto 24px auto;
  text-align: left;
}

.resgaute-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #38bdf8;
}

.resgaute-card-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resgaute-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.resgaute-card-row .row-label {
  color: #94a3b8;
  font-weight: 500;
}

.resgaute-card-row .row-value {
  color: #ffffff;
  font-weight: 600;
  text-align: right;
}

.resgaute-card-row .badge-confirmed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.resgaute-card-row .highlight-amount {
  color: #f26c9d;
  font-size: 17px;
  font-weight: 800;
}

.resgaute-card-row .tx-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: #7dd3fc;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Botão VOLTAR AO ABRIGO */
.resgaute-thankyou-action {
  margin-top: 6px;
}

.resgaute-btn-back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, #f26c9d 0%, #e0246a 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(242, 108, 157, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-sizing: border-box;
}

.resgaute-btn-back-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(242, 108, 157, 0.6);
  filter: brightness(1.05);
}

.resgaute-btn-back-home:active {
  transform: translateY(0);
}

/* Adaptação Responsiva Mobile */
@media (max-width: 480px) {
  .resgaute-thankyou-card {
    padding: 26px 18px;
    border-radius: 22px;
  }

  .resgaute-thankyou-photo {
    width: 180px;
    height: 180px;
  }

  .resgaute-thankyou-title {
    font-size: 22px;
  }

  .resgaute-thankyou-subtitle {
    font-size: 15px;
  }

  .resgaute-thankyou-quote-card .quote-text {
    font-size: 13px;
  }

  .resgaute-thankyou-complement {
    font-size: 12.5px;
  }

  .resgaute-card-row {
    font-size: 12.5px;
  }
}

