@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=JetBrains+Mono&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #070707;
}

::-webkit-scrollbar-thumb {
  background: #1a1b26;
}

::-webkit-scrollbar-thumb:hover {
  background: #2f334d;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #dce0f5;
  background: #070707;
  max-width: 900px;
  margin: 20px auto;
}

main {
  background: #111;
  border: 1px solid #1a1b26;
  border-radius: 12px;
  padding: 20px;
  margin: 0 20px;
}

/* VHS Scanline Effect */
body::before {
  content: "";
  position: fixed;
  top: -100px;
  left: 0;
  right: 0;
  bottom: -100px;
  background: repeating-linear-gradient(to bottom,
      transparent 0,
      rgba(0, 0, 0, 0.21) 1px,
      transparent 2px,
      transparent 4px);
  pointer-events: none;
  z-index: 9999;
  animation: vhs-scanline 8s linear infinite;
}

@keyframes vhs-scanline {
  to {
    transform: translateY(100px);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: #c0caf5;
  margin-top: 0;
}

h1 {
  font-size: 2em;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5em;
}

h1 a {
  color: #c0caf5;
  text-decoration: none;
}

h1 a:hover {
  color: #7dcfff;
  text-decoration: none;
}

h2 {
  font-size: 1.5em;
  margin: 1.5em 0 0.5em;
  border-bottom: 1px solid #1a1b26;
  padding-bottom: 0.25em;
}

h3 {
  font-size: 1.25em;
  margin: 1.25em 0 0.5em;
}

h4 {
  font-size: 1.1em;
  margin: 1em 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.subtitle {
  font-style: italic;
  text-align: center;
  color: #787c99;
  margin-bottom: 2em;
  display: block;
}

strong {
  color: #a9b1d6;
  font-weight: 600;
}

a {
  color: #7aa2f7;
  text-decoration: none;
}

a:hover {
  color: #7dcfff;
  text-decoration: underline;
}

/* Code */
code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: #16161e;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  color: #9ece6a;
}

pre {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  background: #16161e;
  border-radius: 8px;
  padding: 15px;
  overflow-x: auto;
  margin: 1em 0;
  border: 1px solid #1a1b26;
}

pre code {
  background: none;
  padding: 0;
}

/* Lists */
ul, ol {
  margin: 0.3em 0 1.5em;
  padding-left: 1.6em;
}

li {
  margin: 0.25em 0;
}

/* Blockquote */
blockquote {
  border-left: 3px solid #bb9af7;
  border-radius: 0 6px 6px 0;
  padding: 10px 15px;
  margin: 1.5em 0;
  color: #9aa5ce;
  background: rgba(187, 154, 247, 0.03);
}

hr {
  border: none;
  border-top: 1px solid #1a1b26;
  margin: 2em 0;
}

/* Article Lists */
.article-list,
.page-list,
.series-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.article-list li,
.page-list li,
.series-list li {
  margin: 0.5em 0;
  padding: 12px;
  border-radius: 8px;
  background: #16161e;
}

.article-list li:hover,
.page-list li:hover,
.series-list li:hover {
  background: #1a1b26;
}

.article-date {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  color: #fff;
  font-size: 0.875em;
}

.article-meta {
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  background: #16161e;
  margin: 1em 0;
  font-size: 0.875em;
  color: #565f89;
}

/* Table of Contents */
.toc {
  background: #16161e;
  border-radius: 8px;
  padding: 15px;
  margin: 1.5em 0;
}

.toc h2 {
  font-size: 1.25em;
  margin: 0 0 0.5em;
  border: none;
  padding-bottom: 0;
}

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

.toc-list li {
  margin: 0.25em 0;
}

.toc-list a {
  color: #7aa2f7;
  text-decoration: none;
}

.toc-list a:hover {
  color: #7dcfff;
  text-decoration: underline;
}

.toc-list .toc-h1 {
  padding-left: 0;
}

.toc-list .toc-h2 {
  padding-left: 2em;
}

.toc-list .toc-h3 {
  padding-left: 4em;
}

/* Navigation */
.article-navigation {
  margin: 2em 0;
  display: table;
  width: 100%;
}

.article-navigation a {
  display: table-cell;
  padding: 12px 16px;
  border-radius: 8px;
  background: #16161e;
  text-align: center;
}

.article-navigation a:hover {
  background: #1a1b26;
}

/* Categories */
.category-list {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.category-list li {
  display: inline-block;
  border-radius: 8px;
  background: #16161e;
  padding: 10px 15px;
  margin: 0 8px 8px 0;
}

.category-list li:hover {
  background: #1a1b26;
}

/* Media */
figure {
  margin: 1.5em auto;
  max-width: 600px;
  text-align: center;
}

figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

figcaption {
  margin-top: 0.5em;
  font-size: 0.875em;
  color: #fff;
  font-style: italic;
}

.video-player {
  width: 100%;
  max-width: 600px;
  margin: 1.5em auto;
  border-radius: 8px;
  background: #16161e;
}

/* Tag Icons */
#tag_economia::before {
  content: "📈 ";
}

#tag_grana::before {
  content: "💸 ";
}

#tag_tecnologia::before {
  content: "💻 ";
}

#tag_religiao::before {
  content: "☦️ ";
}

#tag_academia::before {
  content: "🏋️‍♂️ ";
}

#tag_filosofia::before {
  content: "🏛️ ";
}

#tag_internet::before {
  content: "🌐 ";
}

#tag_vida::before {
  content: "⏳ ";
}

#tag_nutricao::before {
  content: "🥩 ";
}

/* Buttons 88x31 */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.buttons a {
  display: block;
  line-height: 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    margin: 10px auto;
  }

  main {
    margin: 0 10px;
    padding: 15px;
  }

  h1 {
    font-size: 1.75em;
  }

  .article-navigation {
    display: block;
  }

  .article-navigation a {
    display: block;
    margin-bottom: 10px;
  }

  .category-list li {
    display: block;
    margin: 0 0 8px;
  }
}