
/* === Profile Header === */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  width: 100%;
  text-align: center;
  position: relative; /* so settings icon is positioned relative to header */
}

.settings-icon {
  position: absolute; /* stays inside the header */
  top: 10px;          /* distance from top of header */
  right: 10px;        /* distance from right */
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  color: #000;        /* default color for light mode */
  transition: color 0.3s ease;
}

.settings-icon i {
  color: inherit;     /* inherit from parent */
  transition: color 0.3s ease;
}

.settings-icon i:hover {
  color: #FF69B4; /* hover color */
}

/* Dark mode via device preference */
@media (prefers-color-scheme: dark) {
  .settings-icon {
    color: #fff;      /* white icon in dark mode */
  }

  .settings-icon i:hover {
    color: #FF69B4;   /* hover still pink in dark mode */
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .settings-icon {
    top: 5px;
    right: 5px;
    font-size: 20px;
  }
}

@media (max-width: 320px) {
  .settings-icon {
    top: 3px;
    right: 3px;
    font-size: 18px;
  }
}



/* === Profile Image === */
.profile-picture-container .profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #ccc;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* SVG fallback (if image fails) */
.profile-picture-container .svg-fallback {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hover effect */
.profile-picture-container:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  border-color: #999;
}

/* === Username + Badge === */
.username-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.profile-username {
  font-size: 22px;
  font-weight: bold;
}

/* === Stats (Posts / Followers / Following) === */
.follow-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  text-align: center;
  margin-top: 10px;
}

.follow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 5px;
}

.follow-section p {
  margin: 0;
  font-size: 14px;
}

/* === Responsive Fixes === */
@media (max-width: 480px) {
  .profile-container {
    margin-top: 70px;
  }

  .profile-picture-container .profile-img,
  .profile-picture-container .svg-fallback {
    width: 120px;
    height: 120px;
  }

  .profile-username {
    font-size: 18px;
  }

  .count {
    font-size: 18px;
  }

  .follow-section {
    gap: 20px;
  }
}

@media (max-width: 320px) {
  .profile-picture-container .profile-img,
  .profile-picture-container .svg-fallback {
    width: 100px;
    height: 100px;
  }

  .profile-username {
    font-size: 16px;
  }

  .count {
    font-size: 16px;
  }

  .follow-section {
    gap: 12px;
  }
}


.hidden {
  display: show;
}

  /* Search Section !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
  .search-container {
    position: sticky;
    top: 0;
    padding: 1rem;
    z-index: 1000;
    transition: transform 0.3s ease;
  }
  
.search-container h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

#search-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

#search-form input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
}

#search-form input:focus {
  border-color: #FF69B4;
}

#search-form button {
  padding: 10px 20px;
  border: none;
  background: #FF69B4;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

#search-form button:hover {
  background: #FF69B4;
}
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}


/* Search Result Item */
.search-post {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}
.search-post:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-post img,
.search-post video {
  width: 100%;
  height: 180px; /* You can change this to 200px or 150px */
  object-fit: cover;
  border-radius: 10px;
  display: block;
}



/* No Results Message */
.no-results {
  text-align: center;
  font-style: italic;
  color: #888;
  margin-top: 2rem;
}



.username-section {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.profile-username {
  font-size: 28px;
  font-weight: 300;
  margin: 0 15px 0 0;
}

.follow-section {
  display: flex;
  margin-bottom: 20px;
}

.follow-item {
  margin-right: 40px;
  text-align: center;
}
.count {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--count-color, black); /* Default to black */
}

@media (prefers-color-scheme: dark) {
  .count {
    color: var(--count-color-dark, white); /* Default to white in dark mode */
  }
}

.label {
  font-size: 14px;
  color: #8e8e8e;
  margin: 0;
}

.profile-actions {
  display: flex;
  gap: 8px;
}


/* Follow and Unfollow button styles */
.btn {
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #FF1493;
  color: white;
}

.btn-primary:hover {
  background-color: #c1116d;
}

/* Optionally, if you want to keep a different style for Unfollow button */
.btn-danger {
  background-color: #FF1493;
  color: white;
}

.btn-danger:hover {
  background-color: #c1116d;
}


.btn:hover {
  /* Applies to all buttons */
  opacity: 0.9;
}
/* Responsive Design */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-picture-container {
    margin: 0 0 20px 0;
  }

  .username-section {
    justify-content: center;
  }

  .follow-section {
    justify-content: center;
  }

  .profile-actions {
    flex-direction: column;
    align-items: center;
  }
}



/* carefully stage */

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }


  .like-btn {
  pointer-events: auto; /* Ensure it's clickable */
}


  /* Styling Links */
  .follow-item a {
    text-decoration: none;
    color: inherit;
  }

  .follow-item a:hover {
    opacity: 0.8;
  }

  .profile-details {
    margin-top: 20px;
    border-top: 1px solid #ddd;

  }

  /* Pink, Black, and White Color Scheme */
   h1, h3, h4 {
    color:#FF69B4; /* Pink */
  }

  a {
    color: black; /* Dark Black */
  }

  a:hover {
    color: #FF69B4; /* Pink on Hover */
  }

  button {
  
    color: white;
  }


  /* Responsive Design */
  @media (max-width: 768px) {
    .follower-item {
      flex-direction: column;
      align-items: flex-start;
    }

    .follower-item img {
      margin-bottom: 10px;
    }
  }
