/* Custom Styles for Salve Felipe Landing Page */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #e67a3d 0%, #d66a2f 100%);
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 40px -10px rgba(230, 122, 61, 0.5);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px -10px rgba(230, 122, 61, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Compact Button for Sticky Bar */
.btn-primary-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #e67a3d 0%, #d66a2f 100%);
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(230, 122, 61, 0.4);
  text-decoration: none;
}

.btn-primary-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 122, 61, 0.5);
}

/* Donation Buttons */
.donation-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #e67a3d 0%, #d66a2f 100%);
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(230, 122, 61, 0.3);
}

.donation-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(230, 122, 61, 0.5);
}

.donation-button:active {
  transform: translateY(-1px) scale(1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes progressBarGrow {
  from {
    width: 0%;
  }
  to {
    width: 46%;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.fade-in-delayed {
  animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

.pulse-animate {
  animation: pulse 2s ease-in-out infinite;
}

.shimmer {
  animation: shimmer 2s infinite;
}

.progress-bar-animate {
  animation: progressBarGrow 1.5s ease-out;
}

/* Scroll Reveal */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky Progress Bar */
#sticky-progress.show {
  transform: translateY(0);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  backdrop-filter: blur(0px);
}

.modal-overlay.show .modal-backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.modal-close:hover {
  background: #e5e7eb;
  color: #374151;
  transform: rotate(90deg);
}

/* QR Code Container */
#modal-qrcode {
  min-height: 240px;
}

#modal-qrcode svg,
#modal-qrcode img {
  max-width: 240px;
  height: auto;
  margin: 0 auto;
}

/* Modal Blink Animation */
#modal-status.blink {
  animation: blink 1.6s infinite;
}

/* Hidden State */
.hidden {
  display: none !important;
}

/* Prose Styles */
.prose {
  max-width: 65ch;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose strong {
  font-weight: 700;
}

.prose em {
  font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
  .btn-primary {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
  }

  .donation-button {
    font-size: 1rem;
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
  }

  .btn-primary {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  background: #e67a3d;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d66a2f;
}

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

button,
a {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
}
