
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(360deg, #111 20%, #18191a 100%, #fff 150%);
  background-attachment: fixed;
  color: #e4e6eb;
}

.page-bg {
  padding: 20px 0;
}

.cover-photo {
  border: 2px solid #242526;
  width: 70%;
  height: 500px;
  margin: 0 auto;
  background: url('cover.jfif') no-repeat center center;
  background-size: cover;
  border-radius: 8px;
  position: relative;
}

.bio {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.bio p {
  text-align: center;
}

.bio-btn {
  background: #3a3b3c;
  color: #e4e6eb;
  font-size: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

.bio-btn:hover {
  background: #4e4f50;
  color: #ffffff;
}

.edit-bio-btn {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.insta {
  margin-top: 20px;
  color: #1877F2;
  cursor: pointer;
}

.featured-item {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.featured-item img {
  width: 150px;
  height: 280px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #3a3b3c;
  cursor: pointer;
  transition: transform 0.2s;
}

.featured-item img:hover {
  transform: scale(1.05);
}

.featured-item p {
  margin-top: 6px;
  font-size: 14px;
  color: #e4e6eb;
  text-align: center;
}

.friends-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.friend {
  margin-top: 10px;
  text-align: center;
  width: 100px;
}

.friend img {
  width: 100%;
  border-radius: 8px;
}

.profile-info {
  color: #e4e6eb;
  text-align: left;
  position: relative;
  margin-top: -60px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #242526;
  object-fit: cover;
}

.profile-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.name-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.profile-name {
  font-size: 28px;
}

.friend-num {
  font-size: 15px;
  color: gray;
  margin-top: 5px;
}

.story-edit-btn {
  display: flex;
  gap: 8px;
}

.story-btn,
.edit-btn {
  font-size: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.story-btn {
  background: #2374e1;
  color: #fff;
}

.edit-btn {
  background: #3a3b3c;
  color: #e4e6eb;
}

.pst-btn {
  background: #3a3b3c;
  color: #e4e6eb;
  font-size: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

hr {
  border: none;
  height: 1px;
  background-color: #3e4042;
  margin: 20px auto;
  width: 70%;
}

hr.sep {
  border: none;
  height: 1px;
  background-color: #3e4042;
  margin: 20px auto;
  width: 100%;
}

.info-selection {
  width: 70%;
  margin: 0px auto 20px auto;
  display: flex;
  gap: 3px;
}

.current-tab {
  font-size: 16px;
  padding: 2px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #1877f2;
  cursor: pointer;
}

hr.small {
  margin-bottom: -20px;
  margin-left: 270px;
  border: none;
  background-color: #1877f2;
  border-radius: 2px;
  height: 3px;
  width: 50px;
}

.tab-btn {
  font-size: 16px;
  padding: 3px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: gray;
  cursor: pointer;
}

.tab-btn:hover {
  background: #3a3b3c;
  color: black;
}

.content-area {
  width: 70%;
  margin: 20px auto;
  display: flex;
  gap: 20px;
}

.post-v1 {
  display: flex;
  align-items: center;
  gap: 63%;
}

hr.postv1 {
  border-radius: 2px;
  height: 1px;
  width: 100%;
}

.view-btn {
  font-size: 16px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: gray;
  cursor: pointer;
  position: relative;
}

.view-btn:hover {
  background: #3a3b3c;
  color: #e4e6eb;
}

.active-view {
  color: #1877f2;
  font-weight: bold;
}

.active-view::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1877f2;
  border-radius: 2px;
}

.post-actions-btns {
  display: flex;
  gap: 10px;
}

.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #242526;
  color: #e4e6eb;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.photo-grid img {
  width: 100%;
  height: 100px;         /* uniform height */
  border-radius: 6px;
  object-fit: cover;     /* prevents warping */
}

.create-post {
  padding: 12px;
  
}

.post-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.small-profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.create-post input {
  flex: 1;
  padding: 12px 15px;
  border-radius: 20px;
  border: 1px solid #3e4042;
  background: #3a3b3c;
  font-size: 15px;
}

.post-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #444;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.post-option i {
  font-size: 20px;
}

.post-option:hover {
  background: #3a3b3c;
}

.live-video i {color: #f02849;}
.photos i {color: #45bd62;}
.flag i {color: #1877f2;}

.post-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.post-actions button {
  flex: 1;
  padding: 8px;
  background: none;
  border: none;
  color: #e4e6eb;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.post-actions button:hover {
  background: #3a3b3c;
}

.card {
  background: #242526;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin: 5px 0;
}

.post {
  padding: 15px;
}

.card2 {
  background: #242526;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin: 5px 0;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post-user-info h4 {
  margin: 0;
  font-size: 16px;
}

.post-user-info span {
  font-size: 12px;
  color: gray;
} 

.post-image img {
  width: 100%;
  max-height: 800px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
}

.post-stats {
  display: flex;
  margin-left: 20px;
  color: #9fa2aa;
}

.post-reaction {
  display: flex;
  align-items: center;
  left: 10px;
  gap: 0;
}

.post-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.reactions {
  position: relative;
  display: inline-block;
}

.like-wrapper {
  position: relative;
  display: inline-block;
}

.reactions-bar {
  position: absolute;
  bottom: 120%;
  left: 0;
  display: flex;
  gap: 55px;
  background: #3a3b3c;
  padding: 20px 80px;
  border-radius: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 10;
}

.like-wrapper:hover .reactions-bar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  
}

.action-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.action-wrapper button {
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  color: #e4e6eb;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.action-wrapper button:hover {
  background: #3a3b3c;
}

.reaction-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.main-reaction-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.main-reaction-circle i {
  font-size: 12px;
}

.reaction-circle i {
  font-size: 60px;
} 

.reaction-circle:hover {
  transform: scale(1.4);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.main-reaction {
  background-color: #f02849;
}

.second-reaction {
  position: absolute;
  left: 14px;
  top: 0px;
  background-color: #1877f2;
}

.like i   { color: #1877F2; }
.love i   { color: #E0245E; }
.haha i   { color: #FFDD67; }
.wow i    { color: #FFD166; }
.sad i    { color: #FFDD67; }
.angry i  { color: #FF6B6B; }
