/**
 * 🔗 Wallet UI Styles
 * Estilos para el componente de wallet
 */

/* Container principal */
.wallet-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.wallet-widget:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(129, 140, 248, 0.3);
}

.wallet-widget--connected {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Network badge */
.wallet-network-badge {
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(129, 140, 248, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 6px;
  color: #818cf8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-network-badge--testnet {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

/* Connect button */
.wallet-connect-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #818cf8, #6366f1);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.3);
}

.wallet-connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(129, 140, 248, 0.4);
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

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

.wallet-connect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.wallet-connect-btn svg {
  width: 20px;
  height: 20px;
}

/* Wallet info (connected state) */
.wallet-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
}

.wallet-balance svg {
  width: 16px;
  height: 16px;
  color: #10b981;
}

/* Address button */
.wallet-address-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wallet-address-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 140, 248, 0.5);
}

.wallet-address-btn--copied {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
}

.wallet-address-btn svg {
  width: 16px;
  height: 16px;
}

/* Disconnect button */
.wallet-disconnect-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wallet-disconnect-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.05);
}

.wallet-disconnect-btn svg {
  width: 16px;
  height: 16px;
}

/* Toast notifications */
.wallet-toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.wallet-toast {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.wallet-toast--show {
  opacity: 1;
  transform: translateX(0);
}

.wallet-toast__content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.wallet-toast--success {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.wallet-toast--error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
}

/* Spinner animation */
@keyframes wallet-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: wallet-spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .wallet-widget {
    padding: 6px 12px;
    gap: 8px;
  }

  .wallet-connect-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .wallet-connect-btn span {
    display: none;
  }

  .wallet-info {
    gap: 8px;
  }

  .wallet-balance span {
    display: none;
  }

  .wallet-address-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .wallet-toast-container {
    right: 10px;
    left: 10px;
    top: 70px;
  }

  .wallet-toast {
    min-width: auto;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .wallet-network-badge {
    font-size: 10px;
    padding: 3px 6px;
  }

  .wallet-balance {
    padding: 4px 8px;
  }

  .wallet-address-btn {
    padding: 4px 8px;
  }
}
