/* Profile Section */
.profile-section {
  display: flex;
  justify-content: flex-start;
  position: relative;
  min-height: 100vh;
  padding-bottom: 80px;
  gap: 15px;
  align-items: flex-start;
  margin-top: 17px;
}

.profile-sidebar {
  position: relative;
  width: 288px;
  flex-shrink: 0;
  background: #ffcf25;
  border-radius: 12px;
  padding: 16px;
  z-index: 100;
  transition: all 0.3s ease;
  box-sizing: border-box;
  height: fit-content;
  margin-top: 0;
}

/* Dynamic height classes for social icons presence */
.profile-sidebar.no-social-icons {
  min-height: 480px !important;
}

.profile-sidebar.has-social-icons {
  min-height: 400px !important;
}

/* Profile background shapes */
#profileBackgroundShapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
}

#profileBackgroundShapes svg.shape {
  position: absolute;
  pointer-events: none;
}

.profile-sidebar > *:not(#profileBackgroundShapes) {
  position: relative;
  z-index: 1;
}

/* Ensure content appears above shapes */
.profile-avatar-container,
.profile-content,
.profile-compact,
.toggle-arrow {
  position: relative;
  z-index: 1;
}

/* Profile Avatar */
.profile-avatar-container {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 12px auto 12px;
  box-sizing: content-box;
  padding: 2.6px;
  cursor: pointer;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: opacity 0.3s ease;
}

.avatar-stroke {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1.6px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* Avatar Upload Overlay */
.avatar-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.profile-avatar-container:hover .avatar-upload-overlay {
  opacity: 1;
}

.profile-avatar-container:hover .profile-avatar {
  opacity: 0.7;
}

.upload-icon {
  font-size: 19px;
  margin-bottom: 3px;
  color: white;
}

.upload-text {
  font-size: 9px;
  color: white;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Avatar Edit Button */
.avatar-edit-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #007bff;
  border: 2px solid white;
  color: white;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.avatar-edit-btn:hover {
  background: #0056b3;
  transform: scale(1.1);
}

.avatar-edit-btn svg {
  width: 13px;
  height: 13px;
}

/* Profile Info */
.profile-info {
  text-align: center;
  padding: 0 12px;
}

.profile-name {
  text-align: center;
  color: white;
  font-size: 23px;
  font-weight: 700;
  margin: 2px 0 2px;
}

.profile-username {
  text-align: center;
  color: #90773c;
  font-size: 14px;
  margin: 0 0 12px 0;
  font-weight: 500;
}

.profile-title {
  color: #666666;
  font-size: 13px;
  font-weight: 500;
  margin: 10px 0 16px 0;
  text-align: center;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Profile Details */
.profile-details {
  margin: 50px 0;
  padding: 0 12px;
  text-align: left;
  margin-bottom: 79px;
}

.profile-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: rgb(144, 119, 60);
  font-size: 12px;
  font-weight: 500;
}

.profile-detail-item img {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.profile-detail-item a {
  color: rgb(144, 119, 60);
  text-decoration: none;
}

.profile-detail-item a:hover {
  text-decoration: underline;
}

/* Pro Badge */
.pro-badge {
  position: absolute;
  top: 2px;
  right: -32px;
  z-index: 10;
  padding: 3px 5px 3px 5px;
  background: linear-gradient(135deg, #ff7bac, #39b54a);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  min-width: 29px;
  text-align: center;
}
