/* Foros de Centro Pokémon — archivo. Look inspired by the classic vBulletin 4 skin. */
:root {
  --red: #c62828;
  --red-dark: #8e1b1b;
  --red-light: #ef5350;
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --link: #1a4f8b;
  --link-hover: #c62828;
  --row: #ffffff;
  --row-alt: #f4f6f9;
  --line: #c9d0d8;
  --line-soft: #e1e6ec;
  --head: linear-gradient(#e2e8ef, #cfd8e2);
  --page-bg: #e4e7eb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font: 13px/1.45 Tahoma, Calibri, Verdana, Geneva, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; }
.page { max-width: 1180px; margin: 0 auto; padding: 0 12px 24px; }
.muted { color: var(--muted); }

/* header + navigation */
.header {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px;
  background: linear-gradient(#d73a3a, var(--red-dark));
  border-radius: 0 0 6px 6px;
  color: #fff;
}
.logo img { display: block; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.header-title { font: bold 22px/1.2 "Trebuchet MS", Tahoma, sans-serif; text-shadow: 0 1px 1px rgba(0, 0, 0, .4); }
.header-sub { opacity: .9; font-size: 13px; }
.navbar {
  display: flex; flex-wrap: wrap; gap: 2px;
  margin-top: 8px; padding: 0 6px;
  background: linear-gradient(#4a4f57, #2f3338);
  border-radius: 5px;
}
.navbar a {
  color: #f1f1f1; font-weight: bold; padding: 8px 12px; border-radius: 4px;
}
.navbar a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.navbar-right { margin-left: auto; }
.notice {
  margin: 10px 0; padding: 8px 12px;
  background: #fff8e1; border: 1px solid #f0d58a; border-radius: 4px;
  color: #5d4a12;
}
.breadcrumb { margin: 10px 2px 12px; font-size: 12px; color: var(--muted); }
.breadcrumb .sep { margin: 0 6px; color: #9aa3ad; }
.breadcrumb-current { display: block; margin: 4px 0 0; font-size: 20px; color: var(--ink); text-wrap: balance; }
.welcome { margin: 4px 2px 14px; }
.welcome h1 { margin: 0 0 4px; font-size: 22px; }
.welcome p { margin: 0; color: var(--muted); max-width: 70ch; }
.forum-intro { margin: -4px 2px 12px; color: var(--muted); }

/* blocks */
.block {
  margin-bottom: 14px;
  background: var(--row);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.blockhead {
  margin: 0; padding: 8px 12px;
  background: linear-gradient(var(--red-light) -60%, var(--red));
  color: #fff; font-size: 14px; font-weight: bold;
  border-bottom: 1px solid var(--red-dark);
}
.blockhead a { color: #fff; }
.blockhead-desc { display: block; font-weight: normal; font-size: 12px; opacity: .9; }
.blockbody { padding: 12px; }
.stats-box { line-height: 1.8; }

/* forum + thread tables */
table.forums, table.threads, table.members { width: 100%; border-collapse: collapse; }
table.forums th, table.threads th, table.members th {
  padding: 5px 8px; text-align: left; font-size: 11px; color: #4a5562;
  background: var(--head); border-bottom: 1px solid var(--line);
}
table.forums td, table.threads td, table.members td {
  padding: 8px; vertical-align: top; border-bottom: 1px solid var(--line-soft);
}
table.forums tbody tr:nth-child(even), table.threads tbody tr:nth-child(even), table.members tbody tr:nth-child(even) {
  background: var(--row-alt);
}
td.icon, th.icon { width: 34px; text-align: center; }
.status-icon {
  display: inline-block; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, #ef9a9a 19% 55%, var(--red) 56%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.status-icon.closed { background: radial-gradient(circle at 35% 35%, #fff 0 18%, #cfd3d8 19% 55%, #8c939b 56%); }
.forum-title, .thread-title { font-weight: bold; font-size: 14px; }
.forum-desc { color: var(--muted); font-size: 12px; margin-top: 2px; }
.subforums { font-size: 11px; margin-top: 4px; }
td.stats, th.stats { width: 130px; font-size: 11px; white-space: nowrap; }
td.last, th.last { width: 220px; font-size: 11px; }
.lastpost-title { font-weight: bold; }
.lastpost .date { color: var(--muted); }
.thread-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
tr.sticky { background: #fff7e6 !important; }
.tag {
  display: inline-block; padding: 0 5px; margin-right: 4px; border-radius: 3px;
  background: #e3e8ee; color: #405065; font-size: 10px; font-weight: bold; text-transform: uppercase; vertical-align: 1px;
}
.tag-sticky { background: #ffe0a3; color: #7a4b00; }
.minipages { font-size: 11px; margin-left: 4px; }
td.rank, th.rank { width: 50px; text-align: right; color: var(--muted); }
td.member { display: flex; align-items: center; gap: 8px; }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 8px 0; justify-content: flex-end; }
.pagination a, .pagination span {
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 12px;
}
.pagination .current { background: var(--red); border-color: var(--red-dark); color: #fff; font-weight: bold; }
.pagination .gap, .pagination .pagination-label { border-color: transparent; background: none; color: var(--muted); }

/* posts (postbit legacy) */
.post { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.post-comment { margin-left: 40px; }
.post-head {
  display: flex; justify-content: space-between; padding: 5px 10px;
  background: var(--head); border-bottom: 1px solid var(--line); font-size: 11px; color: #4a5562;
}
.post-num { font-weight: bold; color: #4a5562; }
.post-row { display: flex; }
.userinfo {
  flex: 0 0 190px; padding: 10px; background: #f7f8fa; border-right: 1px solid var(--line-soft);
  text-align: center; overflow-wrap: anywhere;
}
.username { font-size: 14px; font-weight: bold; }
.uname { font-weight: inherit; }
.uname.guest { color: var(--muted); }
.usertitle { font-size: 11px; color: var(--muted); margin: 2px 0 6px; }
.avatar { display: block; margin: 6px auto; max-width: 120px; max-height: 120px; border-radius: 4px; }
.avatar-sm { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; flex: none; }
.userstats { margin: 6px 0 0; font-size: 11px; text-align: left; }
.userstats dt { color: var(--muted); }
.userstats dd { margin: 0 0 4px; }
.post-content { flex: 1; min-width: 0; padding: 10px 14px; }
.post-title { margin: 0 0 8px; padding-bottom: 6px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.post-body { font-size: 13px; overflow-wrap: anywhere; }
.signature {
  margin-top: 14px; padding-top: 8px; border-top: 1px dashed #c4ccd6;
  max-height: 260px; overflow: hidden; font-size: 12px;
}
/* An opened spoiler is the reader asking for more: drop the height cap. */
.signature:has(details[open]) { max-height: none; }
.signature img { max-height: 220px; }
.signature-label { font-weight: bold; margin-bottom: 4px; }
.profile-sig { max-height: none; border-top: 0; margin-top: 0; }

/* bbcode output */
.bbimg { max-width: 100%; height: auto; vertical-align: middle; }
.bbimg-missing { display: inline-block; padding: 2px 6px; font-size: 11px; color: var(--muted); background: #f1f3f5; border: 1px dashed #c4ccd6; border-radius: 3px; }
.smilie { vertical-align: middle; max-height: 60px; }
.bbquote { margin: 8px 0; border: 1px solid #cfd8e2; border-left: 3px solid var(--red); border-radius: 3px; background: #f6f8fb; }
.bbquote-h { padding: 4px 8px; font-size: 11px; color: #4a5562; border-bottom: 1px solid #e1e6ec; }
.bbquote-b { padding: 8px; }
.bbquote-go { margin-left: 4px; }
.bbcode-h { margin-top: 8px; font-size: 11px; font-weight: bold; color: #4a5562; }
pre.bbcode { margin: 2px 0 8px; padding: 8px; max-height: 360px; overflow: auto; background: #f6f8fb; border: 1px solid #cfd8e2; font: 12px/1.4 Consolas, Menlo, monospace; white-space: pre-wrap; }
.bbspoiler { margin: 6px 0; border: 1px solid #cfd8e2; border-radius: 3px; background: #fbfbfc; }
.bbspoiler summary { padding: 4px 8px; cursor: pointer; font-weight: bold; font-size: 12px; color: #4a5562; }
.bbspoiler > div { padding: 8px; border-top: 1px solid #e1e6ec; }
.bbblack { background: #000; color: #000; }
.bbblack:hover { color: #fff; }
.bbindent { margin-left: 2em; }
.bbnote { padding: 6px 8px; margin: 6px 0; border: 1px solid #d32e2e; background: #ffc8c8; border-radius: 5px; color: #000; }
.bbcell { padding: 3px; border: 1px solid #d8d8d8; background: #fff; }
.bbbutton { display: inline-block; padding: 4px 10px; background: var(--red); color: #fff; border-radius: 2px; font-weight: bold; font-size: 12px; }
.bbrainbow { background: linear-gradient(90deg, #e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #8e24aa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bbmarquee { overflow: hidden; }
.bbmissing { color: var(--muted); font-size: 11px; }
.bbtable-wrap { overflow-x: auto; }
.bbtable { border-collapse: collapse; margin: 6px 0; }
.bbtable td, .bbtable th { border: 1px solid #cfd8e2; padding: 4px 6px; }
.bbh { margin: 10px 0 4px; }
.mention { font-weight: bold; }
.yt { position: relative; max-width: 480px; aspect-ratio: 16 / 9; margin: 6px 0; background: #000; border-radius: 4px; overflow: hidden; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 12px; background: #e62117; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-link { position: absolute; left: 8px; bottom: 6px; font-size: 11px; color: #fff; text-shadow: 0 1px 2px #000; }
.yt iframe { width: 100%; height: 100%; border: 0; }
.poll { margin: 10px 0; padding: 8px; border: 1px solid #cfd8e2; border-radius: 4px; background: #f6f8fb; max-width: 520px; }
.poll-head { font-weight: bold; margin-bottom: 6px; }
.poll-option { display: grid; grid-template-columns: 1fr 140px 80px; gap: 8px; align-items: center; margin: 3px 0; font-size: 12px; }
.poll-bar { height: 10px; background: #e1e6ec; border-radius: 5px; overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--red); }
.poll-count { text-align: right; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.gallery figcaption { font-size: 11px; color: var(--muted); }
.attachments { margin: 12px 0 0; border: 1px solid #cfd8e2; border-radius: 4px; }
.attachments legend { font-size: 11px; font-weight: bold; color: #4a5562; padding: 0 4px; }
.attachments img { max-height: 160px; margin: 4px; }

/* profile */
.profile-card { display: flex; gap: 16px; align-items: flex-start; padding: 14px; }
.profile-card .avatar { margin: 0; }
.profile-name { font-size: 20px; font-weight: bold; }
.profile-stats { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 0; font-size: 12px; }
.profile-stats dt { color: var(--muted); }
.profile-stats dd { margin: 0; }
.vm { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.vm:last-child { border-bottom: 0; }
.vm-head { font-size: 12px; margin-bottom: 2px; }
.vm-body { min-width: 0; overflow-wrap: anywhere; }
.date { color: var(--muted); font-size: 11px; }

/* search */
.search-form { display: flex; flex-wrap: wrap; gap: 6px; }
.search-form input { flex: 1 1 260px; padding: 7px 9px; font: inherit; border: 1px solid var(--line); border-radius: 4px; }
.search-form select, .search-form button { padding: 7px 10px; font: inherit; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.search-form button { background: var(--red); border-color: var(--red-dark); color: #fff; font-weight: bold; cursor: pointer; }
.result { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.result:nth-child(even) { background: var(--row-alt); }
.result-meta { font-size: 11px; color: var(--muted); }

.footer { margin-top: 18px; padding: 12px; text-align: center; font-size: 11px; color: var(--muted); }

@media (max-width: 760px) {
  .header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .logo img { width: 150px; }
  .navbar-right { margin-left: 0; }
  td.icon, th.icon, td.last, th.last { display: none; }
  td.stats, th.stats { width: auto; white-space: normal; }
  .post-row { flex-direction: column; }
  .userinfo { flex: none; display: grid; grid-template-columns: 48px 1fr; gap: 0 10px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .userinfo .avatar { grid-row: 1 / span 3; grid-column: 1; width: 48px; height: 48px; object-fit: cover; margin: 0; }
  .userinfo > a { grid-row: 1 / span 3; grid-column: 1; }
  .userinfo .username, .userinfo .usertitle { grid-column: 2; }
  .userstats { grid-column: 2; display: flex; gap: 10px; margin: 0; }
  .userstats dt { display: none; }
  .post-comment { margin-left: 12px; }
  .poll-option { grid-template-columns: 1fr 80px; }
  .poll-count { grid-column: 1 / -1; text-align: left; }
}
