/* Donation Section Container */
.donation-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.donation-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

.donation-section .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.donation-header h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: fadeInDown 0.6s ease-out;
}

.donation-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 3rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out;
}

/* Donation Methods Grid */
.donation-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  margin: 40px 0;
  justify-content: center;
  align-items: stretch;
  max-width: 100%;
}

@media (max-width: 600px) {
  .donation-methods {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 24px 0;
  }
}

@media (min-width: 601px) and (max-width: 1200px) {
  .donation-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1201px) {
  .donation-methods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Donate Button Styles */
.donate-btn,
.donate-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  text-align: left;
  box-sizing: border-box;
}
.donate-btn > *,
.donate-form button > * {
  min-width: 0;
}
.btn-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-text strong,
.btn-text small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.donate-btn::before,
.donate-form button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.donate-btn:hover::before,
.donate-form button:hover::before {
  width: 300px;
  height: 300px;
}

.donate-btn:hover,
.donate-form button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.donate-btn:active,
.donate-form button:active {
  transform: translateY(-2px);
}

.btn-icon {
  height: 28px;
  width: 28px;
  font-size: 24px;
  line-height: 28px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  z-index: 1;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  z-index: 1;
}

.btn-text strong {
  font-size: 1.05rem;
  display: block;
}

.btn-text small {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 400;
}

/* Floating Donate Button */
.floating-donate-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 95, 109, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floatBounce 3s ease-in-out infinite;
  /* iOS Safari: force compositor layer (hardware accel) a fixed-pos render bug ellen */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
  /* iOS Safari safe-area */
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  left: calc(30px + env(safe-area-inset-left, 0px));
}

.floating-donate-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 95, 109, 0.6);
}

.floating-donate-btn:active {
  transform: translateY(-3px) scale(1.02);
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Platform-specific Colors */
.kofi-btn {
  background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
  color: white;
}

.donably-btn {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
  color: white;
}

.stripe-btn {
  background: linear-gradient(135deg, #635bff 0%, #5469d4 100%);
  color: white;
}

.paypal-btn {
  background: linear-gradient(135deg, #0070ba 0%, #005ea6 100%);
  color: white;
}

.alipay-btn {
  background: linear-gradient(135deg, #1678ff 0%, #0d5cbf 100%);
  color: white;
}

.wechat-btn {
  background: linear-gradient(135deg, #09b83e 0%, #078a2e 100%);
  color: white;
}

.crypto-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

/* Lightning Button (Alby custom element) */
.donate-lightning {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Transparency Note */
.donation-transparency {
  margin-top: 50px;
  padding: 25px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  animation: fadeIn 1s ease-out 0.4s both;
}

.donation-transparency p {
  margin: 0.8rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.donation-thanks {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: #fff;
}

/* Form-specific styles */
.donate-form {
  display: contents;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .donation-section {
    padding: 60px 15px;
  }

  .donation-header h2 {
    font-size: 2rem;
  }

  .donation-subtitle {
    font-size: 1rem;
  }

  .donation-methods {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .donate-btn,
  .donate-form button {
    padding: 16px 20px;
  }

  .btn-text strong {
    font-size: 0.95rem;
  }

  .btn-text small {
    font-size: 0.75rem;
  }

  /* Floating button mobil */
  .floating-donate-btn {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: calc(20px + env(safe-area-inset-left, 0px));
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* Dark Mode Support — data-theme alapú, NEM prefers-color-scheme
   (a böngésző sötét módja nem szabad hogy felülírja a mi témánkat) */

/* Analytics Tracking (opcionális) */
[data-analytics]:hover {
  cursor: pointer;
}
