/* Blog theme — copied from the To-Do App / Workout Tracker palette.
   Change colors/fonts here only; every page (public + admin) links this file. */
:root {
  --bg: #f4f6f9; --card: #ffffff; --text: #1c2430; --dim: #667085;
  --accent: #2f6fed; --accent-dark: #1d4fc4; --accent-bg: #e8f0fe;
  --border: #e2e6ed; --danger: #d64545;
  --radius: 14px; --shadow: 0 2px 10px rgba(47,111,237,0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  margin: 0; padding: 20px 14px 60px;
}
a { color: var(--accent); }
.container { max-width: 720px; margin: 0 auto; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 16px;
}
h1 { font-size: 1.6rem; margin: 0 0 6px; }
h1 a { color: var(--text); text-decoration: none; }
.dim { color: var(--dim); }
.status-msg { color: var(--dim); font-size: 0.8rem; }

button, .btn {
  background: var(--accent); color: #fff; border: none;
  border-radius: 8px; padding: 10px 16px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: var(--accent-dark); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button:disabled:hover { background: var(--accent); }
button.secondary, .btn.secondary { background: var(--accent-bg); color: var(--accent-dark); }
button.secondary:hover, .btn.secondary:hover { background: var(--border); }
button.danger { background: var(--danger); }

input[type=text], input[type=password], textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; font-size: 1rem; font-family: inherit;
}

.post-title { font-size: 1.3rem; margin: 0 0 4px; }
.post-meta { color: var(--dim); font-size: 0.8rem; margin-bottom: 12px; }
.post-body { line-height: 1.6; }
.post-body img { max-width: 100%; border-radius: 8px; }
.post-list-item { display: flex; gap: 14px; align-items: flex-start; }
.post-list-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.badge { background: var(--accent-bg); color: var(--accent-dark); font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge.draft { background: #fff2e0; color: #b3660a; }

.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; }
.gallery img { height: 160px; border-radius: 10px; flex-shrink: 0; }
