* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f0f0f;
}

/* Navbar */
.navbar {
  width: 100%;
  padding: 16px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a, #111);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Logo */
.logo {
  font-size: 24px;
  font-weight: 700;
  color: #00f5ff;
  letter-spacing: 1px;
}

/* Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover underline animation */
.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -6px;
  background: #00f5ff;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #00f5ff;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Button */
.btn {
  padding: 10px 22px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #00f5ff, #008cff);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,245,255,0.4);
}
/* ----------------- Post Form ----------------- */
#postForm {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
}

#postForm input,
#postForm textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 1rem;
}

#postForm textarea {
    resize: vertical;
    min-height: 120px;
}

#postForm button {
    background: #4f46e5;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

#postForm button:hover {
    background: #4338ca;
}

/* ----------------- Post List ----------------- */
#postList {
    max-width: 700px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.post h3 {
    margin-bottom: 0.5rem;
    color: #4f46e5;
}

.post p {
    margin-bottom: 1rem;
}

.post button {
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.post .editBtn {
    background: #f59e0b; /* amber */
    color: #fff;
}

.post .editBtn:hover {
    background: #d97706;
}

.post .deleteBtn {
    background: #ef4444; /* red */
    color: #fff;
}

.post .deleteBtn:hover {
    background: #b91c1c;
}

/* ----------------- Responsive ----------------- */
@media (max-width: 768px) {
    .navbar nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    #postForm, #postList {
        margin: 1rem;
        padding: 1.5rem;
    }
}
