
/* =================================
   NOVELIA - ESTILO GENERAL
   Inspirado en Catbox.moe
================================= */

:root {
  color-scheme: light;

  --bg: #eeedf2;
  --fg: #292631;
  --link: #0000ee;
  --visited: #551a8b;
  --purple: #800080;
  --panel: #ffffff;
  --border: #d5d1dc;
}

/* RESET */

* {
  box-sizing: border-box;
}

/* FONDO */

body {
  margin: 0;
  padding: 32px 16px;

  background-color: var(--bg);

  /* Patrón sutil */
  background-image:
    radial-gradient(#d8d3e0 0.8px, transparent 0.8px);

  background-size: 18px 18px;

  color: var(--fg);
  font: 16px/1.5 Helvetica, Arial, sans-serif;
}

/* CONTENEDOR */

.page {
  width: 100%;
  max-width: 680px;

  margin: 0 auto;
  padding: 24px;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* CABECERA */

.site-header {
  margin-bottom: 16px;
}

h1 {
  font-size: 32px;
  margin: 8px 0;
  color: var(--purple);
}

h2 {
  font-size: 20px;
  margin: 18px 0 6px;
}

/* ENLACES */

a {
  color: var(--link);
}

a:visited {
  color: var(--visited);
}

/* LISTAS */

ul {
  margin: 6px 0;
  padding-left: 24px;
}

li {
  margin-bottom: 2px;
}

/* SEPARADORES */

hr {
  border: 0;
  border-top: 2px groove #ffffff;
  margin: 18px 0;
}

/* SELECTOR DE IDIOMA */

.language-selector {
  text-align: right;
  margin-bottom: 12px;
}

.language-selector a {
  margin-left: 8px;
}

/* DESCARGAS */

.downloads {
  margin-top: 18px;
}

/* DISCORD */

.discord-section {
  margin-top: 20px;
}

.discord-link {
  display: inline-block;
  padding: 7px 12px;

  background: #5865f2;
  color: #ffffff !important;

  border: 1px solid #404ccc;
  border-radius: 3px;

  text-decoration: none;
  font-weight: bold;
}

.discord-link:hover {
  background: #4752c4;
}

.discord-link:visited {
  color: #ffffff;
}

/* TEXTO PEQUEÑO */

small {
  font-size: 13px;
}

/* TEXTO PARPADEANTE */

.blink {
  animation: blink 1s steps(1) infinite;
  color: #ff0000;
  font-weight: bold;
}

@keyframes blink {
  50% {
    visibility: hidden;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  .blink {
    animation: none;
  }
}

/* MÓVILES */

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .page {
    padding: 16px;
  }

  h1 {
    font-size: 28px;
  }
}

/* CAPTURAS DE PANTALLA */

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.screenshot-gallery figure {
  margin: 0;
  padding: 6px;
  background: #f5f4f7;
  border: 1px solid var(--border);
}

.screenshot-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
}

.screenshot-gallery figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  color: #555;
}

@media (max-width: 480px) {
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
}

/* EFECTO DE AMPLIACIÓN DE CAPTURAS */

.screenshot-gallery img {
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.screenshot-gallery img:hover {
  opacity: 0.85;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;

  background: rgba(0, 0, 0, 0.88);

  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 90vh;
  width: auto;
  height: auto;

  object-fit: contain;
  border: 2px solid white;
  background: white;

  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;

  color: white !important;
  font-size: 40px;
  text-decoration: none;
  font-weight: bold;
}

.lightbox-close:hover {
  color: #ccc !important;
}