/*
Theme Name:   LBX Theme
Theme URI:    https://lbx.org.br
Author:       David Brasil
Author URI:   https://lbx.org.br
Description:  Tema personalizado para a Liga Brasileira de Xadrez.
Version:      1.0.0
License:      GPL v2 or later
Text Domain:  lbx-theme
*/

/* ===== ESTILOS GLOBAIS (conteúdo mantido igual ao que já definimos) ===== */
.site-main,
.entry-content,
.page-content,
#content,
#primary,
.content-area,
.site-content,
.hentry,
.entry {
    background: transparent !important;
    background-color: transparent !important;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #0C008F;
    width: 100%;
    margin: 0;
    padding: 30px 0 20px;
}
.site-footer .container-fluid {
    max-width: 100%;
    padding: 0 20px;
}
.footer-logo {
    max-width: 200px;
    box-shadow: none;
    margin: 0 auto;
    display: inline-block;
}
.footer-description {
    color: #fff;
    margin-top: 10px;
}
.site-footer h5 {
    color: #fff;
}
.site-footer p {
    color: #fff;
}
.site-footer hr {
    background-color: #444;
    margin: 10px 0;
}
.copyright {
    color: #fff;
    margin-bottom: 0;
}
/* Estilo do menu footer navbar */
.footer-navbar {
    background-color: #0C008F !important;
    border-radius: 8px;
    padding: 10px;
}
.footer-navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.footer-navbar-header .navbar-brand {
    color: #fff;
}
.footer-navbar .navbar-toggler {
    border: 1px solid rgba(255,255,255,.2);
}
.footer-navbar .navbar-collapse {
    margin-top: 10px;
}
/* Dropdowns do footer */
.footer-navbar .dropdown-menu {
    background-color: #0C008F;
    border: none;
}
.footer-navbar .dropdown-item {
    color: #fff;
}
.footer-navbar .dropdown-item:hover {
    background-color: rgba(255,255,255,0.2);
}
/* Formulário de pesquisa no footer */
.footer-navbar .btn-outline-success {
    color: #fff;
    border-color: #fff;
}
.footer-navbar .btn-outline-success:hover {
    background-color: #fff;
    color: #0C008F;
}
/* Redes sociais */
.social-icons a {
    transition: opacity 0.2s;
}
.social-icons a:hover {
    opacity: 0.8;
}

.container:not(#main-nav .container):not(footer .container) {
    background: transparent !important;
}

/* Cabeçalho e rodapé – cores institucionais */
#main-nav,
.navbar,
.navbar-dark,
footer,
.site-footer {
    background-color: #0C008F !important;
    color: #fff;
}

/* ===== TABELAS TRANSPARENTES COM FONTE PRETA ===== */
table, tbody, tr, td, th, .table, .table-striped,
#abs-std table, #abs-rap table, #abs-blt table, #abs-mes table,
#fem-std table, #fem-rap table, #fem-blt table, #fem-mes table,
.tab-pane table, .tab-content table {
    background: transparent !important;
    background-color: transparent !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(even),
tbody tr:nth-child(odd),
tbody tr:nth-child(even) {
    background: transparent !important;
}

table td, table th, .table td, .table th,
#abs-std td, #abs-std th, #abs-rap td, #abs-rap th,
#abs-blt td, #abs-blt th, #abs-mes td, #abs-mes th,
#fem-std td, #fem-std th, #fem-rap td, #fem-rap th,
#fem-blt td, #fem-blt th, #fem-mes td, #fem-mes th {
    color: #000 !important;
    text-shadow: none;
}

table a, .table a {
    color: #0C008F !important;
    font-weight: bold;
}

/* ===== THUMBS DOS POSTS (PAISAGEM, ALTURA 600px) ===== */
.card-img-top {
    width: 100%;
    height: 600px !important;
    object-fit: cover !important;
    object-position: center;
}
@media (max-width: 768px) {
    .card-img-top { height: 400px !important; }
}
@media (max-width: 576px) {
    .card-img-top { height: 300px !important; }
}

/* ===== CARDS COM FUNDO BRANCO ===== */
.card, .bg-light, .card-body {
    background: #fff !important;
    color: #000;
}

/* ===== FORMULÁRIO DE FILTRO ===== */
form.border.rounded.bg-light {
    background-color: #f8f9fa !important;
}

/* ===== TÍTULOS PRETOS ===== */
h2, h4 {
    color: #000 !important;
    text-shadow: none;
}

/* ===== CARROSSEL CENTRALIZADO ===== */
.carousel-container {
    max-width: 800px;
    margin: 0 auto;
}
.carousel-item img {
    object-fit: cover;
    height: 400px;
    width: 100%;
}
@media (max-width: 768px) {
    .carousel-item img { height: 250px; }
}

/* Botões personalizados LBX */
.btn-custom {
    background: linear-gradient(135deg, #0C008F, rgba(44, 90, 140, 0.85));
    color: #fff !important;
    border: none;
}
.btn-custom:hover {
    background: green !important;
    color: #fff !important;
    transform: scale(1.08);
    transition: all 0.25s ease;
}

.btn-outline-custom {
    color: #fff !important;
    border: 1px solid #fff !important;
    background: transparent;
}
.btn-outline-custom:hover {
    background-color: green !important;
    color: #fff !important;
    border-color: green !important;
}
/* ============================================
   1. CORES GLOBAIS E LINKS
   ============================================ */
a {
    color: blue;
}

/* ============================================
   2. BACKGROUND DO BODY (IMAGEM FIXA)
   ============================================ */
/* Imagem de fundo do site */
body {
    background-image: url('https://lbx.org.br/wp-content/uploads/2024/06/background-lbx_Prancheta-1-2-1.png') !important;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================
   3. CONTAINER E GRID DE COMUNICADOS (3 colunas)
   ============================================ */
.comunicados-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.comunicados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* Cards com altura igual */
.card-comunicado {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-comunicado:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-comunicado:hover .card-img img {
    transform: scale(1.03);
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.card-title a {
    text-decoration: none;
    color: #1a1a1a;
}

.card-title a:hover {
    color: #007bff;
}

.card-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 12px;
    border-left: 3px solid #007bff;
    padding-left: 10px;
}

.card-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read-more {
    align-self: flex-start;
    background: #f8f9fa;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-read-more:hover {
    background: #007bff;
    color: #fff;
}

/* ============================================
   4. BOTÕES PERSONALIZADOS
   ============================================ */
.btn-custom {
    background: linear-gradient(135deg, #0C008F, rgba(44, 90, 140, 0.85));
    color: #fff;
}

.btn-custom:hover {
    background: green;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
    transition: all 0.25s ease;
}

.btn-outline-custom {
    color: #FFF;
    border-color: #FFF;
}

.btn-outline-custom:hover {
    background-color: green;
    color: #fff;
}

/* ============================================
   5. PAGINAÇÃO
   ============================================ */
.pagination {
    text-align: center;
    margin: 40px 0 60px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #f1f3f5;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}

.pagination .page-numbers.current {
    background: #007bff;
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
    background: #dee2e6;
}

/* ============================================
   6. REMOVER FUNDO BRANCO DAS ÁREAS PRINCIPAIS
   ============================================ */
.site-main, .entry-content, .post-content, .hentry, .page-content,
.comment-list, .comment-respond, .comments-area {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Mantém o padding (opcional) */
.entry-content, .post-content {
    padding: 1rem;
}

/* ============================================
   7. TÍTULO DESTACADO (post/page)
   ============================================ */
.entry-title, .post-title, h1.entry-title {
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 2.5rem !important;
    color: #0C008F !important;
    margin: 1rem 0 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 4px solid #0C008F !important;
    display: block !important;
    width: 100% !important;
}

/* ============================================
   8. CORPO DO TEXTO
   ============================================ */
.entry-content p, .post-content p {
    line-height: 1.7;
    margin-bottom: 1.5em;
    background: transparent;
}

/* Imagens responsivas */
.entry-content img, .post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

/* ============================================
   9. COMENTÁRIOS (largura total)
   ============================================ */
.comments-area, .comment-list, .comment-respond {
    width: 100% !important;
    max-width: 100% !important;
    margin: 2rem 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.comment-respond, .comment-form {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.comment-form input, .comment-form textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.comments-title, .comment-reply-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0C008F;
    margin: 1rem 0;
    padding-left: 0;
    border-left: none;
}

/* ============================================
   10. MARGENS LATERAIS DO CONTEÚDO
   ============================================ */
.site-main, .entry-content, .post-content, .page-content {
    margin-left: 5% !important;
    margin-right: 5% !important;
    max-width: 90% !important;
}

/* ============================================
   11. TABELAS (estilo consistente)
   ============================================ */
table {
    width: 100%;
    margin-bottom: 15px;
    font-size: 0.9em;
    border-spacing: 0;
    border-collapse: collapse;
}

table td, table th {
    padding: 15px;
    line-height: 1.5;
    vertical-align: middle;
    border: 0px solid rgba(128,128,128,0.5);
}

table th {
    font-weight: 700;
}

table tfoot th, table thead th {
    font-size: 1em;
}

table caption+thead tr:first-child td,
table caption+thead tr:first-child th,
table colgroup+thead tr:first-child td,
table colgroup+thead tr:first-child th,
table thead:first-child tr:first-child td,
table thead:first-child tr:first-child th {
    border-top: 1px solid rgba(128,128,128,0.5);
}

table tbody>tr:nth-child(odd)>td,
table tbody>tr:nth-child(odd)>th {
    background-color: rgba(128,128,128,0.07);
}

table tbody tr:hover>td,
table tbody tr:hover>th {
    background-color: rgba(128,128,128,0.1);
}

table tbody+tbody {
    border-top: 2px solid rgba(128,128,128,0.5);
}

/* Tabela transparente customizada */
table.transparente {
    border-collapse: collapse;
    width: 100%;
    font-family: sans-serif;
}

.transparente th, .transparente td {
    padding: 10px;
    color: #333;
}

.transparente tr:nth-child(odd) {
    background-color: transparent;
}

.transparente tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

.transparente tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* ============================================
   12. CARDS E TABELAS COM LEVE OPACIDADE
   ============================================ */
.card, .table, .bg-light {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   13. TOOLTIPS E ÍCONES (patronos, bandeiras)
   ============================================ */
.icon-patrono {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.uf-tooltip {
    position: relative;
    display: inline-block;
}

.uf-flag {
    width: 50px;
    display: block;
}

.uf-tooltip-text {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
}

.uf-tooltip:hover .uf-tooltip-text {
    opacity: 1;
    visibility: visible;
}

.tooltip-premium {
    position: relative;
    display: inline-block;
}

.tooltip-box {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 999;
}

.tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
}

.tooltip-premium:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   14. CARROSSEL (banner)
   ============================================ */
.carousel-caption h5 {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    display: inline-block;
}

#bannerCarousel img {
    object-fit: cover;
    width: 800px;
    height: 450px;
}

/* ============================================
   15. WOOCOMMERCE (caso use)
   ============================================ */
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #000;
    font-size: 1.25em;
}

/* ============================================
   16. RESPONSIVIDADE
   ============================================ */
@media (max-width: 992px) {
    .comunicados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .site-main, .entry-content, .post-content, .page-content {
        margin-left: 3% !important;
        margin-right: 3% !important;
        max-width: 94% !important;
    }
    .entry-title, .post-title, h1.entry-title {
        font-size: 1.8rem !important;
    }
    .site-main, .entry-content, .post-content {
        max-width: 95%;
        padding: 1rem;
    }
    table table {
        font-size: 0.8em;
    }
    table table td, table table th {
        padding: 7px;
        line-height: 1.3;
    }
    table table th {
        font-weight: 400;
    }
}

@media (max-width: 576px) {
    .comunicados-grid {
        grid-template-columns: 1fr;
    }
    
/* ============================================
   DISWISS LISTA - ESTILOS FORÇADOS (!important)
   ============================================ */

/* Container principal */
.diswiss-wrap {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    padding: 25px !important;
    margin: 20px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Formulário de pesquisa */
.diswiss-filtro {
    background: #f8f9fa !important;
    padding: 20px !important;
    border-radius: 16px !important;
    margin-bottom: 25px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: flex-end !important;
}

.diswiss-filtro > div {
    flex: 1 1 auto !important;
    min-width: 120px !important;
}

.diswiss-filtro label {
    font-weight: 600 !important;
    color: #0C008F !important;
    font-size: 0.85rem !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.diswiss-filtro input,
.diswiss-filtro select {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    background: #fff !important;
}

.diswiss-filtro button {
    background: #0C008F !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 40px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.diswiss-filtro button:hover {
    background: #2a1e8f !important;
    transform: translateY(-2px) !important;
}

#diswiss-limpar {
    background: #6c757d !important;
}

#diswiss-limpar:hover {
    background: #5a6268 !important;
}

/* Informação de total */
#diswiss-info {
    font-size: 0.85rem !important;
    color: #0C008F !important;
    font-weight: 500 !important;
    background: rgba(12,0,143,0.1) !important;
    padding: 5px 12px !important;
    border-radius: 30px !important;
    white-space: nowrap !important;
}

/* Tabela */
#diswiss-tabela {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

#diswiss-tabela th {
    background: #0C008F !important;
    color: white !important;
    padding: 12px 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

#diswiss-tabela td {
    padding: 12px 15px !important;
    text-align: center !important;
    border-bottom: 1px solid #e9ecef !important;
    background: #fff !important;
}

#diswiss-tabela tr:hover td {
    background: #f8f9fa !important;
}

/* Paginação */
#diswiss-paginacao {
    margin-top: 25px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
}

.diswiss-page {
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    color: #0C008F !important;
    padding: 8px 14px !important;
    border-radius: 40px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.diswiss-page:hover:not(:disabled) {
    background: #0C008F !important;
    color: #fff !important;
    border-color: #0C008F !important;
    transform: translateY(-2px) !important;
}

.diswiss-page:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Botões de ação */
.diswiss-calculo-btn {
    background: #007cba !important;
    color: #fff !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 30px !important;
}

.diswiss-delete-btn {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
}

@media (max-width: 768px) {
    .diswiss-filtro {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .diswiss-filtro > div {
        width: 100% !important;
    }
    .diswiss-filtro button {
        width: 100% !important;
    }
    #diswiss-info {
        white-space: normal !important;
        text-align: center !important;
    }



/* ===== SINGLE POST ===== */
.entry-meta {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}
.entry-meta span {
    margin: 0 10px;
}
.post-thumbnail {
    text-align: center;
    margin: 1.5rem 0;
}
.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
}
.entry-footer div {
    margin-bottom: 0.5rem;
}
.nav-links {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}
.nav-previous,
.nav-next {
    background: #0C008F;
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.2s;
}
.nav-previous a,
.nav-next a {
    color: #fff;
    text-decoration: none;
}
.nav-previous:hover,
.nav-next:hover {
    background: #2a1e8f;
    transform: translateY(-2px);
}
  
  /* ===== COMENTÁRIOS: DATA/HORA DISCRETA, CONTEÚDO DESTACADO ===== */

/* Lista de comentários */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.comment {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.comment-author {
    margin-bottom: 0.5rem;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.comment-author .fn {
    font-weight: 700;
    font-size: 1rem;
    color: #0C008F;
}

/* Data e horário – pequenos e discretos */
.comment-metadata {
    font-size: 0.7rem;
    color: #adb5bd;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-metadata a {
    color: #adb5bd;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #0C008F;
    text-decoration: underline;
}

/* Corpo do comentário – destaque no texto */
.comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
    margin-top: 0.5rem;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

/* Respostas (nesting) */
.children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1rem;
}

/* Formulário de comentário */
.comment-respond {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.comment-reply-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0C008F;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.comment-form .submit {
    background: #0C008F;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 10px 24px;
    cursor: pointer;
    transition: 0.2s;
}

.comment-form .submit:hover {
    background: #2a1e8f;
    transform: translateY(-2px);
}

/* No mobile: reduz o recuo das respostas */
@media (max-width: 576px) {
    .children {
        padding-left: 0.5rem;
    }
    .comment {
        padding: 1rem;
    }
}
  
  
    
}