/* bbPress — estilo Nobilem */

body.ncm-bbp-skin #bbpress-forums,
body.ncm-bbp-skin .bbp-wrapper {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
    box-sizing: border-box;
    font-family: inherit;
}

body.ncm-bbp-skin #bbpress-forums .bbp-breadcrumb,
body.ncm-bbp-skin #bbpress-forums .bbp-topic-meta {
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

body.ncm-bbp-skin #bbpress-forums .bbp-breadcrumb a,
body.ncm-bbp-skin #bbpress-forums a.bbp-breadcrumb-sep {
    color: #2750fb !important;
    text-decoration: none;
    font-weight: 600;
}

body.ncm-bbp-skin #bbpress-forums .bbp-header,
body.ncm-bbp-skin #bbpress-forums .bbp-footer {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #374151;
}

body.ncm-bbp-skin #bbpress-forums ul.bbp-forums,
body.ncm-bbp-skin #bbpress-forums ul.bbp-topics,
body.ncm-bbp-skin #bbpress-forums ul.bbp-replies {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.25rem;
}

body.ncm-bbp-skin #bbpress-forums li.bbp-body ul.forum,
body.ncm-bbp-skin #bbpress-forums li.bbp-body ul.topic,
body.ncm-bbp-skin #bbpress-forums li.bbp-body div.hentry {
    border-color: #f0f0f0;
    padding: 0.9rem 1rem;
}

body.ncm-bbp-skin #bbpress-forums .bbp-forum-title a,
body.ncm-bbp-skin #bbpress-forums .bbp-topic-permalink,
body.ncm-bbp-skin #bbpress-forums .bbp-reply-permalink {
    color: #2750fb !important;
    font-weight: 600;
    text-decoration: none !important;
}

body.ncm-bbp-skin #bbpress-forums .bbp-forum-title a:hover,
body.ncm-bbp-skin #bbpress-forums .bbp-topic-permalink:hover {
    text-decoration: underline !important;
}

body.ncm-bbp-skin #bbpress-forums .bbp-topic-meta,
body.ncm-bbp-skin #bbpress-forums .bbp-forum-meta,
body.ncm-bbp-skin #bbpress-forums .bbp-reply-post-date {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Avisos */
body.ncm-bbp-skin #bbpress-forums div.bbp-template-notice,
body.ncm-bbp-skin #bbpress-forums div.indicator-hint {
    border-radius: 8px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e40af;
    padding: 0.85rem 1rem;
    margin: 0 0 1rem;
}

body.ncm-bbp-skin #bbpress-forums div.bbp-template-notice.info {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1e40af;
}

body.ncm-bbp-skin #bbpress-forums div.bbp-template-notice.warning,
body.ncm-bbp-skin #bbpress-forums div.bbp-template-notice.error {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

/* Formulario nuevo debate / respuesta */
body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form legend {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    padding: 0 0.25rem;
    margin-bottom: 0.5rem;
}

body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    color: #374151;
}

body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form input[type="text"],
body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form textarea,
body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    font: inherit;
    margin-bottom: 1rem;
    background: #fff;
}

body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form input[type="text"]:focus,
body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form textarea:focus {
    outline: none;
    border-color: #2750fb;
    box-shadow: 0 0 0 3px rgba(39, 80, 251, 0.12);
}

body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form textarea {
    min-height: 180px;
    resize: vertical;
}

body.ncm-bbp-skin #bbpress-forums .wp-editor-container {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

body.ncm-bbp-skin #bbpress-forums .quicktags-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.35rem;
}

body.ncm-bbp-skin #bbpress-forums .quicktags-toolbar input.button.button-small {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    border-radius: 6px !important;
    margin: 0.15rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    box-shadow: none !important;
}

body.ncm-bbp-skin #bbpress-forums .bbp-submit-wrapper {
    text-align: right;
    margin-top: 0.5rem;
}

/* Botones */
body.ncm-bbp-skin #bbpress-forums button,
body.ncm-bbp-skin #bbpress-forums input[type="submit"],
body.ncm-bbp-skin #bbpress-forums a.button,
body.ncm-bbp-skin #bbpress-forums .bbp-submit-wrapper button {
    background: #2750fb !important;
    background-color: #2750fb !important;
    border: 2px solid #2750fb !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.25rem !important;
    cursor: pointer;
    box-shadow: none !important;
    text-decoration: none !important;
}

body.ncm-bbp-skin #bbpress-forums button:hover,
body.ncm-bbp-skin #bbpress-forums input[type="submit"]:hover,
body.ncm-bbp-skin #bbpress-forums a.button:hover {
    background: #1e42d4 !important;
    background-color: #1e42d4 !important;
    border-color: #1e42d4 !important;
    color: #fff !important;
}

body.ncm-bbp-skin #bbpress-forums .subscription-toggle,
body.ncm-bbp-skin #bbpress-forums .favorite-toggle,
body.ncm-bbp-skin #bbpress-forums .bbp-topic-actions a {
    color: #2750fb !important;
    font-weight: 600;
}

body.ncm-bbp-skin #bbpress-forums .bbp-pagination {
    color: #6b7280;
    margin: 1rem 0;
}

body.ncm-bbp-skin #bbpress-forums .bbp-pagination .page-numbers.current {
    background: #2750fb;
    color: #fff;
    border-radius: 6px;
    padding: 0.2rem 0.55rem;
}

body.ncm-bbp-skin #bbpress-forums .bbp-pagination a.page-numbers {
    color: #2750fb !important;
}

/* Título de página del foro */
body.ncm-bbp-skin.single-forum .entry-title,
body.ncm-bbp-skin.single-topic .entry-title,
body.ncm-bbp-skin.post-type-archive-forum .entry-title {
    max-width: 920px;
    margin: 1.5rem auto 0.75rem;
    padding: 0 1.25rem;
    font-size: 1.75rem;
    color: #111;
}

/* Respuestas */
body.ncm-bbp-skin #bbpress-forums div.bbp-reply-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.65rem 1rem;
}

body.ncm-bbp-skin #bbpress-forums div.bbp-reply-author img.avatar {
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

body.ncm-bbp-skin #bbpress-forums .bbp-reply-content {
    padding: 1rem;
    color: #111;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body.ncm-bbp-skin #bbpress-forums,
    body.ncm-bbp-skin .bbp-wrapper {
        padding: 0 1rem 2rem;
    }

    body.ncm-bbp-skin #bbpress-forums fieldset.bbp-form {
        padding: 1rem;
    }
}
