/* Sistema de Donaciones - Estilos */

/* Contenedor principal */
.yey-donation-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Botón trigger */
.yey-donation-trigger {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.yey-donation-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.yey-donation-icon {
  font-size: 20px;
}

/* Modal */
.yey-donation-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.yey-donation-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

/* Contenido del modal */
.yey-donation-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

/* Botón cerrar */
.yey-donation-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-weight: bold;
  line-height: 1;
}

.yey-donation-close:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

/* Título y descripción */
.yey-donation-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px 0;
  text-align: center;
}

.yey-donation-desc {
  font-size: 14px;
  color: #666;
  margin: 0 0 25px 0;
  text-align: center;
  line-height: 1.5;
}

/* Sección de monto */
.yey-donation-amount-section {
  margin-bottom: 25px;
}

.yey-donation-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.yey-donation-amount-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.yey-donation-currency {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
}

.yey-donation-amount {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.yey-donation-change {
  background: none;
  border: none;
  color: #667eea;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 5px;
}

.yey-donation-change:hover {
  color: #5a67d8;
}

/* Input personalizado */
.yey-donation-custom {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.yey-donation-custom input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.yey-donation-confirm {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.yey-donation-confirm:hover {
  background: #5a67d8;
}

/* Sección de métodos */
.yey-donation-method-section {
  margin-bottom: 25px;
}

.yey-donation-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.yey-donation-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.yey-donation-method:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.yey-donation-method.selected {
  border-color: #667eea;
  background: #f0f4ff;
}

.yey-method-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.yey-method-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.paypal-logo {
  background: #0070ba;
}

.zelle-logo {
  background: #6c1eb1;
}

.cashapp-logo {
  background: #00d632;
}

/* Botones de navegación */
.yey-donation-back {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  width: auto;
}

.yey-donation-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
  background: #5a6268;
}

/* Botón de donación */
.yey-donation-submit {
  width: 100%;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.yey-donation-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Información de pago */
.yey-payment-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
}

.yey-payment-details h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
}

.yey-payment-details p {
  margin: 8px 0;
  color: #666;
  line-height: 1.5;
}

.yey-payment-details strong {
  color: #333;
  font-weight: 600;
}

/* Sección QR */
.yey-qr-section {
  text-align: center;
  margin: 20px 0;
}

.yey-qr-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.yey-qr-container {
  display: inline-block;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yey-qr-container img {
  max-width: 150px;
  height: auto;
  border-radius: 4px;
}

/* Acciones de pago */
.yey-payment-actions {
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
  .yey-donation-content {
    padding: 20px;
    margin: 20px;
    width: calc(100% - 40px);
  }

  .yey-donation-methods {
    grid-template-columns: 1fr;
  }

  .yey-donation-trigger {
    padding: 12px 20px;
    font-size: 14px;
  }
}
