/**
 * Wallet Display Styles
 */

/* Wallet Address Display */
.wallet-address-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
  max-width: 100%;
}

.wallet-address-display:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Wallet Icons */
.wallet-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hardware-wallet-icon {
  color: #059669;
}

.software-wallet-icon {
  color: #3b82f6;
}

/* Wallet Address Text */
.wallet-address {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  flex: 1;
  min-width: 0;
}

/* Wallet Type Badge */
.wallet-type-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.hardware-badge {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.software-badge {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Copy Button */
.copy-address-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.copy-address-btn svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.copy-address-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.copy-address-btn:hover svg {
  color: #111827;
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #059669;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
  z-index: 10001;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.copy-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* User Profile Card */
.user-profile-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
}

.profile-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.user-role {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-role.admin {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.user-role.owner {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.user-role.charter_member {
  background: #ddd6fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}

.user-role.user {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.profile-section {
  margin-bottom: 20px;
}

.profile-section:last-child {
  margin-bottom: 0;
}

.profile-section h4 {
  margin: 0 0 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-section p {
  margin: 0;
  color: #374151;
  font-size: 14px;
}

.member-type-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
}

.no-address {
  color: #9ca3af;
  font-style: italic;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
  .wallet-address-display {
    flex-wrap: wrap;
    gap: 6px;
  }

  .wallet-type-badge {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .wallet-address {
    font-size: 12px;
  }

  .user-profile-card {
    padding: 16px;
  }

  .profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .user-profile-card {
    background: #1f2937;
    border-color: #374151;
  }

  .wallet-address-display {
    background: #111827;
    border-color: #374151;
  }

  .wallet-address-display:hover {
    background: #1f2937;
    border-color: #4b5563;
  }

  .wallet-address {
    color: #f9fafb;
  }

  .copy-address-btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .profile-header h3 {
    color: #f9fafb;
  }

  .profile-section p {
    color: #d1d5db;
  }
}
