* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  min-height: 100%;
  color: #333;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  color: white;
}

.navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;

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

.nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

.nav a.active {
  text-decoration: underline;
}

/* PROFILE CONTAINER
.profile-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
} */

.profile-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.profile-info h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.profile-info p{
  margin: 6px 0;
  color: #555;
}
.email {
  color: #666;
  margin-bottom: 12px;
}

.about {
  margin-bottom: 20px;
  max-width: 500px;
}

.stats {
  display: flex;
  gap: 30px;
}

.stats div {
  text-align: center;
}

.stats strong {
  font-size: 20px;
  display: block;
}

/* MY POSTS */
.my-posts {
  background: white;
  border-radius: 12px;
  padding: 25px;
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.create-btn {
  background: #2563eb;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
}
.create-btn:hover{
  opacity: 0.9;
  transform: translateY(-2px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.postsContainer{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* POST CARD */
.post-card {
  border: 1px solid black;
  border-radius: 8px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  padding: 16px;

  transition: transform 0.2s ease;
}
/*  */
.post-card:hover {
  transform: translateY(-4px);
}

.post-card h4 {
  margin-bottom: 8px;
}

.post-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.category {
  font-size: 12px;
  color: #2563eb;
  font-weight: bold;
}

.post-footer span{
  display: flex;
  align-items: center;
  
}
.post-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  flex-wrap: wrap;
}

.post-footer button{
  cursor: pointer;
  padding: 5px 15px;
  color: white;
  background-color: black;
  border-radius: 5px;
}
.post-footer button:hover{

  background-color: blue;
}

@media(max-width: 768px){

  .header{
    padding: 10px 20px;
  }

  
  .navbar{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2px;
    font-size: 11px;
  }
  .logo{
    font-size: 18px;
    font-style: italic;
    

  }
  .post-footer{
    gap: 10px;
  }
}

