/* ═══════════════════════════════════════════════════════════════
   aDeM0Ri · FOROS (bbPress)
   Migra los foros de la paleta GitHub vieja al sistema del sitio:
   teal #5eead4 + indigo #818cf8 sobre #0b0f19, glass cards.
   Usa selectores de alta especificidad para ganar al CSS inline.
   ═══════════════════════════════════════════════════════════════ */

/* ─── FONDOS: dejar ver los gradientes del sitio ─── */
html body.bbpress,
html body.forum-archive,
html body.single-forum,
html body.single-topic {
    background-color: transparent !important;
}
/* el wrapper recupera el gradiente del sitio (el inline lo pisaba con #000) */
html body.bbpress .wrapper,
html body.forum-archive .wrapper,
html body.single-forum .wrapper,
html body.single-topic .wrapper {
    background: radial-gradient(1100px 480px at 85% -10%, var(--dx-glow, rgba(94,234,212,.16)), transparent 60%),
                radial-gradient(900px 420px at -10% 15%, rgba(129, 140, 248, .12), transparent 55%),
                var(--dx-bg, #0b0f19) !important;
    background-attachment: fixed !important;
}
html body.bbpress .neve-main,
html body.forum-archive .neve-main,
html body.single-forum .neve-main,
html body.single-topic .neve-main,
html body.bbpress .nv-content-wrap,
html body.single-forum .nv-content-wrap,
html body.single-topic .nv-content-wrap {
    background: transparent !important;
}

/* ─── CONTENEDOR ─── */
html body #bbpress-forums {
    background: linear-gradient(150deg, rgba(21, 32, 54, .55), rgba(16, 24, 39, .75)) !important;
    border: 1px solid var(--dx-border, #22304d) !important;
    border-radius: 16px !important;
    color: var(--dx-txt, #e8eefc) !important;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .3) !important;
    padding: 26px !important;
}

/* ─── CABECERAS DE TABLA ─── */
html body #bbpress-forums .bbp-header,
html body #bbpress-forums .bbp-footer {
    background: rgba(11, 15, 25, .65) !important;
    border: 1px solid var(--dx-border, #22304d) !important;
    color: var(--dx-accent, #5eead4) !important;
    text-transform: uppercase !important;
    font-size: .7rem !important;
    letter-spacing: .1em !important;
    border-radius: 8px !important;
}

/* ─── FILAS ─── */
html body #bbpress-forums .bbp-body ul.forum,
html body #bbpress-forums .bbp-body ul.topic,
html body #bbpress-forums .bbp-body div.hentry {
    background: transparent !important;
    border-bottom: 1px solid var(--dx-border, #22304d) !important;
    transition: background .2s ease !important;
}
html body #bbpress-forums .bbp-body ul.forum:hover,
html body #bbpress-forums .bbp-body ul.topic:hover,
html body #bbpress-forums .bbp-body div.hentry:hover {
    background: rgba(94, 234, 212, .05) !important;
}

/* ─── TITULOS ─── */
html body #bbpress-forums a.bbp-forum-title,
html body #bbpress-forums a.bbp-topic-permalink {
    color: var(--dx-accent, #5eead4) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color .16s ease !important;
}
html body #bbpress-forums a.bbp-forum-title:hover,
html body #bbpress-forums a.bbp-topic-permalink:hover {
    color: #ffffff !important;
    text-decoration: none !important;
}

html body #bbpress-forums .bbp-forum-content,
html body #bbpress-forums .bbp-topic-content {
    color: var(--dx-dim, #8ea0bf) !important;
}

/* ─── MIGAS DE PAN ─── */
html body #bbpress-forums .bbp-breadcrumb,
html body #bbpress-forums .bbp-breadcrumb a {
    color: var(--dx-dim, #8ea0bf) !important;
}
html body #bbpress-forums .bbp-breadcrumb a:hover {
    color: var(--dx-accent, #5eead4) !important;
}

/* ─── AVISOS (.bbp-template-notice) ─── */
html body #bbpress-forums .bbp-template-notice {
    background: rgba(251, 191, 36, .07) !important;
    border: 1px solid rgba(251, 191, 36, .3) !important;
    border-left: 3px solid #fbbf24 !important;
    border-radius: 10px !important;
    color: #fcd34d !important;
    padding: 12px 16px !important;
}
html body #bbpress-forums .bbp-template-notice.info {
    background: rgba(94, 234, 212, .05) !important;
    border: 1px solid rgba(94, 234, 212, .18) !important;
    border-left: 3px solid var(--dx-accent, #5eead4) !important;
    color: var(--dx-txt, #e8eefc) !important;
}
html body #bbpress-forums .bbp-template-notice p,
html body #bbpress-forums .bbp-template-notice li {
    color: inherit !important;
    font-size: .85rem !important;
}
html body #bbpress-forums .bbp-template-notice a {
    color: var(--dx-accent, #5eead4) !important;
}

/* ─── BUSCADOR DE FOROS ─── */
html body #bbpress-forums .bbp-search-form {
    clear: both !important;
    margin: 0 0 18px !important;
}
html body #bbpress-forums .bbp-search-form input[type="text"],
html body #bbpress-forums #bbp_search {
    background: rgba(11, 15, 25, .72) !important;
    border: 1px solid var(--dx-border, #22304d) !important;
    border-radius: 9px !important;
    color: var(--dx-txt, #e8eefc) !important;
    padding: 10px 13px !important;
    font-size: .88rem !important;
    min-width: 220px !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
}
html body #bbpress-forums #bbp_search:focus {
    border-color: var(--dx-accent, #5eead4) !important;
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .13) !important;
    outline: none !important;
}
html body #bbpress-forums #bbp_search_submit {
    background: linear-gradient(100deg, var(--dx-accent, #5eead4), var(--dx-accent2, #818cf8)) !important;
    color: #07131a !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    font-size: .78rem !important;
    cursor: pointer !important;
    transition: filter .16s ease, transform .16s ease !important;
    margin-left: 6px !important;
}
html body #bbpress-forums #bbp_search_submit:hover {
    filter: brightness(1.08) !important;
    transform: translateY(-1px) !important;
}

/* ─── FORMULARIO DE LOGIN DE bbPRESS (al pie de foros) ─── */
html body #bbpress-forums fieldset.bbp-form,
html body #bbpress-forums #bbp-login-form {
    background: rgba(11, 15, 25, .45) !important;
    border: 1px solid var(--dx-border, #22304d) !important;
    border-radius: 12px !important;
    padding: 20px !important;
}
html body #bbpress-forums fieldset.bbp-form legend,
html body #bbpress-forums .bbp-login-form legend {
    color: var(--dx-accent, #5eead4) !important;
    font-weight: 700 !important;
    padding: 0 8px !important;
}
html body #bbpress-forums .bbp-login-form label,
html body #bbpress-forums #bbp-login-form label,
html body #bbpress-forums .bbp-username label,
html body #bbpress-forums .bbp-password label {
    color: var(--dx-dim, #8ea0bf) !important;
    font-size: .75rem !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    font-weight: 600 !important;
}
html body #bbpress-forums .bbp-login-form input[type="text"],
html body #bbpress-forums .bbp-login-form input[type="password"],
html body #bbpress-forums #user_login,
html body #bbpress-forums #user_pass {
    background: rgba(11, 15, 25, .72) !important;
    border: 1px solid var(--dx-border, #22304d) !important;
    border-radius: 9px !important;
    color: var(--dx-txt, #e8eefc) !important;
    padding: 10px 12px !important;
}
html body #bbpress-forums .bbp-submit-wrapper button,
html body #bbpress-forums #user-submit,
html body #bbpress-forums .bbp-login-form .button {
    background: linear-gradient(100deg, var(--dx-accent, #5eead4), var(--dx-accent2, #818cf8)) !important;
    color: #07131a !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 11px 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .05em !important;
    cursor: pointer !important;
}
html body #bbpress-forums a.bbp-author-link,
html body #bbpress-forums .bbp-login-links a,
html body #bbpress-forums a.bbp-author-name {
    color: var(--dx-accent2, #818cf8) !important;
}

/* ─── TEXTO GENERAL Y CONTADORES ─── */
html body #bbpress-forums .bbp-topic-meta,
html body #bbpress-forums .bbp-forum-info .bbp-forum-content {
    color: var(--dx-dim, #8ea0bf) !important;
}
html body #bbpress-forums .bbp-topic-started-by,
html body #bbpress-forums .bbp-topic-started-in {
    color: var(--dx-dim, #8ea0bf) !important;
    font-size: .75rem !important;
}
html body #bbpress-forums li.bbp-forum-freshness,
html body #bbpress-forums li.bbp-topic-freshness {
    color: var(--dx-dim, #8ea0bf) !important;
    font-size: .75rem !important;
}
html body #bbpress-forums .bbp-author-avatar img {
    border-radius: 50% !important;
    vertical-align: middle !important;
}

/* ─── RESPUESTAS / POSTS ─── */
html body #bbpress-forums div.bbp-reply-header,
html body #bbpress-forums div.bbp-topic-header {
    background: rgba(11, 15, 25, .55) !important;
    border: 1px solid var(--dx-border, #22304d) !important;
    border-radius: 8px !important;
    color: var(--dx-dim, #8ea0bf) !important;
}
html body #bbpress-forums div.bbp-reply-content,
html body #bbpress-forums div.bbp-topic-content {
    color: var(--dx-txt, #e8eefc) !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    html body #bbpress-forums {
        padding: 14px !important;
        border-radius: 12px !important;
    }
    html body #bbpress-forums .bbp-search-form input[type="text"],
    html body #bbpress-forums #bbp_search {
        min-width: 0 !important;
        width: calc(100% - 90px) !important;
    }
}

/* ═══ CONTENIDO DE DEBATES (topic/reply) ═══ */

html body #bbpress-forums .bbp-topic-content p,
html body #bbpress-forums .bbp-reply-content p {
    color: var(--dx-txt, #e8eefc) !important;
    line-height: 1.65 !important;
}

html body #bbpress-forums .bbp-topic-content strong,
html body #bbpress-forums .bbp-reply-content strong {
    color: #ffffff !important;
}

/* Las voces del debate como tarjetas alternadas */
html body #bbpress-forums .bbp-topic-content blockquote,
html body #bbpress-forums .bbp-reply-content blockquote {
    background: linear-gradient(150deg, rgba(21, 32, 54, .55), rgba(16, 24, 39, .75)) !important;
    border: 1px solid var(--dx-border, #22304d) !important;
    border-left: 3px solid var(--dx-accent, #5eead4) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 14px 0 !important;
    font-style: normal !important;
}

html body #bbpress-forums .bbp-topic-content blockquote p,
html body #bbpress-forums .bbp-reply-content blockquote p {
    margin: 0 !important;
}

html body #bbpress-forums .bbp-topic-content blockquote strong,
html body #bbpress-forums .bbp-reply-content blockquote strong {
    color: var(--dx-accent, #5eead4) !important;
    margin-right: 3px;
}

/* voces alternadas en indigo */
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(even),
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(even) {
    border-left-color: var(--dx-accent2, #818cf8) !important;
}
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(even) strong,
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(even) strong {
    color: var(--dx-accent2, #818cf8) !important;
}

/* links dentro de debates */
html body #bbpress-forums .bbp-topic-content a,
html body #bbpress-forums .bbp-reply-content a {
    color: var(--dx-accent2, #818cf8) !important;
    text-decoration: none !important;
    border-bottom: 1px dotted rgba(129, 140, 248, .5) !important;
    transition: color .16s ease, border-color .16s ease !important;
}
html body #bbpress-forums .bbp-topic-content a:hover,
html body #bbpress-forums .bbp-reply-content a:hover {
    color: #ffffff !important;
    border-bottom-color: var(--dx-accent, #5eead4) !important;
}

/* ═══════════════════════════════════════════════════════════════
   DEBATE · segunda pasada — voces numeradas, previews de sala,
   chips de museo y callout de pregunta
   ═══════════════════════════════════════════════════════════════ */

/* contador de voces (por contenedor de post) */
html body #bbpress-forums .bbp-topic-content,
html body #bbpress-forums .bbp-reply-content { counter-reset: voz; }

html body #bbpress-forums .bbp-topic-content blockquote::before,
html body #bbpress-forums .bbp-reply-content blockquote::before {
    counter-increment: voz;
    content: "voz " counter(voz, decimal-leading-zero);
    display: block;
    font-family: 'Hack Nerd Font', monospace;
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 7px;
}

/* color por voz: 1 teal · 2 indigo · 3 violeta · 4 acero */
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(1),
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(1) { border-left-color: #5eead4 !important; }
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(1)::before,
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(1)::before { color: #5eead4; }
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(1) > p:first-child strong,
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(1) > p:first-child strong { color: #5eead4 !important; }

html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(2),
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(2) { border-left-color: #818cf8 !important; }
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(2)::before,
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(2)::before { color: #818cf8; }
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(2) > p:first-child strong,
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(2) > p:first-child strong { color: #818cf8 !important; }

html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(3),
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(3) { border-left-color: #c084fc !important; }
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(3)::before,
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(3)::before { color: #c084fc; }
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(3) > p:first-child strong,
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(3) > p:first-child strong { color: #c084fc !important; }

html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(4),
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(4) { border-left-color: #8fa3bf !important; }
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(4)::before,
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(4)::before { color: #8fa3bf; }
html body #bbpress-forums .bbp-topic-content blockquote:nth-of-type(4) > p:first-child strong,
html body #bbpress-forums .bbp-reply-content blockquote:nth-of-type(4) > p:first-child strong { color: #8fa3bf !important; }

/* preview de la sala dentro de cada voz */
html body #bbpress-forums .bbp-topic-content blockquote img,
html body #bbpress-forums .bbp-reply-content blockquote img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    border: 1px solid var(--dx-border, #22304d);
    border-radius: 10px;
    margin: 12px 0 2px;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
html body #bbpress-forums .bbp-topic-content blockquote img:hover,
html body #bbpress-forums .bbp-reply-content blockquote img:hover {
    border-color: var(--dx-accent, #5eead4);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
html body #bbpress-forums .bbp-topic-content blockquote a,
html body #bbpress-forums .bbp-reply-content blockquote a {
    border-bottom: none !important;
    text-decoration: none !important;
}

/* chip "// debate abierto" solo en el primer post del debate */
html body #bbpress-forums .loop-item--1 .bbp-reply-content > p:first-of-type::before {
    content: "// debate abierto";
    display: block;
    width: fit-content;
    font-family: 'Hack Nerd Font', monospace;
    font-size: .58rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dx-accent, #5eead4);
    border: 1px solid rgba(94, 234, 212, .35);
    border-radius: 999px;
    padding: 3px 12px;
    margin-bottom: 11px;
}

/* la pregunta final como callout (solo primer post) */
html body #bbpress-forums .loop-item--1 .bbp-reply-content > p:nth-of-type(2) {
    background: linear-gradient(140deg, rgba(94, 234, 212, .06), rgba(129, 140, 248, .06)) !important;
    border: 1px solid var(--dx-border, #22304d);
    border-left: 3px solid var(--dx-accent, #5eead4);
    border-radius: 12px;
    padding: 14px 17px !important;
    margin: 20px 0 16px !important;
    font-size: .95rem !important;
}
html body #bbpress-forums .loop-item--1 .bbp-reply-content > p:nth-of-type(2) strong { color: #ffffff !important; }

/* links del museo como chips (solo primer post) */
html body #bbpress-forums .loop-item--1 .bbp-reply-content > p:last-of-type a {
    display: inline-block;
    background: rgba(129, 140, 248, .08) !important;
    border: 1px solid rgba(129, 140, 248, .4) !important;
    border-radius: 999px;
    padding: 4px 13px;
    margin: 2px 5px 2px 0;
    color: var(--dx-accent2, #818cf8) !important;
    font-family: 'Hack Nerd Font', monospace;
    font-size: .74rem;
    line-height: 1.7;
}
html body #bbpress-forums .loop-item--1 .bbp-reply-content > p:last-of-type a:hover {
    border-color: var(--dx-accent, #5eead4) !important;
    color: var(--dx-accent, #5eead4) !important;
    background: rgba(94, 234, 212, .08) !important;
}
