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

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: 'IBM Plex Mono', 'Courier New', 'Lucida Console', monospace;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.screen {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 25px;
  border-left: 1px solid #333;
  border-right: 1px solid #333;
  min-height: 100vh;
}

/* Logo Container */
.logo-container {
  text-align: center;
  padding: 20px 0;
  width: 100%;
  display: block;
  text-decoration: none;
}

.site-logo {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  filter: grayscale(100%) contrast(120%);
  animation: crt-flicker 2s infinite;
}

@keyframes crt-flicker {
  0%   { opacity: 1; }
  7%   { opacity: 0.94; }
  10%  { opacity: 1; }
  27%  { opacity: 0.97; }
  31%  { opacity: 0.9; }
  34%  { opacity: 1; }
  52%  { opacity: 0.95; }
  55%  { opacity: 1; }
  77%  { opacity: 0.91; }
  82%  { opacity: 1; }
  100% { opacity: 1; }
}

/* Menu Bar */
.menu-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 18px;
  border-bottom: 1px solid #222;
  margin-bottom: 0;
}

.menu-link {
  color: #888;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 5px 10px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.menu-link:hover {
  color: #fff;
  border-color: #333;
}

.menu-link.active {
  color: #fff;
  border-color: #333;
}

.category-title {
  color: #fff;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 28px;
}

/* Terminal Bar */
.terminal-bar {
  background: #111;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 12px 20px;
  color: #999;
  font-size: 14px;
  margin-bottom: 35px;
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Content */
.content {
  padding: 0;
}

/* Post */
.post {
  border-bottom: 1px solid #222;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}

.post-tag {
  color: #666;
  letter-spacing: 1px;
}

.post-date {
  color: #555;
  font-variant-numeric: tabular-nums;
}

.post-title {
  color: #fff;
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: color 0.2s;
}

.post-title:hover {
  color: #ccc;
}

.post-subtitle {
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
  font-style: italic;
}

.post-excerpt {
  color: #ccc;
  font-size: 15px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.post-expandable {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  padding-left: 12px;
}

.post-expandable.expanded {
  max-height: 2000px;
  opacity: 1;
}

.post-body-text {
  color: #bbb;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.post-details {
  display: flex;
  gap: 25px;
  margin-bottom: 18px;
  font-size: 12px;
  color: #666;
  letter-spacing: 0.5px;
}

.detail-item {
  padding: 3px 0;
}

/* Read More Button */
.read-more {
  color: #000;
  background: #fff;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  margin-top: 18px;
  border: 1px solid #fff;
  transition: all 0.2s;
}

.read-more:hover {
  background: #000;
  color: #fff;
}

/* Loading & Empty */
.loading, .empty {
  color: #666;
  font-size: 14px;
  text-align: center;
  padding: 40px;
}

/* Article Image */
.post-image {
  margin-top: 15px;
}

.post-image img {
  max-width: 100%;
  border: 1px solid #333;
}

/* Markdown Content - colorido y legible */
.post-body-text {
  font-size: 16px;
  line-height: 1.8;
}

.post-body-text h1,
.post-body-text h2,
.post-body-text h3 {
  color: #fff;
  margin: 20px 0 12px;
}

.post-body-text h1 { font-size: 24px; color: #f0f0f0; }
.post-body-text h2 { font-size: 20px; color: #e0e0e0; }
.post-body-text h3 { font-size: 17px; color: #d0d0d0; }

.post-body-text p {
  color: #ddd;
  font-size: 16px;
  margin-bottom: 14px;
  line-height: 1.8;
}

.post-body-text img {
  max-width: 100%;
  border: 1px solid #333;
  margin: 10px 0;
}

.post-body-text strong {
  color: #fff;
  font-weight: bold;
}

.post-body-text em {
  color: #ccc;
  font-style: italic;
}

.post-body-text del {
  color: #888;
}

.post-body-text a {
  color: #5ab5ff;
  text-decoration: underline;
}

.post-body-text a:hover {
  color: #8acdff;
}

.post-body-text code {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 2px 6px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 14px;
  color: #ffd15a;
}

.post-body-text pre {
  background: #111;
  border: 1px solid #333;
  padding: 15px;
  overflow-x: auto;
  margin: 15px 0;
}

.post-body-text pre code {
  background: none;
  border: none;
  padding: 0;
  color: #a8ff5a;
  font-size: 14px;
}

.post-body-text blockquote {
  border-left: 3px solid #5ab5ff;
  padding-left: 15px;
  color: #bbb;
  margin: 15px 0;
  font-style: italic;
}

.post-body-text ul,
.post-body-text ol {
  padding-left: 25px;
  margin: 15px 0;
  color: #ddd;
  font-size: 16px;
}

.post-body-text li {
  margin-bottom: 6px;
}

.post-body-text hr {
  border: none;
  border-top: 1px solid #333;
  margin: 20px 0;
}

.post-body-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.post-body-text th,
.post-body-text td {
  border: 1px solid #333;
  padding: 10px;
  color: #ddd;
  font-size: 15px;
}

.post-body-text th {
  background: #161616;
  color: #fff;
  font-weight: bold;
}

/* Terminal Code Box */
.post-code {
  background: #0a0a0a;
  border: 1px solid #222;
  padding: 15px 18px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 14px;
  color: #888;
  line-height: 1.8;
  overflow-x: auto;
}

.post-code code {
  white-space: pre;
}

/* Bottom Bar */
.bottom-bar {
  border-top: 1px solid #333;
  padding: 18px 0;
  display: flex;
  justify-content: center;
  font-size: 14px;
  color: #555;
  letter-spacing: 1px;
  margin-top: 35px;
}

/* Responsive */
@media (max-width: 600px) {
  .screen {
    padding: 18px 15px;
  }

  .ascii-logo {
    font-size: 6px;
  }

  .post-details {
    flex-direction: column;
    gap: 8px;
  }

  .terminal-bar {
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* Full Article Page */
.post-full {
  padding-bottom: 25px;
}

.post-title-full {
  color: #fff;
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.post-subtitle-full {
  color: #888;
  font-size: 16px;
  margin-bottom: 20px;
  font-style: italic;
}

.post-cover {
  margin-bottom: 25px;
}

.post-cover img {
  max-width: 100%;
  border: 1px solid #333;
}

.post-content-full {
  color: #ddd;
  font-size: 17px;
  line-height: 1.9;
}

.post-content-full h1,
.post-content-full h2,
.post-content-full h3 {
  color: #fff;
  margin: 25px 0 15px;
}

.post-content-full h1 { font-size: 26px; color: #f0f0f0; }
.post-content-full h2 { font-size: 22px; color: #e0e0e0; }
.post-content-full h3 { font-size: 19px; color: #d0d0d0; }

.post-content-full p {
  margin-bottom: 18px;
  color: #ddd;
  line-height: 1.9;
}

.post-content-full img {
  max-width: 100%;
  border: 1px solid #333;
  margin: 15px 0;
}

.post-content-full strong {
  color: #fff;
  font-weight: bold;
}

.post-content-full em {
  color: #ccc;
  font-style: italic;
}

.post-content-full del {
  color: #888;
}

.post-content-full a {
  color: #5ab5ff;
  text-decoration: underline;
}

.post-content-full a:hover {
  color: #8acdff;
}

.post-content-full code {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 3px 8px;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-size: 15px;
  color: #ffd15a;
}

.post-content-full pre {
  background: #111;
  border: 1px solid #333;
  padding: 18px;
  overflow-x: auto;
  margin: 18px 0;
}

.post-content-full pre code {
  background: none;
  border: none;
  padding: 0;
  color: #a8ff5a;
  font-size: 15px;
}

.post-content-full blockquote {
  border-left: 3px solid #5ab5ff;
  padding-left: 18px;
  color: #ccc;
  margin: 18px 0;
  font-style: italic;
  font-size: 16px;
}

.post-content-full ul,
.post-content-full ol {
  padding-left: 25px;
  margin: 18px 0;
  color: #ddd;
  font-size: 17px;
}

.post-content-full li {
  margin-bottom: 8px;
}

.post-content-full hr {
  border: none;
  border-top: 1px solid #333;
  margin: 25px 0;
}

.post-content-full table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.post-content-full th,
.post-content-full td {
  border: 1px solid #333;
  padding: 10px;
  text-align: left;
  color: #ddd;
}

.post-content-full th {
  background: #161616;
  color: #fff;
  font-weight: bold;
}

/* Navigation */
.post-nav {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #222;
}

.nav-button {
  color: #000;
  background: #fff;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  border: 1px solid #fff;
  transition: all 0.2s;
}

.nav-button:hover {
  background: #000;
  color: #fff;
}

/* Section Titles */
.section-title {
  color: #888;
  font-size: 13px;
  font-weight: normal;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* Navigation Button */
.post-nav {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #222;
}

.nav-button {
  color: #000;
  background: #fff;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  border: 1px solid #fff;
  transition: all 0.2s;
}

.nav-button:hover {
  background: #000;
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: #333;
}

::selection {
  background: #fff;
  color: #000;
}