/* Wallet Dropdown Component */
/* BroJack Agent #2 - Multi-Wallet Management System */

.wallet-dropdown {
  position: fixed;
  width: 320px;
  background: linear-gradient(180deg, #1C2338 0%, #141626 100%);
  border: 1px solid rgba(113, 120, 254, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  pointer-events: none;
}

.wallet-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.wallet-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(83, 98, 133, 0.3);
  font-family: 'Montserrat', 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #A4A9B6;
}

.wallet-dropdown-hint {
  font-size: 12px;
  color: #536285;
  font-style: italic;
}

.wallet-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
}

/* Custom scrollbar */
.wallet-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.wallet-dropdown-list::-webkit-scrollbar-track {
  background: rgba(83, 98, 133, 0.1);
  border-radius: 3px;
}

.wallet-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(113, 120, 254, 0.3);
  border-radius: 3px;
}

.wallet-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: rgba(113, 120, 254, 0.5);
}

.wallet-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  position: relative;
}

/* Active wallet - clickable (to close) */
.wallet-dropdown-item.active {
  cursor: pointer;
}

.wallet-dropdown-item.active:hover {
  background: rgba(113, 120, 254, 0.1);
}

/* Inactive wallets - greyed out and non-clickable */
.wallet-dropdown-item.inactive {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: all; /* Allow clicks to show hint */
}

.wallet-dropdown-item.inactive:hover {
  background: transparent; /* No hover effect */
}

.wallet-dropdown-item.inactive .wallet-item-nickname,
.wallet-dropdown-item.inactive .wallet-item-address {
  color: #536285;
}

.wallet-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-item-avatar img,
.wallet-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wallet-avatar-placeholder {
  font-family: 'Montserrat', 'Archivo', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.wallet-item-info {
  flex: 1;
  min-width: 0;
}

.wallet-item-nickname {
  font-family: 'Montserrat', 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-item-address {
  font-family: 'Montserrat', 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #A4A9B6;
}

.wallet-item-check {
  color: #7BFFBF;
  font-size: 16px;
  flex-shrink: 0;
}

/* Add Wallet Button Styles */
.add-wallet-item {
  border-top: 1px solid rgba(83, 98, 133, 0.2);
  margin-top: 8px;
  padding-top: 8px;
}

.add-wallet-item:hover {
  background: rgba(113, 120, 254, 0.15);
}

.add-wallet-avatar {
  background: linear-gradient(135deg, #7178FE 0%, #9E7EFA 100%);
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.add-wallet-avatar i {
  color: #FFFFFF;
  font-size: 18px;
  opacity: 0.9;
}

.add-wallet-text {
  color: #7178FE;
  font-weight: 600;
}

.wallet-dropdown-divider {
  height: 1px;
  background: rgba(83, 98, 133, 0.3);
  margin: 8px 12px;
}

.wallet-dropdown-actions {
  padding: 8px;
}

.wallet-dropdown-action {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: 'Montserrat', 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
}

.wallet-dropdown-action:hover {
  background: rgba(113, 120, 254, 0.1);
}

.wallet-dropdown-action.disconnect-action {
  color: #FF5558;
}

.wallet-dropdown-action.disconnect-action:hover {
  background: rgba(255, 85, 88, 0.1);
}

.wallet-dropdown-action i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  opacity: 0.8;
}

/* Loading state for avatar button */
.profile-avatar-button.loading {
  opacity: 0.6;
  pointer-events: none;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.4;
  }
}

/* Animations for switch hint toast */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

