:root {
  --primary: #00a8cc;
  --primary-dark: #00668d;
  --background: #f7fbfc;
  --card: #ffffff;
  --text-primary: #1b2a33;
  --text-secondary: #6b7c85;
  --error: #e05252;
  --success: #3fa66b;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

header.site-header {
  background: var(--card);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 16px 0;
}
header.site-header .container { display: flex; align-items: center; justify-content: space-between; }
header.site-header .logo { font-weight: 700; font-size: 20px; color: var(--text-primary); }

.categories-nav { display: flex; gap: 12px; flex-wrap: wrap; padding: 12px 0; }
.categories-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}
.categories-nav a.active { background: var(--primary-dark); color: white; }

.post-list { display: grid; gap: 16px; margin: 24px 0; }
.post-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card .post-card__body { padding: 16px; }
.post-card h2 { margin: 0 0 8px; font-size: 18px; }
.post-card p { margin: 0; color: var(--text-secondary); font-size: 14px; }

article.post {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
article.post h1 { margin-top: 0; font-size: 28px; }
.post-meta { color: var(--text-secondary); font-size: 13px; margin-bottom: 20px; }
.post-cover { width: 100%; border-radius: 12px; margin-bottom: 20px; }

.block { margin: 20px 0; }
.block-text { font-size: 16px; }
.block-image img, .block-video iframe, .block-audio audio { width: 100%; border-radius: 12px; }
.block-video iframe { aspect-ratio: 16/9; height: auto; border: none; }
.block-quote { border-left: 4px solid var(--primary); padding-left: 16px; color: var(--text-secondary); font-style: italic; }
figure.block { margin: 20px 0; }
figcaption { font-size: 13px; color: var(--text-secondary); margin-top: 6px; text-align: center; }

.block-poll { display: flex; flex-direction: column; gap: 8px; }
.poll-option {
  position: relative;
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: var(--background);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
}
.poll-option:disabled { cursor: default; }
.poll-option__bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0,168,204,0.15); z-index: 0; }
.poll-option__text, .poll-option__pct { position: relative; z-index: 1; }
.poll-option__pct { float: right; font-weight: 700; }
.poll-option--voted { border-color: var(--primary); }
.poll-total { font-size: 13px; color: var(--text-secondary); }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.post-tags a { background: var(--background); padding: 4px 10px; border-radius: 999px; font-size: 12px; }

.author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.08); }
.author-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-box .social-links { display: flex; gap: 10px; margin-top: 6px; }

.related-posts { margin-top: 32px; }
.related-posts h3 { font-size: 16px; }

footer.site-footer { text-align: center; color: var(--text-secondary); font-size: 13px; padding: 40px 0; }

.pagination { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.pagination a { padding: 8px 14px; background: var(--card); border-radius: 8px; }
