* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 24px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

main {
  padding: 24px;
}

.post-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}

.post-section form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.2s;
}

textarea:focus {
  outline: none;
  border-color: #4a90e2;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  color: #999;
  font-size: 0.875rem;
}

button {
  background: #4a90e2;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #357abd;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message-area {
  margin-top: 12px;
  padding: 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

.message-area.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
  display: block;
}

.message-area.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
  display: block;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment {
  background: #fafafa;
  padding: 16px;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.comment-message {
  font-size: 0.95rem;
  margin-bottom: 8px;
  word-wrap: break-word;
  line-height: 1.5;
}

.comment-message.hidden-message {
  color: #999;
  cursor: pointer;
  user-select: none;
}

.comment-message.hidden-message:hover {
  color: #4a90e2;
}

.comment-meta {
  font-size: 0.8rem;
  color: #999;
}

.comment-date {
  font-style: normal;
}

.loading {
  text-align: center;
  padding: 48px 24px;
  color: #999;
  font-size: 0.95rem;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #999;
}

.empty-state p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  header {
    padding: 16px;
  }

  header h1 {
    font-size: 1.25rem;
  }

  main {
    padding: 16px;
  }

  .post-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  textarea {
    min-height: 70px;
  }

  .form-footer {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  button {
    width: 100%;
  }

  .comment {
    padding: 12px;
  }
}
