/* Spoilers: tablón tipo foro. Reutiliza tokens de styles.css y el fondo de tienda.css */
.board {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px var(--gutter) 96px;
}
.board-head { display: grid; gap: 16px; margin-bottom: 40px; }
.board-meta {
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

.threads { display: grid; gap: 10px; }
.thread { list-style: none; }
.thread__link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  background: rgb(17 14 30 / 0.85);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: background-color 0.35s;
}
.thread__link:hover { background: var(--bg-3); }
.thread__link:hover .thread__thumb img { transform: scale(1.05); }
.thread__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.thread__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.thread__main { display: grid; gap: 6px; min-width: 0; }
.thread__meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.thread__badge {
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
}
.thread__title { font-weight: 800; font-stretch: 112%; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
.thread__excerpt { color: var(--ink-2); font-size: 15px; }
.thread__by { display: flex; align-items: center; gap: 8px; padding-right: 10px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.thread__by i { font-size: 20px; color: var(--accent-hi); }
.thread--empty { padding: 32px; color: var(--ink-2); background: var(--bg-2); }

@media (max-width: 760px) {
  .thread__link { grid-template-columns: 1fr; gap: 14px; }
  .thread__by { padding: 0; }
}

/* Publicación */
.post { display: grid; gap: 28px; }
.post[hidden] { display: none; }
.post__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
}
.post__back:hover { color: var(--ink); }
.post__head { display: grid; gap: 12px; }
.post__meta { font-size: 15px; color: var(--ink-2); }
.post__title {
  font-weight: 900;
  font-stretch: 112%;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.post__media {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: var(--navy);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.post__media img { display: block; width: 100%; height: auto; }
.post__zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  color: var(--ink);
  background: rgb(11 9 20 / 0.7);
  opacity: 0;
  transition: opacity 0.3s;
}
.post__media:hover .post__zoom, .post__media:focus-visible .post__zoom { opacity: 1; }
.post__body { display: grid; gap: 16px; max-width: 68ch; }
.post__body p { color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.post__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.post__nav a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  background: var(--bg-2);
}
.post__nav a:hover { background: var(--bg-3); }
.post__nav a span { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.post__next { text-align: right; grid-column: 2; }
.post__discord { color: var(--ink-2); }
.post__discord a { color: var(--accent-hi); }
