body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f5f0e6;
    color: #4b3f35;
}

header {
    text-align: center;
    padding: 50px 20px 30px;
    background-color: #efe6d8;
}

header h1 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 2.8rem;
}

header p {
    font-size: 1rem;
    opacity: 0.7;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    background: #f3eadc;
    font-size: 0.9rem;
}

nav a {
    text-decoration: none;
    color: #4b3f35;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.post {
    background: #fffaf3;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.post h2 {
    margin-top: 0;
    font-family: 'Playfair Display', serif;
}

.post button {
    background: #e6d5b8;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
}

.comment-section {
    margin-top: 15px;
}

.comment {
    background: #f3eadc;
    padding: 8px 12px;
    border-radius: 10px;
    margin-top: 8px;
    font-size: 0.9rem;
}

.comment-input {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.comment-input input {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.comment-input button {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: #d8c3a5;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.editor-toolbar button,
.editor-toolbar select {
  background: #e8dcc8;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #3b2f2f;
  transition: background 0.2s;
}

.editor-toolbar button:hover,
.editor-toolbar select:hover {
  background: #d4c5a9;
}

.editor-box {
  min-height: 80px;
  border: 1px solid #d4c5a9;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  color: #3b2f2f;
  outline: none;
  background: #fff;
  line-height: 1.6;
}

.editor-box:empty:before {
  content: attr(data-placeholder);
  color: #aaa;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  width: 100%;
}
/* Login Screen */
#loginScreen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-box {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.login-box input {
  padding: 10px 16px;
  border: 1px solid #d4c5a9;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

/* Star Picker */
.star-picker span {
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star-picker span:hover {
  color: #c9a96e;
}

/* Labels */
label {
  display: block;
  font-weight: 500;
  margin: 12px 0 4px;
  color: #3b2f2f;
}