/*
 * Fabula Brasillis — somente personalizacoes adicionais ainda nao incluidas no Fabula Core Beta 1.0.6.
 * Extraido fielmente do CSS fornecido, sem substituir o CSS historico de fabula-legacy.css.
 * Aplicar primeiro apenas no /excelsior/ e validar os layouts antes da producao.
 */

/* ============================================
   KEYBOUND BRAWLER — TABELA DE RECOMPENSAS
   ============================================ */

/* Estrutura principal */
.kbf-itens {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 940px;
    margin: 22px auto 26px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

/* Brilho externo */
.kbf-itens::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 8px 4% -8px;
    background: rgba(50, 103, 173, .22);
    filter: blur(26px);
    pointer-events: none;
}

/* Moldura arredondada, como a tabela de Fall Guys */
.kbf-itens .kbf-frame {
    overflow: hidden;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 1px solid #314a77 !important;
    border-right: 1px solid #314a77 !important;
    border-radius: 16px !important;
    background: #050b1b;
    box-shadow: 0 7px 0 #1e3764;
}

/* Tabela */
.kbf-itens .kbf-table {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed;
    color: #fff !important;
    font-size: 15px;
    background:
        radial-gradient(
            ellipse 76% 56% at 72% 28%,
            rgba(29, 59, 122, .34),
            rgba(10, 26, 62, .16) 46%,
            transparent 92%
        ),
        linear-gradient(180deg, #050b1b, #060e21) !important;
}

/* Linhas e células */
.kbf-itens .kbf-table tr,
.kbf-itens .kbf-table tr:hover {
    background: transparent !important;
}

.kbf-itens .kbf-table th,
.kbf-itens .kbf-table td {
    padding: 11px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(122, 155, 207, .25) !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    line-height: 1.35;
    vertical-align: middle;
}

.kbf-itens .kbf-table tr > :first-child {
    width: 70%;
    border-right: 1px solid rgba(122, 155, 207, .25) !important;
}

.kbf-itens .kbf-table tr > :last-child {
    width: 30%;
}

.kbf-itens .kbf-table tr:last-child td {
    border-bottom: 0 !important;
}

/* Cabeçalho */
.kbf-itens .kbf-table .kbf-head th {
    padding: 13px 12px !important;
    background: #1B4996 !important;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

/* Itens */
.kbf-itens .kbf-item-link,
.kbf-itens .kbf-item-link:visited,
.kbf-itens .kbf-item-link:hover {
    display: flex !important;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

.kbf-itens .kbf-item-icon {
    display: block !important;
    flex: 0 0 48px;
    width: 48px !important;
    height: 48px !important;
    max-width: none !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Preços */
.kbf-itens .kbf-price {
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
}

/* Moeda MGC: dimensões naturais do arquivo, sem largura/altura fixas */
.kbf-itens .kbf-currency-icon {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    vertical-align: middle;
    margin: 0 7px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Sem hover nas linhas ou nos links */
.kbf-itens .kbf-table tr:hover td {
    background: transparent !important;
}

.kbf-itens .kbf-table tr:hover .kbf-item-link,
.kbf-itens .kbf-item-link:hover {
    color: #fff !important;
    text-decoration: none !important;
}

/* Responsividade */
@media (max-width: 600px) {
    .kbf-itens {
        margin: 14px auto 18px;
    }

    .kbf-itens .kbf-table .kbf-head th {
        padding: 10px 6px !important;
        font-size: 14px;
    }

    .kbf-itens .kbf-table td {
        padding: 9px 8px !important;
    }

    .kbf-itens .kbf-item-link {
        gap: 8px;
        font-size: 12px;
    }

    .kbf-itens .kbf-price {
        font-size: 12px;
    }

    .kbf-itens .kbf-currency-icon {
        margin-right: 3px !important;
    }
}

/* ========================================
   TÍTULO DECORADO — FABULA BRASILLIS
   ======================================== */

.fabula-titulo-decorado {
    display: grid;
    grid-template-columns: 24% minmax(0, 1fr) 24%;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 110px;
    padding: 12px 10px;
    margin: 24px auto 28px;

    box-sizing: border-box;

    /* Fundo com fade nas extremidades */
    background: linear-gradient(
        90deg,
        rgba(10, 41, 102, 0) 0%,
        #0A2966 50%,
        rgba(10, 41, 102, 0) 100%
    );
}

/* Ornamentos laterais */

.fabula-titulo-decorado .fabula-titulo-ornamento {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Imagens decorativas */

.fabula-titulo-decorado .fabula-titulo-ornamento img {
    display: block !important;

    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    object-fit: contain;
    transform: none !important;
}

/* Título central */

.fabula-titulo-decorado h2 {
    display: block;
    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 3.3vw, 38px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-transform: none !important;

    text-shadow:
        0 0 5px #36aaff,
        0 0 12px #168cff,
        0 0 22px rgba(0, 119, 255, 0.65);
}

/* Responsividade */

@media (max-width: 600px) {
    .fabula-titulo-decorado {
        grid-template-columns: 23% minmax(0, 1fr) 23%;
        gap: 6px;

        min-height: 75px;
        padding: 10px 5px;
    }

    .fabula-titulo-decorado h2 {
        font-size: clamp(16px, 4vw, 24px) !important;
    }
}


/* ========================================
   BANNER PROMOCIONAL — FABULA BRASILLIS
   ======================================== */

.fabula-banner-promocional {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 380px;
    padding: 40px 20px;
    margin: 24px auto;

    box-sizing: border-box;

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    overflow: hidden;
}

/* Conteúdo central */

.fabula-banner-promocional .fabula-banner-conteudo {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    gap: 20px;

    text-align: center;
}

/* Logo */

.fabula-banner-promocional .fabula-banner-logo {
    display: block;
    width: auto;
    max-width: 85%;
    max-height: 180px;
    height: auto;

    margin: 0 auto !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Texto verde */

.fabula-banner-promocional .fabula-banner-texto {
    margin: 0 !important;
    padding: 0 !important;

    color: #8cff6b !important;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;

    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Área do shortcode */

.fabula-banner-promocional .fabula-banner-botao {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    margin: 5px 0 0;
}

/* Responsividade */

@media (max-width: 600px) {
    .fabula-banner-promocional {
        min-height: 280px;
        padding: 28px 12px;
    }

    .fabula-banner-promocional .fabula-banner-conteudo {
        gap: 14px;
    }

    .fabula-banner-promocional .fabula-banner-logo {
        max-width: 95%;
        max-height: 130px;
    }

    .fabula-banner-promocional .fabula-banner-texto {
        font-size: 19px;
    }
}


/* ========================================
   BORDA AZUL DO BANNER
   ======================================== */

/* Borda externa */

.fabula-banner-promocional {
    border: 7px solid #2e91b0;
    box-sizing: border-box;
}

/* Moldura interna */

.fabula-banner-promocional::before {
    content: "";
    position: absolute;
    inset: 8px;

    border: 2px solid #238eb9;

    pointer-events: none;
    z-index: 2;
}

/* Detalhes decorativos nos cantos */

.fabula-banner-promocional::after {
    content: "";
    position: absolute;
    inset: 8px;

    background:
        linear-gradient(#59c9ed, #59c9ed) top left / 12px 3px no-repeat,
        linear-gradient(#59c9ed, #59c9ed) top left / 3px 12px no-repeat,

        linear-gradient(#59c9ed, #59c9ed) top right / 12px 3px no-repeat,
        linear-gradient(#59c9ed, #59c9ed) top right / 3px 12px no-repeat,

        linear-gradient(#59c9ed, #59c9ed) bottom left / 12px 3px no-repeat,
        linear-gradient(#59c9ed, #59c9ed) bottom left / 3px 12px no-repeat,

        linear-gradient(#59c9ed, #59c9ed) bottom right / 12px 3px no-repeat,
        linear-gradient(#59c9ed, #59c9ed) bottom right / 3px 12px no-repeat;

    pointer-events: none;
    z-index: 3;
}

/* Remover sublinhado de todos os botões */

a.btn,
a.button,
a.wp-block-button__link,
a[class*="btn-"],
a.btn:hover,
a.button:hover,
a.wp-block-button__link:hover,
a[class*="btn-"]:hover,
a.btn:focus,
a.button:focus,
a.wp-block-button__link:focus,
a[class*="btn-"]:focus {
    text-decoration: none !important;
    text-decoration-line: none !important;
}

/* Remover sublinhado de textos internos */

a.btn span,
a.button span,
a.wp-block-button__link span,
a[class*="btn-"] span {
    text-decoration: none !important;
}

/* Texto neon verde — Final Fantasy VII */

.fabula-banner-promocional .fabula-banner-texto {
    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;

    /* Contorno verde-esmeralda */
    -webkit-text-stroke: 0.6px #009e8c;

    /* Brilho neon mais escuro e concentrado */
    text-shadow:
        0 0 10px #006b59,
        0 0 14px #004f43,
        0 0 20px rgba(0, 58, 49, 0.95),
        0 0 28px rgba(0, 35, 30, 0.85);
}