.profile-container {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.profile-data {
  margin-top: -50px;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.profile-image {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin-right: 20px;
}

.stats {
  display: flex;
}

.stat-item {
  margin-right: 20px;
  text-align: center;
}

.stat-number {
  font-size: 18px;
  font-weight: bold;
}

.stat-label {
  font-size: 14px;
  color: gray;
}

.profile-info {
  margin-top: 20px;
}

.username {
  font-size: 20px;
}

.category {
  font-size: 14px;
  color: gray;
}

.bio {
  margin-top: 10px;
}

.links {
  justify-content: space-between;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.link {
  justify-content: space-around;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  padding: 8px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: #0073e6;
}

.link img {
  margin-right: 8px;
}

.edit-profile {
  width: 100%;
  margin-top: 20px;
  background-color: #3bae31;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
}

.collections {
  width: 100%;
  margin-top: 40px;
}

.collection {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.collection-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
}

.collection-info {
  flex: 1;
}

.collection-data {
  width: 100%;
  display: flex;
}

.categories {
  font-size: 14px;
  color: gray;
}

.description {
  font-size: 14px;
  margin-top: 10px;
}

.buttons {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: space-between;
  width: 100%;
}

.buttons button {
  width: 100%;
  margin-right: 10px;
  background-color: #3bae31;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
}

.create-series {
  width: 100%;
  margin-top: 20px;
  background-color: #3bae31;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
}

.profile-posts {
  max-width: 1000px;
  margin-top: 40px;
}

.tabs {
  display: flex;
  gap: 20px;
}

.tab {
  cursor: pointer;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.tab.active {
  font-weight: bold;
  color: #0073e6;
}

.posts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.notes {
  display: flex;
  flex-direction: column;
}

.profile-posts {
  margin: 0 auto;
  max-width: 1000px;
  margin-top: 40px;
  text-align: center;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.tab {
  cursor: pointer;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.tab.active {
  font-weight: bold;
  color: #3bae31; /* Green color for active tab */
}

.posts {
  margin: 0 auto;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 20px;
  padding: 0 15px;
}

.post-item {
  width: 100%;
}

.post-image {
  width: 100%;
  aspect-ratio: 1; /* Ensures the image is square */
  object-fit: cover; /* Makes sure the image fills the square */
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.note-item {
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px; /* Add space between notes */
}

.note-text {
  font-size: 16px;
  color: #333;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .posts {
    grid-template-columns: repeat(
      3,
      1fr
    ); /* Keep 3 columns at all screen sizes */
    gap: 3px; /* Tighter gap between posts */
    padding: 0 5px; /* Reduced padding */
  }
  .post-image {
    height: 200px; /* Smaller posts on mobile */
    aspect-ratio: 1; /* Keep square ratio */
  }
}

@media (max-width: 480px) {
  .posts {
    grid-template-columns: repeat(3, 1fr); /* Keep 3 columns on small screens */
    gap: 2px; /* Minimal space between posts */
    padding: 0; /* Edge-to-edge layout */
  }
  .post-image {
    height: 180px; /* Smaller posts on very small screens */
    aspect-ratio: 1; /* Keep square ratio */
  }
}
.tab-content {
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}
