* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f7;
  color: #1c1c1e;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

h1 {
  font-size: 20px;
  margin: 0;
}

button {
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #007aff;
  color: #fff;
  cursor: pointer;
}

button.secondary {
  background: #e5e5ea;
  color: #1c1c1e;
}

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

input, textarea {
  width: 100%;
  font-size: 16px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d1d6;
  margin-bottom: 12px;
  font-family: inherit;
}

textarea {
  min-height: 260px;
  resize: vertical;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-item {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}

.post-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.badge-draft { background: #e5e5ea; color: #3a3a3c; }
.badge-publishing { background: #fff3cd; color: #8a6d00; }
.badge-published { background: #d1f2e0; color: #0a6b3f; }
.badge-failed { background: #fdd; color: #a30000; }

.empty-state {
  text-align: center;
  color: #8a8a8e;
  padding: 40px 0;
}

.error-text {
  color: #d70015;
  font-size: 14px;
  margin: 8px 0;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.actions button {
  flex: 1;
}

.wp-link {
  display: block;
  margin: 8px 0;
  color: #007aff;
  word-break: break-all;
}

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
