/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.5;
}

body.system {
  background: #f8f8f8;
  color: #000;
}

/* Header */
header.profile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: whitesmoke;
  border-bottom: 0.5px solid #ccc;
  padding: 0 10px;
  z-index: 1000;
}

header .back-btn,
header .search-btn {
  height: 40px;
  width: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .profile-name {
  font-size: 20px;
  font-weight: 700;
}

/* Main container */
.profile-main {
  margin-top: 60px;
  padding: 0 10px;
}

/* Cover photo */
.cover-photo {
  position: relative;
  width: 100%;
  height: 120px;
  background: gainsboro;
  overflow: hidden;
  border-bottom: 0.5px solid #ccc;
}

.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Update Cover Photo Button */
.update-cover-photo {
  position: absolute;
  right: 10px;
  bottom: 10px;
  height: 40px;
  width: 40px;
  background: rgba(0,0,0,0.4);
  border: 0.5px solid white;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  clip-path: inset(0 round 50%);
}

/* Profile Picture */
.profile-picture-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-top: -50px; /* overlap cover photo */
  left: 20px; /* adjust horizontal placement */
}

.profile-picture-container img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid white;
  object-fit: cover;
}

/* Update Profile Photo Button */
.update-profile-photo {
  position: absolute;
  right: 15px;      /* distance from right of cover photo */
  bottom: -15px;    /* slightly above bottom of cover photo */
  height: 35px;
  width: 35px;
  background: rgba(0,0,0,0.3);
  border: 0.5px solid white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  clip-path: inset(0 round 50%);
  z-index: 15;
}

/* Edit Profile Button */
.edit-profile {
  position: absolute;
  right: 0;
  top: 0;
  height: 35px;
  width: 35px;
  background: rgba(0,0,0,0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Profile Name & Badge */
.profile-name-section {
  margin-top: 10px;
  margin-left: 5px;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fi-ss-badge-check {
  color: blue;
  font-size: 20px;
}

/* Followers & Following */
.followers-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-weight: 600;
}

.follow-btn {
  height: 30px;
  padding: 0 15px;
  background: #0000FF;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  clip-path: inset(0 round 20px);
}

/* Bio */
.bio-section {
  margin: 10px 0;
  color: #333;
}

/* Tabs */
.tabs-container {
  margin-top: 10px;
}

.tab-headings {
  display: flex;
  overflow-x: auto;
  background: gainsboro;
  padding: 5px 0;
}

.tab-button {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  font-size: 16px;
  padding: 8px 20px;
  cursor: pointer;
}

.tab-button.active {
  border-bottom: 3px solid blue;
  font-weight: 700;
}

/* Tab content */
.tab-content {
  display: none;
  padding: 10px 0;
}

.tab-content.active {
  display: block;
}

/* Edit Profile Modal */
.edit-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.edit-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.edit-modal-content h2 {
    margin-bottom: 15px;
}

.edit-modal-content label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
}

.edit-modal-content input,
.edit-modal-content textarea {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    resize: none;
}

.edit-modal-content button {
    padding: 10px 20px;
    background-color: #0000FF;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.close-modal {
    float: right;
    font-size: 24px;
    cursor: pointer;
}
