

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: linear-gradient(to right, #f9fafb, #e3eaf1);
  color: #222;
  line-height: 1.6;
}

h1 {
  font-size: 3rem;
  margin: 2rem;
  text-align: center;
  color: #1f2937;
}

p {
  text-align: center;
  font-size: 1.1rem;
  color: #4b5563;
}

#container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

#post-list {
  width: 30%;
  min-width: 280px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.07);
  overflow-y: auto;
  max-height: 80vh;
}

#posts div {
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #1d4ed8;
  transition: all 0.3s ease-in-out;
}

#posts div:hover {
  background: #e0e7ff;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#post-detail {
  width: 70%;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}

#detail-title {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 0.5rem;
}

#detail-author {
  font-style: italic;
  color: #6b7280;
  margin-bottom: 1rem;
}

#detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

#detail-content {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

button {
  background: #3b82f6;
  color: white;
  padding: 0.7rem 1.2rem;
  margin-right: 0.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #2563eb;
}

form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

input[type="text"],
textarea {
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.3);
}

.hidden {
  display: none;
}
