/* Modern Donation Section Styles */
.post-donation-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  padding: 4rem 0 !important;
  margin: 3rem 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

.post-donation-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 1;
}

body.dark-mode .post-donation-section::before {
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23667eea' fill-opacity='0.08'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

body.dark-mode .post-donation-section {
  background: linear-gradient(135deg, #0f1419 0%, #1a1d23 50%, #2d3338 100%) !important;
  border: 1px solid rgba(102, 126, 234, 0.2) !important;
}

.donation-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Donation Header */
.donation-header {
  text-align: center;
  margin-bottom: 3rem;
}

.donation-title {
  font-family: var(--blog-font-heading) !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: var(--blog-dark) !important;
  margin-bottom: 1rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
}

.donation-title i {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  animation: heartBeat 2s ease-in-out infinite;
}

body.dark-mode .donation-title i {
  background: linear-gradient(135deg, #8b9cf7 0%, #9d7cc2 50%, #f5a7fb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 10px rgba(139, 156, 247, 0.4)) !important;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

body.dark-mode .donation-title {
  color: var(--blog-light) !important;
  background: linear-gradient(135deg, #8b9cf7 0%, #9d7cc2 50%, #f5a7fb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 20px rgba(139, 156, 247, 0.3) !important;
}

.donation-description {
  font-size: 1.2rem;
  color: var(--blog-gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

body.dark-mode .donation-description {
  color: #e2e8f0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Donation Methods Grid */
.donation-methods {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
  gap: 2rem !important;
  margin-bottom: 3rem !important;
}

.donation-method {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 20px !important;
  padding: 2rem !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.donation-method::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.donation-method:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.donation-method:hover::before {
  transform: scaleX(1);
}

body.dark-mode .donation-method {
  background: rgba(30, 35, 45, 0.95) !important;
  border: 1px solid rgba(102, 126, 234, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(102, 126, 234, 0.1) !important;
  backdrop-filter: blur(20px) !important;
}

body.dark-mode .donation-method:hover {
  border-color: rgba(102, 126, 234, 0.6) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(102, 126, 234, 0.4), 0 0 20px rgba(102, 126, 234, 0.2) !important;
  transform: translateY(-8px) !important;
}

/* Donation Method Header */
.donation-method-header {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
}

.donation-method-header > i {
  width: 60px !important;
  height: 60px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.8rem !important;
  color: white !important;
  position: relative !important;
  overflow: hidden !important;
}

.paypal .donation-method-header > i {
  background: linear-gradient(135deg, #0070ba, #003087);
}

.buymeacoffee .donation-method-header > i {
  background: linear-gradient(135deg, #ff813f, #ff6b35);
}

.instapay .donation-method-header > i {
  background: linear-gradient(135deg, #6B46C1, #9333EA);
}

.donation-method-name {
  font-family: var(--blog-font-subheading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blog-dark);
  margin: 0 0 0.5rem 0;
}

body.dark-mode .donation-method-name {
  color: #f1f5f9 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.donation-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paypal .donation-method-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.buymeacoffee .donation-method-badge {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.instapay .donation-method-badge.egypt-flag {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.25rem 0.5rem;
}

.egypt-flag img {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

body.dark-mode .paypal .donation-method-badge {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #10b981 !important;
}

body.dark-mode .buymeacoffee .donation-method-badge {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

body.dark-mode .instapay .donation-method-badge.egypt-flag {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

.donation-method-description {
  color: var(--blog-gray-600);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

body.dark-mode .donation-method-description {
  color: #cbd5e1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Donation Buttons */
.donation-button {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.donation-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.donation-button:hover::before {
  left: 100%;
}

.donation-button i,
.donation-button span {
  position: relative;
  z-index: 2;
}

.paypal-btn {
  background: linear-gradient(135deg, #0070ba, #003087);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 112, 186, 0.3);
}

.paypal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 112, 186, 0.4);
  color: white;
}

.coffee-btn {
  background: linear-gradient(135deg, #ff813f, #ff6b35);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 129, 63, 0.3);
}

.coffee-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 129, 63, 0.4);
  color: white;
}

.instapay-btn {
  background: linear-gradient(135deg, #6B46C1, #9333EA);
  color: white;
  box-shadow: 0 4px 20px rgba(107, 70, 193, 0.3);
}

.instapay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 70, 193, 0.4);
  color: white;
}

/* InstaPay Info */
.instapay-info {
  margin-top: 1rem;
}

.instapay-username {
  display: flex;
  align-items: center;
  background: var(--blog-gray-100);
  border: 2px solid var(--blog-gray-200);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.instapay-username:focus-within {
  border-color: #6B46C1;
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

body.dark-mode .instapay-username {
  background: rgba(30, 35, 45, 0.8) !important;
  border: 1px solid rgba(102, 126, 234, 0.4) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .instapay-username:focus-within {
  border-color: #9333EA !important;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.instapay-username i {
  color: var(--blog-gray-500);
  margin-right: 0.5rem;
}

.instapay-username span {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--blog-dark);
  user-select: all;
}

body.dark-mode .instapay-username span {
  color: #f1f5f9 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.copy-btn {
  background: #6B46C1;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
}

body.dark-mode .copy-btn {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(124, 58, 237, 0.5) !important;
}

body.dark-mode .copy-btn:hover {
  background: linear-gradient(135deg, #8b5cf6, #c084fc) !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05) !important;
}

.copy-btn:hover {
  background: #553C9A;
  transform: scale(1.05);
}

.copy-btn i {
  font-size: 0.9rem;
}

.instapay-powered {
  text-align: center;
  margin-top: 1rem;
}

.instapay-powered small {
  color: var(--blog-gray-500);
  font-size: 0.8rem;
}

body.dark-mode .instapay-powered small {
  color: var(--blog-gray-400) !important;
}

/* Donation Footer */
.donation-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.donation-thank-you {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: var(--blog-gray-600);
  line-height: 1.6;
}

.donation-thank-you i {
  font-size: 1.2rem;
  animation: thankYouPulse 2s ease-in-out infinite;
}

@keyframes thankYouPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

body.dark-mode .donation-thank-you {
  color: #e2e8f0 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .donation-thank-you i {
  filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.6)) !important;
}

/* Responsive Design for Donation Section */
@media (max-width: 768px) {
  .donation-methods {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .donation-container {
    padding: 0 1rem;
  }
  
  .donation-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .donation-method {
    padding: 1.5rem;
  }
  
  .donation-method-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .donation-method-header > i {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .instapay-username {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .copy-btn {
    margin-left: 0;
    align-self: center;
  }
}

@media (max-width: 480px) {
  .post-donation-section {
    padding: 2rem 0;
  }
  
  .donation-header {
    margin-bottom: 2rem;
  }
  
  .donation-title {
    font-size: 1.8rem;
  }
  
  .donation-description {
    font-size: 1rem;
  }
  
  .donation-method {
    padding: 1rem;
  }
  
  .donation-thank-you {
    flex-direction: column;
    gap: 0.5rem;
  }
}