/* ===================================================
   estilo retro tipo imageboard - webcomic site
   =================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: #eef2ff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

a { color: #34345c; }
a:visited { color: #34345c; }
a:hover { color: #dd0000; text-decoration: underline; }

/* ---------- banner superior ---------- */
.banner {
  background: #af0a0f;
  color: #fff;
  text-align: center;
  padding: 14px 8px 10px 8px;
  border-bottom: 4px solid #800000;
}
.banner h1 {
  margin: 0;
  font-family: "Trebuchet MS", Tahoma, sans-serif;
  font-size: 34px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #550000;
}
.banner .subtitle {
  font-size: 11px;
  color: #ffe0e0;
  margin-top: 4px;
  font-style: italic;
}

/* ---------- barra de navegacion tipo boards ---------- */
.navbar {
  background: #98e;
  border-bottom: 1px solid #34345c;
  padding: 6px 10px;
  font-size: 12px;
  text-align: center;
}
.navbar a {
  color: #fff;
  margin: 0 8px;
  font-weight: bold;
  text-decoration: none;
}
.navbar a:hover {
  color: #ffe;
  text-decoration: underline;
}
.navbar a.active {
  text-decoration: underline;
  color: #fff9c4;
}

/* ---------- info bar (breadcrumb tipo board) ---------- */
.infobar {
  background: #d6daf0;
  border-bottom: 1px solid #b7c5d9;
  padding: 4px 10px;
  font-size: 11px;
  color: #34345c;
}

/* ---------- contenedor principal ---------- */
.container {
  max-width: 900px;
  margin: 16px auto;
  padding: 0 10px 40px 10px;
}

/* ---------- caja tipo "post" ---------- */
.post {
  background: #d6daf0;
  border: 1px solid #b7c5d9;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 2px;
}
.post .post-header {
  font-size: 12px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #b7c5d9;
  padding-bottom: 4px;
}
.post .post-header .name {
  color: #117743;
  font-weight: bold;
}
.post .post-header .date {
  color: #555;
  margin-left: 6px;
}
.post .post-header .id {
  color: #34345c;
  margin-left: 6px;
}
.greentext { color: #789922; }

/* ---------- titulos de seccion ---------- */
h2.section-title {
  background: #af0a0f;
  color: #fff;
  padding: 5px 10px;
  font-size: 15px;
  margin: 20px 0 10px 0;
  border: 1px solid #800000;
}

/* ---------- grilla de comics / thumbnails ---------- */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thread {
  background: #f0e0d6;
  border: 1px solid #d9b8a3;
  padding: 10px;
  display: flex;
  gap: 12px;
}
.thread img.thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  background: #ccc;
  border: 1px solid #999;
  flex-shrink: 0;
}
.thread .thread-body { flex: 1; }
.thread .thread-title {
  font-weight: bold;
  color: #af0a0f;
  margin-bottom: 4px;
}
.thread .thread-meta {
  font-size: 11px;
  color: #555;
  margin-bottom: 6px;
}

/* ---------- galeria ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.gallery-grid .g-item {
  background: #fff;
  border: 1px solid #b7c5d9;
  padding: 4px;
  text-align: center;
}
.gallery-grid .g-item .ph {
  width: 100%;
  aspect-ratio: 1/1;
  background: repeating-linear-gradient(45deg,#d6daf0,#d6daf0 8px,#eef2ff 8px,#eef2ff 16px);
  border: 1px dashed #b7c5d9;
  margin-bottom: 4px;
}

/* ---------- lector de comic ---------- */
.reader {
  text-align: center;
  background: #fff;
  border: 1px solid #b7c5d9;
  padding: 12px;
}
.reader .page-image {
  max-width: 100%;
  border: 1px solid #999;
  background: repeating-linear-gradient(45deg,#eee,#eee 10px,#ddd 10px,#ddd 20px);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 13px;
}
.reader-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
}
.reader-nav a {
  background: #98e;
  color: #fff;
  padding: 4px 10px;
  text-decoration: none;
  border: 1px solid #34345c;
}
.reader-nav a:hover { background: #af0a0f; }

/* ---------- footer ---------- */
.sitefooter {
  text-align: center;
  font-size: 10px;
  color: #555;
  padding: 14px;
  border-top: 1px solid #b7c5d9;
  margin-top: 30px;
  background: #d6daf0;
}

/* ---------- misc ---------- */
blockquote.quote {
  border-left: 3px solid #b7c5d9;
  margin: 6px 0;
  padding-left: 8px;
  color: #333;
}
.tag {
  display: inline-block;
  background: #af0a0f;
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  margin-right: 4px;
  border-radius: 2px;
}
hr.dashed { border: none; border-top: 1px dashed #b7c5d9; margin: 14px 0; }
