/* NFT Bowl Blog — Shared Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
    sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1a1a2e;
  background: #fdfdfd;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.blog-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Header */
.blog-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e2e2e2;
  padding-bottom: 1.5rem;
}

.blog-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f0f23;
  margin-bottom: 0.5rem;
}

.blog-header p {
  color: #555;
  font-size: 1rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}

.lang-switcher a {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.lang-switcher a:hover {
  background: #f0f0f0;
  color: #1a1a2e;
}

.lang-switcher a[aria-current="page"],
.lang-switcher a.active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

/* Article list */
.article-list {
  list-style: none;
  padding: 0;
}

.article-list li {
  border-bottom: 1px solid #eee;
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list a {
  display: block;
  padding: 1.25rem 0;
  text-decoration: none;
  color: #1a1a2e;
  transition: color 0.2s;
}

.article-list a:hover {
  color: #4a6cf7;
}

.article-list .article-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.article-list .article-summary {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.article-list .article-date {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.25rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
  font-size: 1rem;
}

/* Article page */
article {
  margin-bottom: 3rem;
}

article h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #0f0f23;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2a2a3e;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

article p {
  margin-bottom: 1.25rem;
}

article ul,
article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

article li {
  margin-bottom: 0.4rem;
}

article blockquote {
  border-left: 3px solid #4a6cf7;
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: #f8f9ff;
  color: #333;
  font-style: italic;
}

article a {
  color: #4a6cf7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

article a:hover {
  color: #2a4cd7;
}

article .article-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

article .article-meta time {
  font-weight: 500;
}

/* Sources / references */
.sources {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e2e2;
}

.sources h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.sources ol {
  font-size: 0.95rem;
  color: #555;
}

.sources a {
  color: #4a6cf7;
  word-break: break-all;
}

/* Footer */
.blog-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e2e2;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.blog-footer a {
  color: #4a6cf7;
  text-decoration: none;
}

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

/* RTL support */
[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] article blockquote {
  border-left: none;
  border-right: 3px solid #4a6cf7;
}

[dir="rtl"] article ul,
[dir="rtl"] article ol {
  padding-left: 0;
  padding-right: 1.5rem;
}

[dir="rtl"] .lang-switcher {
  direction: ltr;
}

/* Print */
@media print {
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .lang-switcher,
  .blog-footer {
    display: none;
  }

  article a {
    color: #000;
    text-decoration: underline;
  }

  article a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .blog-container {
    padding: 1.25rem 1rem 3rem;
  }

  .blog-header h1,
  article h1 {
    font-size: 1.6rem;
  }

  article h2 {
    font-size: 1.3rem;
  }
}
