:root {
  --primary-color: #003366;
  --secondary-color: #660000;
  --text-color: #000000;
  --meta-color: #666666;
  --border-color: #cccccc;
  --bg-color: #ffffff;
  --pill-lang-bg: #ffdddd;
  --pill-lang-text: #660000;
  --pill-tag-bg: #ddeeff;
  --pill-tag-text: #003366;
  --pill-reset-bg: #eeeeee;
  --pill-reset-text: #333333;
  --input-border: #aaaaaa;
  --font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Main centered canvas */
.blog-container {
  width: 75%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  font-family: var(--font-family);
  color: var(--text-color);
}

/* Title centered */
.blog-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 10px;
  margin-bottom: 20px;
}

/* Center pills container */
.pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* Shared pill style */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

/* Language pills, light red */
.pill-lang {
  background-color: var(--pill-lang-bg);
  color: var(--pill-lang-text);
}

/* Tag pills, light blue */
.pill-tag {
  background-color: var(--pill-tag-bg);
  color: var(--pill-tag-text);
}

/* Reset pill centered */
.reset-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0 20px 0;
}

.pill-reset {
  background: var(--pill-reset-bg);
  color: var(--pill-reset-text);
}

/* Search field stretched full width */
.blog-search {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.blog-search input[type="search"],
.blog-search input[type="text"] {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  box-sizing: border-box;
}

/* Post list layout */
.post-list {
  margin-top: 20px;
}

.post-list-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.post-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.post-title a {
  text-decoration: none;
  color: var(--text-color);
}

.post-meta {
  font-size: 0.9rem;
  color: var(--meta-color);
  margin-bottom: 10px;
}

/* Individual post content */
.post-content {
  line-height: 1.6;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .blog-container {
    width: 90%;
  }
}

/* Footer styles */
footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #eee;
}

footer a {
  color: #007cba;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Share buttons */
.share-buttons {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.share-buttons span {
  font-weight: 500;
  margin-right: 5px;
  color: var(--meta-color);
}

.share-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  color: white;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.share-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.share-facebook {
  background-color: #1877f2;
}

.share-threads {
  background-color: #000000;
}

.share-bluesky {
  background-color: #0560ff;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-email {
  background-color: #666;
}

.share-whatsapp {
  background-color: #25D366;
}

.share-copy {
  background-color: #555;
}