/* Modern Profile Detail Page Styles */
.profile-detail-main {
  width: 100vw;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  
}

.profile-detail-card {
  border-radius: 1.5rem;
  /* box-shadow: 0 8px 40px rgba(52, 52, 52, 0.15); */
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: left;
}

.profile-detail-cover {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.profile-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-detail-avatar-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: -60px;
  margin-bottom: 0.5rem;
  z-index: 3;
}

.profile-detail-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 2px 8px rgba(52, 52, 52, 0.10);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-detail-info {
  width: 100%;
  margin-top: 0.5rem;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
}
.profile-detail-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1E5359;
  margin-bottom: 0.2rem;
}
.profile-detail-username {
  color: #1E5359;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.profile-detail-email {
  color: #1E5359;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.profile-detail-location {
  color: #1E5359;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.profile-detail-bio {
  color: #444;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
  max-width: 90%;
}

.profile-detail-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: #1E5359;
  border: 1.5px solid #1E5359;
  border-radius: 0.7rem;
  padding: 0.25rem 0.7rem 0.25rem 0.7rem;
  font-weight: 600;
  font-size: 0.97rem;
  transition: background 0.18s, color 0.18s, border 0.18s;
  box-shadow: 0 1px 4px rgba(140, 55, 48, 0.07);
  z-index: 2;
  margin: 2rem 0 1.5rem 2rem;
  width: auto;
}

@media (max-width: 700px) {
  .profile-detail-back-btn {
    font-size: 0.95rem;
    padding: 0.25rem 0.7rem 0.25rem 0.5rem;
    margin-top: 0.5rem;
    width: auto;
    border-radius: 0.7rem;
    position: static;
    left: auto;
    top: auto;
    box-shadow: 0 1px 4px rgba(140, 55, 48, 0.07);
  }
}

.profile-detail-info-left {
  align-items: flex-start;
  text-align: left;
  width: 100%;
}
.profile-detail-label {
  font-size: 0.98rem;
  color: #48a5af;
  font-weight: 600;
  margin-top: 0.7rem;
  margin-bottom: 0.1rem;
  letter-spacing: 0.01em;
}
.profile-detail-info-left .profile-detail-username,
.profile-detail-info-left .profile-detail-email,
.profile-detail-info-left .profile-detail-location,
.profile-detail-info-left .profile-detail-bio {
  margin-bottom: 0.2rem;
  font-size: 1.08rem;
  color: #1E5359;
  font-weight: 500;
}

@media (max-width: 600px) {
  .profile-detail-main {
    min-height: 100vh;
    padding: 0;
    justify-content: flex-start;
  }
  .profile-detail-card {
    max-width: 99vw;
    min-height: 90vh;
    border-radius: 1rem;
  }
  .profile-detail-cover {
    height: 110px;
  }
  .profile-detail-avatar-wrapper {
    margin-top: -40px;
  }
  .profile-detail-avatar {
    width: 70px;
    height: 70px;
  }
  .profile-detail-info {
    margin-top: 0.2rem;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .profile-detail-info h2 {
    font-size: 1.1rem;
  }
  .profile-detail-full {
    padding-top: 3.5rem;
  }
  .forum-topic-inner {
    padding-top: 0;
  }
}

.profile-detail-full {
  width: 100vw;
  min-height: 80vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  justify-content: flex-start;
}

.profile-detail-cover-full {
  width: 100vw;
  max-width: 100%;
  height: 260px;
  position: relative;
  overflow: visible;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.profile-detail-cover-full img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-detail-avatar-full {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: -80px;
  /* padding: 12px; */
  z-index: 10;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  background: #fff;
}

.profile-detail-info-full {
  width: 100%;
  max-width: 520px;
  margin: 20px auto 0 auto;
  border-radius: 1.2rem;
  /* box-shadow: 0 4px 32px rgba(52, 52, 52, 0.10); */
  padding: 1.5rem 2rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.profile-detail-label {
  font-size: 0.98rem;
  color: #549ca4;
  font-weight: 600;
  margin-top: 0.7rem;
  margin-bottom: 0.1rem;
  letter-spacing: 0.01em;
}
.profile-detail-info-full .profile-detail-username,
.profile-detail-info-full .profile-detail-email,
.profile-detail-info-full .profile-detail-location,
.profile-detail-info-full .profile-detail-bio {
  margin-bottom: 0.2rem;
  font-size: 1.08rem;
  color: #1E5359;
  font-weight: 500;
}
