/*
|--------------------------------------------------------------------------
| 4education - Verdadeiro ou Falso V21.7
|--------------------------------------------------------------------------
|
| Correções:
| - carta um pouco maior;
| - botões um pouco maiores;
| - carta à esquerda e respostas empilhadas à direita;
| - rodapé independente e garantido;
| - feedback inline-result visível no mesmo fluxo dos jogos atuais;
| - "Ver texto completo" abaixo da carta com detecção robusta de overflow.
|
*/

:root {
    --tf-primary: #c125fa;
    --tf-primary-dark: #9e18d1;
    --tf-danger: #df5757;
    --tf-danger-dark: #c94242;
    --tf-text: #332c36;
    --tf-muted: #786d7c;
    --tf-page: #f5f6f8;
    --tf-border: #e4d9e8;
    --tf-success: #48ad61;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: var(--tf-page);
    color: var(--tf-text);
    font-family: Arial, Helvetica, sans-serif;
}

button {
    font: inherit;
}

[hidden] {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Estrutura geral
|--------------------------------------------------------------------------
*/

.true-false-layout {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.true-false-header {
    flex: 0 0 auto;
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    background: var(--tf-primary);
    box-shadow: 0 2px 8px rgba(42, 28, 47, 0.10);
}

.true-false-logo {
    display: block;
    width: auto;
    max-width: 220px;
    height: 48px;
    object-fit: contain;
}

.true-false-page {
    flex: 1 0 auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px 28px;
}

.true-false-shell {
    width: min(920px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
}

/*
|--------------------------------------------------------------------------
| Pergunta
|--------------------------------------------------------------------------
*/

.true-false-question {
    width: 100% !important;
    max-width: 920px !important;
    margin: 0 auto !important;
}

/*
|--------------------------------------------------------------------------
| Jogo principal
|--------------------------------------------------------------------------
|
| Desktop:
|
|     [ CARTA ]           [ VERDADEIRO ]
|                         [ FALSO      ]
|
| Sem caixa externa.
|
*/

.true-false-game {
    width: min(760px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 360px;
    justify-content: center;
    align-items: center;
    column-gap: 58px;
    padding: 8px 0 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.true-false-card-column {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.true-false-card-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

/*
|--------------------------------------------------------------------------
| Carta
|--------------------------------------------------------------------------
*/

.true-false-playing-card {
    width: 225px;
    height: 310px;
    cursor: pointer;
    perspective: 1200px;
    outline: none;
}

.true-false-playing-card:focus-visible {
    border-radius: 19px;
    outline: 4px solid rgba(193, 37, 250, 0.22);
    outline-offset: 5px;
}

.true-false-playing-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition:
        transform 0.66s cubic-bezier(0.2, 0.72, 0.22, 1);
}

.true-false-playing-card.flipped
.true-false-playing-card-inner {
    transform: rotateY(180deg);
}

.true-false-playing-card-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 5px solid #ffffff;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #c125fa 0%,
            #aa1ee1 58%,
            #9114c5 100%
        );
    box-shadow:
        0 14px 29px rgba(76, 28, 91, 0.20),
        0 2px 8px rgba(0, 0, 0, 0.10);
}

.true-false-playing-card-face::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 12px;
}

.true-false-playing-card-front {
    padding: 28px 20px;
}

.true-false-playing-card-back {
    transform: rotateY(180deg);
    padding: 27px 21px 24px;
}

.true-false-card-logo {
    position: relative;
    z-index: 1;
    width: 150px;
    max-height: 76px;
    object-fit: contain;
}

.true-false-card-front-label {
    position: relative;
    z-index: 1;
    margin-top: 19px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
}

.true-false-card-click-hint {
    position: relative;
    z-index: 1;
    margin-top: 11px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

.true-false-card-corner {
    position: absolute;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.60);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.true-false-card-corner--top {
    top: 18px;
    left: 18px;
}

.true-false-card-corner--bottom {
    right: 18px;
    bottom: 18px;
    transform: rotate(180deg);
}

.true-false-card-back-kicker {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.true-false-card-question {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 174px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.true-false-card-back-hint {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 10px;
    font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| Ver texto completo
|--------------------------------------------------------------------------
|
| Sempre localizado logo embaixo da carta.
| O JS decide se fica visível.
|
*/

.true-false-read-more-row {
    width: 225px;
    min-height: 48px;
    margin: 10px auto 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.true-false-card-read-more {
    display: none !important;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 9px 14px !important;
    border: 2px solid var(--tf-primary) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: var(--tf-primary-dark) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(193, 37, 250, 0.12) !important;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease !important;
}

.true-false-card-read-more.is-visible {
    display: inline-flex !important;
}

.true-false-card-read-more:hover {
    background: var(--tf-primary) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(193, 37, 250, 0.18) !important;
}

.true-false-card-read-more:focus-visible {
    outline: 3px solid rgba(193, 37, 250, 0.22) !important;
    outline-offset: 3px !important;
}

/*
|--------------------------------------------------------------------------
| Respostas
|--------------------------------------------------------------------------
*/

.true-false-answer-column {
    width: 360px;
    min-width: 0;
}

.true-false-answer-heading {
    margin-bottom: 16px;
}

.true-false-answer-heading strong {
    display: block;
    color: var(--tf-text);
    font-size: 19px;
    line-height: 1.2;
}

.true-false-answer-heading p {
    margin: 6px 0 0;
    color: var(--tf-muted);
    font-size: 13px;
    line-height: 1.45;
}

.true-false-answer-actions {
    display: flex;
    flex-direction: column;
    gap: 13px;
    width: 100%;
}

.true-false-answer-button {
    appearance: none;
    width: 100%;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    padding: 13px 17px;
    border: 2px solid transparent;
    border-radius: 13px;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(47, 33, 52, 0.11);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        opacity 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease;
}

.true-false-answer-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47, 33, 52, 0.15);
}

.true-false-answer-button:active:not(:disabled) {
    transform: scale(0.988);
}

.true-false-answer-button:focus-visible {
    outline: 3px solid rgba(193, 37, 250, 0.22);
    outline-offset: 3px;
}

.true-false-answer-button:disabled {
    cursor: default;
    opacity: 0.42;
}

.true-false-answer-button--true {
    background: var(--tf-primary);
}

.true-false-answer-button--true:hover:not(:disabled) {
    background: var(--tf-primary-dark);
}

.true-false-answer-button--false {
    background: var(--tf-danger);
}

.true-false-answer-button--false:hover:not(:disabled) {
    background: var(--tf-danger-dark);
}

.true-false-answer-symbol {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.true-false-answer-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.true-false-answer-copy strong {
    font-size: 15px;
    line-height: 1.1;
}

.true-false-answer-copy small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 500;
}

/*
|--------------------------------------------------------------------------
| Estado das respostas
|--------------------------------------------------------------------------
*/

.true-false-answer-button.is-correct {
    border-color: #26743c;
    background: var(--tf-success);
    opacity: 1;
}

.true-false-answer-button.is-incorrect {
    border-color: #a72e2e;
    background: var(--tf-danger);
    opacity: 1;
}

.true-false-answer-button.is-muted {
    opacity: 0.38;
}

/*
|--------------------------------------------------------------------------
| Feedback
|--------------------------------------------------------------------------
|
| Estrutura idêntica:
| .inline-result
|   .inline-result-card
|     .inline-result-icon
|     .inline-result-content
|       .inline-result-label
|       .inline-result-title
|       .inline-result-message
|
| As classes internas continuam sendo do componente compartilhado.
| Esta regra apenas garante que a classe "visible" realmente mostre o bloco.
|
*/

.true-false-result {
    width: 100%;
    margin: 0 auto;
}

.true-false-result.visible {
    display: block !important;
}

/*
|--------------------------------------------------------------------------
| Próxima atividade
|--------------------------------------------------------------------------
*/

.true-false-next-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.true-false-next-button {
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 10px;
    background: var(--tf-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(193, 37, 250, 0.16);
}

.true-false-next-button:hover {
    background: var(--tf-primary-dark);
}

.true-false-error {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #efbebe;
    border-radius: 10px;
    background: #fdeaea;
    color: #963838;
    font-size: 13px;
    line-height: 1.45;
}

/*
|--------------------------------------------------------------------------
| Rodapé
|--------------------------------------------------------------------------
|
| Não depende de outro CSS.
|
*/

.true-false-footer,
footer.true-false-footer,
.platform-footer.true-false-footer {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto 0 0 !important;
    padding: 14px 18px !important;
    border: 0 !important;
    background: var(--tf-primary-dark) !important;
    color: #ffffff !important;
    text-align: center !important;
}

.true-false-footer p,
footer.true-false-footer p,
.platform-footer.true-false-footer p {
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

/*
|--------------------------------------------------------------------------
| Responsivo
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {
    .true-false-header {
        min-height: 66px;
        padding: 10px 14px;
    }

    .true-false-logo {
        max-width: 180px;
        height: 42px;
    }

    .true-false-page {
        padding: 20px 10px 22px;
    }

    .true-false-shell {
        gap: 14px;
    }

    .true-false-game {
        width: min(500px, 100%);
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 15px;
    }

    .true-false-answer-column {
        width: min(410px, 100%);
    }

    .true-false-answer-heading {
        text-align: center;
    }

    .true-false-answer-actions {
        gap: 10px;
    }

    .true-false-answer-button {
        min-height: 62px;
    }

    .true-false-next-actions {
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .true-false-playing-card {
        width: 198px;
        height: 272px;
    }

    .true-false-card-column {
        width: 210px;
    }

    .true-false-read-more-row {
        width: 198px;
        min-height: 46px;
    }

    .true-false-card-question {
        max-height: 145px;
        font-size: 13px;
        line-height: 1.38;
        -webkit-line-clamp: 8;
    }

    .true-false-answer-button {
        min-height: 56px;
        padding: 10px 13px;
    }

    .true-false-answer-symbol {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

@media (min-width: 900px) and (max-height: 820px) {
    .true-false-page {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .true-false-shell {
        gap: 13px;
    }

    .true-false-game {
        grid-template-columns: 235px 350px;
        column-gap: 52px;
    }

    .true-false-playing-card {
        width: 212px;
        height: 292px;
    }

    .true-false-card-column {
        width: 235px;
    }

    .true-false-read-more-row {
        width: 212px;
        min-height: 46px;
        margin-top: 8px;
    }

    .true-false-card-question {
        max-height: 160px;
        font-size: 14px;
        -webkit-line-clamp: 8;
    }

    .true-false-answer-column {
        width: 350px;
    }

    .true-false-answer-button {
        min-height: 66px;
    }
}
