/* Estilos Terminal para Changelog Tiempo Escaso */
:root {
  /* Fondo negro consola profundo */
  --background: #0c0e14;
  --foreground: #e6edf3;
  /* Acento verde fósforo estilo terminal retro */
  --accent: #00ff66;
  --font-size: 1rem;
  --line-height: 1.6em;
  --radius: 2px;
}

/* Tipografía de consola monoespaciada para todo el sitio */
body, code, kbd, pre, samp {
  font-family: "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace !important;
}

/* Prompt de la cabecera */
.logo {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.5px;
  background-color: var(--accent) !important;
  color: #000000 !important;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

/* Botones de acción estilo consola */
.button, .read-more {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  font-family: inherit;
  transition: all 0.15s ease-in-out;
}

.button:hover, .read-more:hover {
  background: var(--accent) !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.5);
}

/* Badges de proyecto y tipo en posts */
.post-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 10px;
}

.post-badge {
  display: inline-block;
  padding: 1px 7px;
  font-size: 0.82rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
}

.badge-project {
  border: 1px solid #58a6ff;
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.08);
}
.badge-project:hover {
  background: #58a6ff;
  color: #0c0e14;
}

.badge-type {
  border: 1px solid #e3b341;
  color: #e3b341;
  background: rgba(227, 179, 65, 0.08);
}
.badge-type:hover {
  background: #e3b341;
  color: #0c0e14;
}

/* Resaltado de enlaces */
a {
  color: var(--accent);
}
a:hover {
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.6);
}

/* Bloques de código con borde terminal */
pre {
  border: 1px solid rgba(0, 255, 102, 0.3) !important;
  background: #050608 !important;
}

/* Línea de cabecera con efecto terminal */
.header__logo::after {
  background: repeating-linear-gradient(90deg, var(--accent), var(--accent) 3px, transparent 0, transparent 8px) !important;
  opacity: 0.7;
}

/* ========================================================
   Layout de 2 Columnas para Changelog (Sidebar Derecho)
   ======================================================== */
.container {
  max-width: 1140px !important;
  margin: 0 auto !important;
  border-right: none !important;
}

.changelog-layout {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.changelog-layout__posts {
  flex: 1 1 0;
  min-width: 0;
  order: 1;
}

.changelog-layout__sidebar {
  flex: 0 0 320px;
  width: 320px;
  position: sticky;
  top: 24px;
  order: 2;
}

/* ========================================================
   Monitor CRT Retro con Efecto Fósforo Verde (SC-033)
   ======================================================== */
.crt-monitor {
  margin: 0.5rem 0 2rem 0;
  border-radius: 20px !important;
  background: #050805 !important;
  border: 3px solid #00ff66 !important;
  box-shadow: 
    0 0 20px rgba(0, 255, 102, 0.35),
    inset 0 0 30px rgba(0, 255, 102, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.6) !important;
  position: relative;
  overflow: hidden;
}

/* Bisel interno de pantalla curva */
.crt-bezel {
  padding: 14px;
  background: radial-gradient(circle at center, #0f1812 0%, #060a07 100%);
  border-radius: 17px;
  position: relative;
}

/* Líneas de barrido scanline de televisor / monitor CRT */
.crt-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.2) 0px,
    rgba(0, 0, 0, 0.2) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.6;
  z-index: 1;
}

.crt-screen {
  position: relative;
  z-index: 2;
}

/* Barra superior de estado CRT */
.crt-screen__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 255, 102, 0.3);
  margin-bottom: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.5px;
}

.crt-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crt-status__indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: crtPulse 1.8s infinite;
}

@keyframes crtPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.crt-status__text {
  color: var(--accent);
  font-weight: 700;
}

.crt-screen__model {
  color: #8b949e;
  font-size: 0.72rem;
}

/* Línea de comando con efecto de escritura en consola */
.crt-prompt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 0.88rem;
  background: rgba(0, 255, 102, 0.05);
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 102, 0.15);
}

.crt-prompt__symbol {
  color: var(--accent);
  font-weight: 700;
}

.crt-typing-text {
  color: #e6edf3;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 0;
  animation: crtTyping 1.4s steps(22, end) forwards;
}

@keyframes crtTyping {
  from { width: 0; }
  to { width: 22.5ch; }
}

.crt-cursor {
  color: var(--accent);
  animation: crtBlink 0.8s step-end infinite;
}

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

/* Tarjetas cuadradas de canales principales con esquinas redondeadas */
.crt-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.crt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--accent) !important;
  background: rgba(0, 255, 102, 0.04);
  color: var(--accent) !important;
  text-decoration: none !important;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.12);
  transition: all 0.18s ease-in-out;
}

.crt-card__icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.18s ease-in-out;
}

.crt-card__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.crt-card__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.crt-card__account {
  font-size: 0.80rem;
  color: var(--accent);
  opacity: 0.9;
}

/* Hover de tarjeta CRT fósforo verde */
.crt-card:hover {
  background: var(--accent) !important;
  color: #060a07 !important;
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.6) !important;
  transform: translateY(-2px);
}

.crt-card:hover .crt-card__name,
.crt-card:hover .crt-card__account,
.crt-card:hover .crt-card__icon {
  color: #060a07 !important;
  fill: #060a07 !important;
}

.crt-card:hover .crt-card__icon {
  transform: scale(1.1);
}

/* Sección Secundaria dentro del CRT */
.crt-secondary {
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 255, 102, 0.25);
}

.crt-secondary__prompt {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 0.80rem;
  color: #8b949e;
}

.crt-secondary__typing {
  color: #c9d1d9;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  width: 0;
  animation: crtTypingSec 1.5s steps(25, end) 1.2s forwards;
}

@keyframes crtTypingSec {
  from { width: 0; }
  to { width: 25.5ch; }
}

.crt-cursor-mini {
  color: var(--accent);
  font-weight: 700;
  animation: crtBlink 0.8s step-end infinite;
}

.crt-secondary__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crt-card-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.80rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--accent) !important;
  background: rgba(0, 255, 102, 0.05);
  color: var(--accent) !important;
  text-decoration: none !important;
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.1);
  transition: all 0.15s ease-in-out;
}

.crt-card-mini__icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
  fill: currentColor;
  flex-shrink: 0;
}

.crt-card-mini__name {
  color: #ffffff;
}

.crt-card-mini__account {
  color: var(--accent);
}

.crt-card-mini:hover {
  background: var(--accent) !important;
  color: #060a07 !important;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.5) !important;
}

.crt-card-mini:hover .crt-card-mini__name,
.crt-card-mini:hover .crt-card-mini__account,
.crt-card-mini:hover .crt-card-mini__icon {
  color: #060a07 !important;
  fill: #060a07 !important;
}

/* Adaptación para pantallas móviles y tablets */
@media (max-width: 880px) {
  .changelog-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  
  .changelog-layout__sidebar {
    order: -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    position: static !important;
  }

  .changelog-layout__posts {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
  }

  .crt-monitor {
    margin: 0.5rem 0 1.5rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .crt-cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .crt-card {
    flex: 1 1 200px !important;
  }
}

@media (max-width: 520px) {
  .crt-cards {
    flex-direction: column !important;
  }
  
  .crt-card {
    flex: 1 1 100% !important;
  }

  .crt-bezel {
    padding: 10px !important;
  }

  .crt-prompt__symbol,
  .crt-typing-text {
    font-size: 0.85rem !important;
  }
}


