/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Template:     bricks
 Version:      1.0.0
*/

/* ============================================================
   CASINO SITE - CSS COMPLETO (v2.0 - 2026-03-26)
   casinosonlineportugueses.pt
   ============================================================ */

/* === RESET: Remover border de .responsive === */
.responsive { border: none !important; }

/* === Header Logo === */
#brx-header .brxe-logo img {
    display: block !important;
    max-height: 60px !important;
    width: auto !important;
}

/* === Footer === */
#brx-footer p,
#brx-footer span,
#brx-footer .brxe-text p {
    color: #4a5568 !important;
}
#brx-footer strong {
    color: #1a2332 !important;
}
#brx-footer .brxe-logo img {
    filter: none !important;
    display: block !important;
}

/* === Esconder Breadcrumbs === */
.brxe-breadcrumbs { display: none !important; }

/* === Brand Card Overflow Fix === */
.review-cta { overflow: visible; }
.image-review-cta { overflow: visible; }
.image-review-cta img {
    border-radius: 0 !important;
    overflow: visible !important;
}

/* === Circulos do Ranking (134px, NAO 140px) === */
.image-review-cta {
    width: 134px;
    height: 134px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.05);
    overflow: visible;
}

/* === Circulos brancos - tratamento especial === */
.brxe-yrxhbh[style*="background: #ffffff"],
.brxe-yrxhbh[style*="background-color: #ffffff"],
.brxe-yrxhbh[style*="background: #FFFFFF"],
.brxe-yrxhbh[style*="background-color: rgb(255, 255, 255)"] {
    width: 134px !important;
    height: 134px !important;
    min-width: 134px !important;
    min-height: 134px !important;
    border: 2px solid #9ca3af !important;
    outline: none !important;
    box-shadow:
        inset 0 0 0 2.5px #ffffff,
        inset 0 0 0 3.5px #c0c5cc !important;
}

/* === Ver Mais Toggle === */
#intro-extra { display: none; }
#intro-extra.open { display: block; }
.intro-btn-hero {
    background: #f0f4ff;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 16px !important;
    margin-bottom: 16px !important;
}
.intro-btn-hero:hover {
    background: var(--accent);
    color: #fff;
}

/* === Reducao de padding #mejores === */
#mejores {
    padding-top: 15px !important;
    padding-bottom: 10px !important;
}

/* === Espacamento Author -> H2 === */
#brxe-3f4a52 {
    padding-top: 25px !important;
}

/* === Screenshot Images === */
.screenshot-review {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* === Tabelas: Nunca partir palavras === */
table th, table td {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

/* === Info Tables: Cantos arredondados === */
.info-table,
figure.wp-block-table table {
    border-radius: 12px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}
.info-table thead th:first-child,
figure.wp-block-table table thead th:first-child {
    border-top-left-radius: 12px;
}
.info-table thead th:last-child,
figure.wp-block-table table thead th:last-child {
    border-top-right-radius: 12px;
}
.info-table tbody tr:last-child td:first-child,
figure.wp-block-table table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.info-table tbody tr:last-child td:last-child,
figure.wp-block-table table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* === Desktop: Table wrapper === */
.table-scroll-wrapper {
    border-radius: 12px;
    overflow: hidden;
}
.table-scroll-wrapper table {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}
.table-scroll-wrapper table thead th {
    background: #1a2332;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    text-align: left;
}
.table-scroll-wrapper table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
}
.table-scroll-wrapper table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

/* === CTA Button === */
.btn-review-cta {
    font-size: 1.05rem !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}
@media (min-width: 767px) {
    .btn-review-cta {
        margin-right: 40px;
    }
}

/* === FAQ Accordion === */
.faq .accordion-content {
    display: none;
    padding: 0 20px 20px;
}
.faq.open .accordion-content {
    display: block;
}
.faq .accordion-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s;
}
.faq .accordion-title-wrapper:hover {
    background: #e9ecef;
}
.faq .accordion-title-wrapper h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.faq .accordion-arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
    color: #666;
}
.faq.open .accordion-arrow {
    transform: rotate(180deg);
}
.faq {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

/* === Author Section === */
.author-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
}
.author-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.author-photo {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}
.author-name {
    margin: 0;
    font-size: 1.2rem;
}
.author-title {
    color: #666;
    font-size: 0.9rem;
}

/* === Pros/Cons Lists === */
.pros li::before {
    content: url('/wp-content/uploads/check-pros.svg');
    margin-right: 8px;
}
.cons li::before {
    content: url('/wp-content/uploads/cross-vermelho.svg');
    margin-right: 8px;
}
.pros, .cons {
    list-style: none;
    padding-left: 0;
}
.pros li, .cons li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

/* ============================================================
   MOBILE RESPONSIVE (max-width: 766px)
   ============================================================ */
@media (max-width: 766px) {
    .review-cta {
        grid-template-columns: 120px 1fr;
    }
    .review-cta .bonus-cta {
        font-size: 14px;
    }
    #brx-header .brxe-logo img {
        max-height: 50px !important;
    }
    .table-scroll-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 12px;
    }
    .table-scroll-wrapper table {
        min-width: 520px !important;
    }
    .table-scroll-wrapper table th:first-child,
    .table-scroll-wrapper table td:first-child {
        position: sticky !important;
        left: 0 !important;
        z-index: 2 !important;
        background: #fff !important;
        box-shadow: 3px 0 6px rgba(0,0,0,0.1) !important;
        min-width: 110px !important;
        white-space: normal !important;
    }
    .table-scroll-wrapper table thead th:first-child {
        background: #1a2332 !important;
        z-index: 3 !important;
    }
    .table-scroll-wrapper table th:last-child,
    .table-scroll-wrapper table td:last-child {
        padding-right: 16px !important;
        white-space: normal !important;
    }
    figure.wp-block-table table:not(.multi-col) {
        display: block !important;
    }
    figure.wp-block-table table:not(.multi-col) thead {
        display: none !important;
    }
    figure.wp-block-table table:not(.multi-col) tbody {
        display: block !important;
    }
    figure.wp-block-table table:not(.multi-col) tr {
        display: flex !important;
        flex-direction: column !important;
        background: #f8f9fa !important;
        border-radius: 10px !important;
        margin-bottom: 10px !important;
        padding: 12px 16px !important;
        border: 1px solid #e2e8f0 !important;
    }
    figure.wp-block-table table:not(.multi-col) td {
        display: block !important;
        padding: 4px 0 !important;
        border: none !important;
    }
    figure.wp-block-table table:not(.multi-col) td:first-child {
        font-weight: 700 !important;
        color: #1a2332 !important;
    }
    figure.wp-block-table table:not(.multi-col) td::before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        display: block !important;
        color: #666 !important;
        font-size: 0.85rem !important;
    }
    .screenshot-review {
        border-radius: 8px;
    }
}
