/* Minimal clean styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  padding: 40px 20px;
  min-height: 100vh;
}

main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
  text-align: center;
  color: #000;
}

.post-list {
  list-style: none;
  margin-bottom: 60px;
}

.post-item {
  margin-bottom: 0;
}

.post-link {
  text-decoration: none;
  color: #000;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  transition: color 0.2s;
  gap: 20px;
}

.post-item:not(:last-child) .post-link {
  border-bottom: 1px solid #e5e5e5;
}

.post-link:hover {
  color: #0066cc;
}

.post-title {
  flex: 1;
  min-width: 0;
}

.post-date {
  font-size: 0.85rem;
  color: #666;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 20px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

button {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: all 0.2s;
}

button:hover:not(:disabled) {
  border-color: #000;
  background: #000;
  color: #fff;
}

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

.page-info {
  font-size: 0.95rem;
  color: #666;
}

.go-to {
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="number"] {
  width: 60px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.loading {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1rem;
}

.error {
  text-align: center;
  padding: 20px;
  color: #d32f2f;
  background: #ffebee;
  border-radius: 4px;
  margin: 20px 0;
}
