/* ===== PROFILE PAGE ===== */
.profile-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-card {
  text-align: center;
  padding: 2.5rem;
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--primary) !important;
  color: white !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
}

.profile-avatar-edit .material-icons-round {
  font-size: 16px;
}

.profile-stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.profile-stat {
  text-align: center;
}

.profile-stat h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.profile-stat p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.profile-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.profile-bio {
  width: 100%;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  resize: vertical;
  transition: var(--transition);
}

body.light-mode .profile-bio {
  background: rgba(241, 245, 249, 0.8);
}

.profile-bio:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-stats-row {
    gap: 1.5rem;
  }
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
}
