/* ------------------ */
/* General Modern Base */
/* ------------------ */

body {
  background: linear-gradient(135deg, #F2F8FF 0%, #F8FCFF 100%),url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  background-attachment: fixed;
  background-size: cover;
  color: #2e2e2e;
  margin: 0;
  font-family: 'Forum', serif;
  text-align: center;
  padding-top: 70px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* ------------------ */
/* Navbar */
/* ------------------ */

.navbar {
  font-family: 'Forum', serif;
  width: 100%;
  padding: 0px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(235, 245, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(180, 210, 255, 0.5);
  box-shadow: 0 8px 24px rgba(77, 163, 255, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

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

.navbar .menu-left, .navbar .menu-center, .navbar .menu-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .menu-left {
  justify-content: flex-start;
  width: 33%;
}

.navbar .menu-center {
  justify-content: center;
  flex-grow: 1;
  width: 33%;
}

.navbar .menu-right {
  justify-content: flex-end;
  width: 33%;
}

.navbar a,
.navbar button {
  color: #0B1F3B;
  font-size: 15px;
  font-weight: bold;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.navbar a.active,
.navbar a:hover,
.navbar button:hover {
  background-color: rgba(77, 163, 255, 0.15);
  color: #2F80ED;
}

.navbar .hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
   color: #0B1F3B;
}

/* Navbar hide/show animation */
.navbar {
    transition: top 0.4s ease;
}

.navbar.hidden {
    top: -70px; /* push it out of view */
}

/* ------------------ */
/* Post Form (Modernized) */
/* ------------------ */
.post-form {
  background: #ffffffcc;
  padding: 35px;
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  margin: 50px auto;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  text-align: left;
  transition: all 0.3s ease;
  border: 1px solid #f0e4d7;
}

.post-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.post-form h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6b3e23;
  margin-bottom: 20px;
  text-align: center;
}

/* Labels */
.post-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
  color: #5c2f15;
  font-size: 1rem;
}

/* Textarea */
.post-form textarea {
  width: 100%;
  height: 130px;
  font-size: 15px;
  padding: 14px 16px;
  margin-bottom: 25px;
  border: 1px solid #e2cbb2;
  border-radius: 10px;
  resize: vertical;
  font-family: 'Segoe UI', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-form textarea:focus {
  outline: none;
  border-color: #9a5938;
  box-shadow: 0 0 5px rgba(154, 89, 56, 0.4);
}

/* Submit Button */
.post-form button {
  background: linear-gradient(135deg, #9a5938, #6b3e23);
  font-size: 16px;
  font-weight: bold;
  padding: 14px 24px;
  border-radius: 10px;
  width: 100%;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.post-form button:hover {
  background: linear-gradient(135deg, #6b3e23, #9a5938);
  transform: translateY(-2px) scale(1.02);
}

/* ------------------ */
/* Posts Container */
/* ------------------ */
.posts-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
  scroll-behavior: smooth;
  overflow-y: auto;
}

.posts-container::-webkit-scrollbar {
  display: none;
}


/* ------------------ */
/* Post Card */
/* ------------------ */

.post-card {
  scroll-snap-align: center;
  width: 90%;
  max-width: 750px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  outline: 2px solid #bfaea3;
  outline-offset: 0;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.post-content {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
}

.post-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 5px 0;
  background-color: #f5eee6;
  border-top: 1px solid #ddd;
  border-radius: 0 0 10px 10px;
}

/* ------------------ */
/* Buttons / Icons */
/* ------------------ */

.like-share button {
  color: #888;
  font-size: 18px;
  background: none;
  border: none;
  transition: color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.like-share button:hover {
  transform: scale(1.2);
  color: #00c2cb;
}

.like-share button.liked {
  color: #00c2cb;
  animation: pop 0.3s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

textarea[name="content"]:focus {
  border-color: #643a78;
  outline: none;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #4a1f5e, #291138);
  transform: scale(1.05);
}

/* ------------------ */
/* Responsive Enhancements */
/* ------------------ */

@media (max-width: 768px) {
    .navbar {
        padding: 1px 5%;
        flex-direction: column;
        align-items: flex-start;
       background-color: rgba(235, 245, 255, 0.85);
        z-index: 1000;
    }

    .navbar .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 10px;
    }

    .navbar .menu a {
        padding: 10px 20px;
        width: 100%;
        text-align: left;
    }

    .navbar .hamburger {
        display: block;
        position: absolute;
        top: 30px;
        right: 20px;
        color: #bfb2a1;
        z-index: 1001;
    }

    .navbar .hamburger i {
        transition: transform 0.3s ease;
    }

    .navbar.active .hamburger i {
        transform: rotate(90deg);
        color: white;
    }

    .navbar.active .menu {
        display: flex;
    }

  .post-form,
  .post-card {
    width: 95%;
    max-width: 95%;
    padding: 20px;
  }

  .post-card {
    height: auto;
  }
}

