/* ============================================================
   Cuckold — foro.css  (estilo phpBB: filas con stats)
   ============================================================ */

.foro-wrap { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; padding: 24px 16px 48px; }
.foro-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.foro-title { font-size: 24px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.foro-crumbs { font-size: 14px; color: var(--text3); margin-bottom: 14px; }
.foro-crumbs a { color: var(--accent2); }
.foro-crumbs span { margin: 0 5px; }
.foro-empty { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 40px 24px; text-align: center; color: var(--text3); }

/* Categorías */
.foro-cats { display: flex; flex-direction: column; gap: 10px; }
.foro-cat { display: grid; grid-template-columns: 48px 1fr auto 180px; align-items: center; gap: 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; text-decoration: none; transition: border-color .2s; }
.foro-cat:hover { border-color: rgba(139,92,246,.4); }
.foro-cat-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg3); color: var(--accent2); display: flex; align-items: center; justify-content: center; }
.foro-cat-icon.sm { width: 36px; height: 36px; border-radius: 10px; }
.foro-cat-main { min-width: 0; }
.foro-cat-name { display: block; font-size: 18px; font-weight: 700; color: var(--text); }
.foro-cat-desc { display: block; font-size: 14px; color: var(--text3); margin-top: 3px; }
.foro-cat-stats { display: flex; flex-direction: column; gap: 2px; text-align: right; font-size: 13px; color: var(--text3); white-space: nowrap; }
.foro-cat-stats b { color: var(--text); font-weight: 700; }
.foro-cat-last { text-align: right; font-size: 13px; overflow: hidden; }
.foro-last-title { display: block; color: var(--text2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foro-last-meta { display: block; color: var(--text3); font-size: 12px; margin-top: 2px; }

/* Temas (lista en una categoría) */
.foro-temas { display: flex; flex-direction: column; gap: 8px; }
.foro-tema { display: grid; grid-template-columns: 44px 1fr auto 120px; align-items: center; gap: 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; text-decoration: none; transition: border-color .2s; }
.foro-tema:hover { border-color: rgba(139,92,246,.4); }
.foro-tema-av { position: relative; width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), #ec4899); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; }
.foro-tema-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.foro-tema-main { min-width: 0; }
.foro-tema-title { display: block; font-size: 16px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foro-tema-meta { display: block; font-size: 13px; color: var(--text3); margin-top: 2px; }
.foro-tema-stats { display: flex; flex-direction: column; gap: 2px; text-align: right; font-size: 13px; color: var(--text3); white-space: nowrap; }
.foro-tema-stats b { color: var(--text); }
.foro-tema-last { text-align: right; font-size: 12px; color: var(--text3); }

/* Tema: posts apilados (autor a la izquierda) */
.foro-tema-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.foro-tema-h1 { display: block; margin-bottom: 0; }
.foro-tema-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.foro-opts { position: relative; }
.foro-opts-btn {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text2); cursor: pointer;
}
.foro-opts-btn:hover { background: var(--bg3); color: var(--text); border-color: var(--accent); }
.foro-opts .nav-menu { top: 46px; }
.foro-post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.foro-post-head .foro-post-meta { margin-bottom: 0; }
.foro-msg-opts { flex-shrink: 0; }
.foro-msg-opts .foro-opts-btn { width: 30px; height: 30px; }
.foro-msg-opts .nav-menu { top: 38px; }
.foro-seguir-btn { flex-shrink: 0; white-space: nowrap; }
.foro-seguir-btn .fs-off, .foro-seguir-btn .fs-on { display: inline-flex; align-items: center; gap: 6px; }
.foro-seguir-btn .fs-on { display: none; }
.foro-seguir-btn.siguiendo { background: var(--bg3); border-color: var(--border); color: var(--text2); }
.foro-seguir-btn.siguiendo .fs-off { display: none; }
.foro-seguir-btn.siguiendo .fs-on { display: inline-flex; }
.foro-posts { display: flex; flex-direction: column; gap: 12px; }
.foro-post { display: grid; grid-template-columns: 160px 1fr; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; }
.foro-post-author { background: var(--bg3); padding: 18px 14px; text-align: center; border-right: 1px solid var(--border); border-radius: 13px 0 0 13px; }
.foro-pa-av { display: inline-flex; position: relative; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #ec4899); align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 24px; margin-bottom: 8px; }
.foro-pa-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.foro-pa-name { display: block; font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; }
.foro-pa-rol { display: block; font-size: 12px; color: var(--accent3); margin-top: 2px; }
.foro-pa-since { display: block; font-size: 11px; color: var(--text3); margin-top: 6px; }
.foro-post-body { padding: 16px 18px; min-width: 0; }
.foro-post-meta { font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.foro-op { color: var(--accent2); font-weight: 600; }
.foro-post-text { font-size: 16px; line-height: 1.6; color: var(--text); word-wrap: break-word; }

/* Responder + nuevo tema */
.foro-reply { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-top: 16px; }
.foro-reply-h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.foro-reply-form textarea { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text); font-family: var(--font); font-size: 15px; outline: none; resize: vertical; }
.foro-reply-form textarea:focus { border-color: var(--accent); }
.foro-reply-form button { margin-top: 12px; }
.foro-form { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }

@media (max-width: 680px) {
  .foro-cat { grid-template-columns: 40px 1fr; }
  .foro-cat-stats, .foro-cat-last { display: none; }
  .foro-tema { grid-template-columns: 40px 1fr auto; }
  .foro-tema-last { display: none; }
  .foro-post { grid-template-columns: 1fr; }
  .foro-post-author { display: flex; align-items: center; gap: 12px; text-align: left; border-right: none; border-bottom: 1px solid var(--border); padding: 12px 16px; border-radius: 13px 13px 0 0; }
  .foro-pa-av { width: 44px; height: 44px; font-size: 18px; margin-bottom: 0; }
  .foro-pa-since { display: none; }
}
