/* profile-component.css - User profile view
 * BroJack SOLIUS App Redesign - October 2025
 * Design specs from Figma (design-app-profile-frame-2.md)
 */

/* ===== PROFILE CONTAINER ===== */
.profile-container {
  width: 1180px;
  max-width: 100%;
  margin: 0 auto;
  background: #141626;
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Profile grid layout */
.profile-top-row {
  display: flex;
  gap: 16px;
  height: 184px;
}

.profile-middle-row {
  display: flex;
  gap: 16px;
}

.profile-bottom-row {
  display: flex;
  gap: 16px;
}

/* ===== PROFILE CARDS ===== */
.profile-card {
  border-radius: 20px;
  padding: 16px 24px;
  position: relative; /* Ensure overlays position correctly */
}

/* Gradient text for section titles */
.profile-section-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  background: linear-gradient(171.81deg, #FFFFFF 27.25%, #C6C1FF 78.81%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== AVATAR CARD ===== */
.avatar-card {
  width: 180px;
  height: 184px;
  background: linear-gradient(311.13deg, #00091E 22.82%, #303365 88.03%);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.avatar-preview-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-top: 24px;
  cursor: pointer;
}

.avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 100px;
  background: #FCB9FF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #FFFFFF;
}

.avatar-upload-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  color: #FFFFFF;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  font-size: 24px;
}

.avatar-preview-container:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-preview-container:hover .avatar-preview {
  filter: brightness(0.7);
}

/* ===== MAIN INFORMATION CARD ===== */
.main-info-card {
  flex: 1;
  width: 936px;
  background: linear-gradient(30.45deg, #00091E 21.19%, #303365 79.04%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.btn-disconnect {
  padding: 6px 24px;
  background: rgba(255, 85, 88, 0.5);
  border: 1px solid #FF5558;
  border-radius: 40px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-disconnect:hover {
  background: rgba(255, 85, 88, 0.7);
  transform: translateY(-1px);
}

.profile-info-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.profile-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 280px;
}

.profile-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #536285;
}

.profile-input {
  padding: 8px 16px;
  background: #0D1529;
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
  outline: none;
  transition: all 0.2s ease;
}

.profile-input:focus {
  background: #131D35;
  box-shadow: 0 0 0 2px rgba(113, 120, 254, 0.3);
}

.vertical-divider {
  width: 1px;
  height: 100px;
  background: linear-gradient(180deg, rgba(168, 177, 243, 0.4) 0%, rgba(120, 121, 126, 0.2) 93.27%);
}

.profile-wallet-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.wallet-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #536285;
}

.wallet-address-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-address-full {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
  flex: 1;
}

.wallet-copy-icon {
  font-size: 24px;
  color: #7589B9;
  cursor: pointer;
  transition: color 0.2s ease;
}

.wallet-copy-icon:hover {
  color: #FFFFFF;
}

/* ===== PRIVACY SETTINGS CARD ===== */
.privacy-settings-card {
  flex: 1; /* 50% width in row */
  background: linear-gradient(30.45deg, #00091E 21.19%, #303365 79.04%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-settings-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: #00091E;
  border-radius: 20px;
  gap: 16px;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.setting-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
}

.setting-description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 51px;
  height: 31px;
  background: rgba(120, 120, 128, 0.16);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.toggle-switch.active {
  background: #555DFF;
}

.toggle-knob {
  position: absolute;
  width: 27px;
  height: 27px;
  background: #FFFFFF;
  border-radius: 100px;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease;
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 3px 8px rgba(0, 0, 0, 0.15), 0px 3px 1px rgba(0, 0, 0, 0.06);
}

.toggle-switch.active .toggle-knob {
  left: 22px;
}

/* ===== ACCOUNT INFORMATION CARD ===== */
.account-info-card {
  flex: 1; /* 50% width in row */
  background: linear-gradient(30.45deg, #00091E 21.19%, #303365 79.04%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== MISSIONS CARD (NEW - ROW 2) ===== */
.missions-card {
  flex: 1; /* 50% width in row */
  background: linear-gradient(30.45deg, #00091E 21.19%, #303365 79.04%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== PORTFOLIO CARD (NEW - ROW 3) ===== */
.portfolio-card {
  flex: 1; /* 50% width in row */
  background: linear-gradient(30.45deg, #00091E 21.19%, #303365 79.04%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden; /* Prevent overflow */
}

.portfolio-card .portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.portfolio-card .portfolio-time-filter {
  padding: 6px 16px;
  background: rgba(85, 93, 255, 0.2);
  border: 1px solid rgba(85, 93, 255, 0.4);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portfolio-card .portfolio-time-filter:hover {
  background: rgba(85, 93, 255, 0.3);
  border-color: rgba(85, 93, 255, 0.6);
}

.portfolio-card .profile-portfolio-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0; /* Allow flex shrinking */
}

.portfolio-card .profile-top-assets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portfolio-card .profile-top-assets-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portfolio-card .profile-top-assets-header h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.portfolio-card .profile-assets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portfolio-card .profile-asset-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-card .profile-asset-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-card .profile-asset-progress {
  width: 80px;
  height: 10px;
  background: rgba(83, 98, 133, 0.3);
  border-radius: 100px;
  position: relative;
  flex-shrink: 0;
}

.portfolio-card .profile-asset-progress-fill {
  position: absolute;
  height: 10px;
  left: 0;
  top: 0;
  border-radius: 100px;
}

.portfolio-card .profile-set-button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  margin-top: auto; /* Push to bottom */
}

.portfolio-card .profile-set-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.portfolio-card .profile-set-button:active {
  transform: translateY(0) scale(0.98);
}

.portfolio-card .profile-set-button span {
  position: relative;
  z-index: 1;
}

.portfolio-card .profile-set-button-glow {
  position: absolute;
  width: 80px;
  height: 40px;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card .profile-set-button:hover .profile-set-button-glow {
  opacity: 1;
}

.account-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px;
  background: #00091E;
  border-radius: 20px;
  flex: 1;
}

.account-info-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.account-info-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
}

.account-info-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.account-info-icon {
  font-size: 24px;
  color: #555DFF;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .profile-container {
    width: 100%;
  }
  
  .profile-info-row {
    flex-direction: column;
    gap: 24px;
  }
  
  .vertical-divider {
    width: 100%;
    height: 1px;
  }
  
  .account-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .profile-top-row {
    flex-direction: column;
  }
  
  .avatar-card {
    width: 100%;
  }
  
  .account-info-grid {
    grid-template-columns: 1fr;
  }
}

