/**
 * Modern Profile Styles
 * Clean, minimalistic design system for Haxz-ID
 */

:root {
  --primary: #e5273d;
  --primary-dark: #c91f33;
  --secondary: #8b5cf6;
  --success: #10b981;
  --text-primary: #f9f8d7;
  --text-secondary: rgba(249, 248, 215, 0.7);
  --bg-card: rgba(15, 15, 15, 0.8);
  --bg-card-hover: rgba(20, 20, 20, 0.9);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(229, 39, 61, 0.3);
}

/* Smooth background */
body {
  background: #000;
  background-image: 
    radial-gradient(at 20% 30%, rgba(229, 39, 61, 0.08) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
}

/* Container */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Profile Header - Minimalist */
.profile-header {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.profile-header:hover {
  border-color: var(--border-hover);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(229, 39, 61, 0.3);
}

.profile-name {
  font-family: 'Oxanium', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.profile-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.social-tag-wrapper {
  position: relative;
  display: inline-block;
}

.social-tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.social-tag:not(button):hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.social-tag button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.social-tag.twitter {
  color: #1DA1F2;
  border-color: rgba(29, 161, 242, 0.2);
}

.social-tag.discord {
  color: #5865F2;
  border-color: rgba(88, 101, 242, 0.2);
}

.social-tag.editable:hover {
  border-color: rgba(229, 39, 61, 0.3);
}

.dropdown-icon {
  margin-left: 0.25rem;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.social-tag.editable.active .dropdown-icon {
  transform: rotate(180deg);
}

.social-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 180px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
  animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-dropdown button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: #f9f8d7;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.social-dropdown button:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Badges - Clean Grid */
.badges-grid {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.badge {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid;
  text-align: center;
  font-family: 'Oxanium', sans-serif;
  transition: all 0.3s ease;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
}

.badge:hover {
  transform: translateY(-4px) scale(1.02);
}

.badge-singularity {
  border-color: rgba(255, 0, 51, 0.4);
  background: linear-gradient(135deg, rgba(229, 39, 61, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
  box-shadow: 0 4px 24px rgba(255, 0, 51, 0.2);
}

.badge-singularity:hover {
  box-shadow: 0 8px 32px rgba(255, 0, 51, 0.4);
}

.badge-trait {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.badge-corpo {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
  box-shadow: 0 4px 24px rgba(251, 191, 36, 0.15);
}

.badge-corpo:hover {
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.3);
}

.badge-icon {
  font-size: 2rem;
}

.badge-name {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-desc {
  font-size: 0.7rem;
  opacity: 0.6;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* Stats Grid - Minimalist */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-bottom: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Oxanium', sans-serif;
  color: var(--text-primary);
}

/* Content Cards - Clean */
.content-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* NFT Gallery - Modern Grid */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.nft-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.nft-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.nft-image-container {
  aspect-ratio: 1;
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}

.nft-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nft-card:hover .nft-image-container::after {
  opacity: 1;
}

.nft-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.nft-card:hover .nft-image-container img {
  transform: scale(1.05);
}

.nft-info-container {
  padding: 0.75rem;
}

.nft-name-text {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.nft-traits {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.trait-badge {
  padding: 0.25rem 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--secondary);
}

/* Wallet Cards - Clean */
.wallet-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.wallet-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wallet-label {
  font-size: 0.75rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.wallet-address-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-primary);
  word-break: break-all;
}

.wallet-nft-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
}

.wallet-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(229, 39, 61, 0.05);
  border: 1px solid rgba(229, 39, 61, 0.2);
  border-radius: 8px;
  color: rgba(229, 39, 61, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.wallet-remove-btn:hover {
  background: rgba(229, 39, 61, 0.1);
  border-color: rgba(229, 39, 61, 0.5);
  color: var(--primary);
  transform: scale(1.05);
}

.wallet-remove-btn:active {
  transform: scale(0.95);
}

/* Manage Button */
.manage-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.manage-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
}

.modal-title {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.modal-subtitle {
  opacity: 0.6;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* Button Styles */
.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(229, 39, 61, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-container {
    padding: 1.5rem 1rem;
  }
  
  .profile-name {
    font-size: 2rem;
  }
  
  .profile-header {
    padding: 2rem 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .nft-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .social-dropdown {
    left: auto;
    right: 0;
  }
}
