/* ==========================================================================
   User Profile View Styles
   ========================================================================== */
.profile-card {
  max-width: 550px;
  margin: 2rem auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.profile-header-banner {
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.profile-body {
  padding: 1.5rem 2rem 2rem;
  position: relative;
  text-align: center;
}

.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-top: -60px;
}

.profile-avatar-large {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-alt);
  object-fit: cover;
  display: block;
}

.avatar-edit-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--bg-card);
  transition: transform 0.15s ease, background 0.15s ease;
}

.avatar-edit-badge:hover {
  transform: scale(1.1);
  background: var(--primary-hover);
}

.avatar-upload-input {
  display: none;
}


.profile-info {
  margin-top: 1rem;
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
}

.profile-email {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-top: 0.25rem;
}

.profile-meta-list {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.profile-meta-item {
  display: flex;
  justify-content: space-between;
}

.profile-meta-label {
  color: var(--text-muted);
}

/* ==========================================================================
   Editable Profile Form Fields
   ========================================================================== */
.profile-form-grid {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-field-label {
  font-family: var(--font-fun);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-field-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.profile-field-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.profile-field-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
}
