﻿/**************************************
GERADOR DE QUESTÕES ADAPTATIVAS
Base visual alinhada à Biblioteca PIT
***************************************/

.pit-questoes-shell {
    min-height: 100vh;
    padding: 48px;
    background: radial-gradient(circle at top left, rgba(225, 6, 0, 0.18), transparent 28%), radial-gradient(circle at bottom right, rgba(56, 70, 84, 0.22), transparent 34%), linear-gradient(135deg, #020409 0%, #07111A 48%, #05080D 100%);
}

    /**************************************
HERO
***************************************/

    .pit-questoes-shell .pit-hero {
        max-width: 1180px;
        min-height: 300px;
        margin: 0 auto 28px auto;
        display: grid;
        grid-template-columns: 1.55fr .8fr;
        gap: 28px;
        align-items: stretch;
        padding: 36px;
        border-radius: var(--pit-radius-lg, 22px);
        background: linear-gradient(145deg, rgba(16, 24, 32, 0.98), rgba(5, 8, 13, 0.98));
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: var(--pit-shadow-heavy, 0 24px 80px rgba(0, 0, 0, 0.50)), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        position: relative;
        overflow: hidden;
    }

        .pit-questoes-shell .pit-hero::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(90deg, rgba(225, 6, 0, 0.12), transparent 22%), radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 24%);
            opacity: 0.75;
        }

        .pit-questoes-shell .pit-hero > * {
            position: relative;
            z-index: 1;
        }

    .pit-questoes-shell .pit-kicker {
        color: var(--pit-red, #E10600);
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 12px;
        font-weight: 800;
        display: inline-flex;
        margin-bottom: 12px;
    }

    .pit-questoes-shell .pit-hero h1 {
        color: var(--pit-white, #FFFFFF);
        font-size: clamp(38px, 5vw, 68px);
        line-height: .95;
        margin: 14px 0 18px;
        font-weight: 900;
        letter-spacing: -0.055em;
    }

    .pit-questoes-shell .pit-hero p {
        color: var(--pit-text-soft, #C7CCD1);
        font-size: 18px;
        line-height: 1.7;
        max-width: 820px;
        margin: 0;
    }

    .pit-questoes-shell .pit-hero-card {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 28px;
        border-radius: var(--pit-radius-md, 18px);
        background: linear-gradient(145deg, rgba(21, 30, 39, 0.96), rgba(10, 16, 22, 0.96));
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 3px solid rgba(225, 6, 0, 0.75);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    }

        .pit-questoes-shell .pit-hero-card span {
            color: var(--pit-red, #E10600);
            text-transform: uppercase;
            letter-spacing: 0.18em;
            font-size: 12px;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .pit-questoes-shell .pit-hero-card strong {
            color: var(--pit-white, #FFFFFF);
            font-size: 28px;
            font-weight: 900;
            line-height: 1.08;
        }

        .pit-questoes-shell .pit-hero-card small {
            color: var(--pit-text-muted, #8A929A);
            margin-top: 10px;
            line-height: 1.55;
            font-size: 14px;
        }

    /**************************************
GRID PRINCIPAL
***************************************/

    .pit-questoes-shell .pit-grid {
        max-width: 1180px;
        margin: 28px auto 0 auto;
        display: grid;
        grid-template-columns: 420px 1fr;
        gap: 28px;
        align-items: start;
    }

    .pit-questoes-shell .pit-panel {
        padding: 28px;
        border-radius: var(--pit-radius-lg, 22px);
        background: linear-gradient(145deg, rgba(11, 17, 24, 0.76), rgba(5, 8, 13, 0.70));
        border: 1px solid rgba(255, 255, 255, 0.07);
        position: relative;
        overflow: hidden;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.30);
    }

        .pit-questoes-shell .pit-panel::before {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(90deg, rgba(225, 6, 0, 0.10), transparent 22%), radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 24%);
            opacity: 0.75;
        }

        .pit-questoes-shell .pit-panel > * {
            position: relative;
            z-index: 1;
        }

        .pit-questoes-shell .pit-panel h2 {
            color: var(--pit-white, #FFFFFF);
            margin: 0 0 20px;
            font-size: 26px;
            font-weight: 900;
            letter-spacing: -0.03em;
        }

            .pit-questoes-shell .pit-panel h2::before {
                content: "";
                display: inline-block;
                width: 22px;
                height: 3px;
                background: var(--pit-red, #E10600);
                margin-right: 10px;
                vertical-align: middle;
                border-radius: 999px;
            }

    /**************************************
FORMULÁRIO
***************************************/

    .pit-questoes-shell .pit-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .pit-questoes-shell label {
        display: flex;
        flex-direction: column;
        gap: 8px;
        color: var(--pit-text-muted, #8A929A);
        font-size: 13px;
        font-weight: 750;
        margin-bottom: 14px;
    }

    .pit-questoes-shell input,
    .pit-questoes-shell select,
    .pit-questoes-shell textarea {
        width: 100%;
        min-height: 48px;
        border-radius: var(--pit-radius-sm, 14px);
        padding: 0 16px;
        color: var(--pit-text-main, #F4F4F4);
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid var(--pit-border, rgba(255, 255, 255, 0.10));
        outline: none;
        font-family: inherit;
        font-weight: 700;
        transition: .2s ease;
    }

    .pit-questoes-shell textarea {
        padding-top: 14px;
        min-height: 126px;
        resize: vertical;
        line-height: 1.5;
    }

        .pit-questoes-shell input::placeholder,
        .pit-questoes-shell textarea::placeholder {
            color: var(--pit-text-muted, #8A929A);
        }

        .pit-questoes-shell input:focus,
        .pit-questoes-shell select:focus,
        .pit-questoes-shell textarea:focus {
            border-color: rgba(225, 6, 0, 0.65);
            background: rgba(225, 6, 0, 0.055);
            box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.10);
        }

    .pit-questoes-shell select {
        appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, var(--pit-red, #E10600) 50%), linear-gradient(135deg, var(--pit-red, #E10600) 50%, transparent 50%);
        background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
        background-size: 5px 5px, 5px 5px;
        background-repeat: no-repeat;
    }

    .pit-questoes-shell .pit-check {
        flex-direction: row !important;
        align-items: center;
        gap: 10px !important;
        color: var(--pit-text-soft, #C7CCD1);
        margin-bottom: 12px;
    }

        .pit-questoes-shell .pit-check input {
            width: 18px;
            min-height: 18px;
            height: 18px;
            accent-color: var(--pit-red, #E10600);
        }

    /**************************************
BOTÕES
***************************************/

    .pit-questoes-shell .pit-btn-primary,
    .pit-questoes-shell .pit-btn-secondary,
    .pit-questoes-shell .pit-answer-box button {
        min-height: 52px;
        border-radius: 999px;
        padding: 0 22px;
        font-family: inherit;
        font-weight: 850;
        cursor: pointer;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        transition: .2s ease;
    }

    .pit-questoes-shell .pit-btn-primary {
        width: 100%;
        background: linear-gradient(135deg, var(--pit-red, #E10600), var(--pit-red-dark, #9B0500));
        color: var(--pit-white, #FFFFFF);
        border: 1px solid rgba(225, 6, 0, 0.75);
        box-shadow: var(--pit-shadow-red, 0 12px 30px rgba(225, 6, 0, 0.22)), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    }

        .pit-questoes-shell .pit-btn-primary:hover,
        .pit-questoes-shell .pit-answer-box button:hover {
            transform: translateY(-2px);
            background: linear-gradient(135deg, var(--pit-red-bright, #FF120A), #B80600);
        }

    .pit-questoes-shell .pit-btn-secondary {
        background: rgba(255, 255, 255, 0.06) !important;
        color: var(--pit-text-main, #F4F4F4) !important;
        border: 1px solid var(--pit-border, rgba(255, 255, 255, 0.10)) !important;
        box-shadow: none !important;
    }

        .pit-questoes-shell .pit-btn-secondary:hover {
            transform: translateY(-2px);
            border-color: rgba(225, 6, 0, 0.55) !important;
            background: rgba(225, 6, 0, 0.08) !important;
        }

    .pit-questoes-shell .pit-actions,
    .pit-questoes-shell .pit-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 18px;
    }

    /**************************************
RESUMO / EMPTY
***************************************/

    .pit-questoes-shell .pit-summary,
    .pit-questoes-shell .pit-empty {
        background: linear-gradient(145deg, rgba(21, 30, 39, 0.96), rgba(10, 16, 22, 0.96));
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 3px solid rgba(225, 6, 0, 0.65);
        border-radius: var(--pit-radius-md, 18px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
    }

    .pit-questoes-shell .pit-summary {
        padding: 18px;
        color: var(--pit-text-soft, #C7CCD1);
        margin-bottom: 18px;
        font-weight: 700;
    }

    .pit-questoes-shell .pit-empty {
        padding: 24px;
        color: var(--pit-text-muted, #8A929A);
        border-style: dashed;
        text-align: center;
        line-height: 1.6;
    }

    /**************************************
LISTA DE QUESTÕES
***************************************/

    .pit-questoes-shell .pit-list {
        display: grid;
        gap: 16px;
    }

    .pit-questoes-shell .pit-question-card {
        padding: 22px;
        background: linear-gradient(145deg, rgba(21, 30, 39, 0.96), rgba(10, 16, 22, 0.96));
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 3px solid rgba(225, 6, 0, 0.65);
        border-radius: var(--pit-radius-md, 18px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
        transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }

        .pit-questoes-shell .pit-question-card:hover {
            transform: translateY(-4px);
            border-color: rgba(225, 6, 0, 0.72);
            background: linear-gradient(145deg, rgba(225, 6, 0, 0.10), rgba(10, 16, 22, 0.96));
        }

    .pit-questoes-shell .pit-question-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        margin-bottom: 14px;
    }

        .pit-questoes-shell .pit-question-head span,
        .pit-questoes-shell .pit-question-head strong {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            font-weight: 850;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .pit-questoes-shell .pit-question-head span {
            background: rgba(225, 6, 0, 0.14);
            color: var(--pit-white, #FFFFFF);
            border: 1px solid rgba(225, 6, 0, 0.55);
        }

        .pit-questoes-shell .pit-question-head strong {
            background: rgba(242, 169, 0, 0.12);
            color: var(--pit-warning, #F2A900);
            border: 1px solid rgba(242, 169, 0, 0.38);
        }

    .pit-questoes-shell .pit-question-card h3 {
        margin: 8px 0 12px;
        color: var(--pit-white, #FFFFFF);
        font-size: 22px;
        line-height: 1.18;
        font-weight: 900;
        letter-spacing: -0.025em;
    }

    .pit-questoes-shell .pit-contexto {
        margin: 0 0 14px;
        padding: 16px;
        border-radius: var(--pit-radius-sm, 14px);
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid var(--pit-border, rgba(255, 255, 255, 0.10));
        color: var(--pit-text-soft, #C7CCD1);
        line-height: 1.55;
    }

    .pit-questoes-shell .pit-enunciado {
        color: var(--pit-text-soft, #C7CCD1);
        font-size: 16px;
        line-height: 1.65;
        margin: 0 0 16px;
    }

    .pit-questoes-shell .pit-alternativas {
        display: grid;
        gap: 10px;
        margin: 16px 0;
    }

        .pit-questoes-shell .pit-alternativas div {
            padding: 14px;
            border: 1px solid var(--pit-border, rgba(255, 255, 255, 0.10));
            border-radius: var(--pit-radius-sm, 14px);
            background: rgba(255, 255, 255, 0.045);
            color: var(--pit-text-soft, #C7CCD1);
            line-height: 1.5;
        }

        .pit-questoes-shell .pit-alternativas b {
            color: var(--pit-red, #E10600);
            margin-right: 5px;
        }

    .pit-questoes-shell .pit-question-footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
        color: var(--pit-text-muted, #8A929A);
        font-size: 13px;
        font-weight: 700;
        border-top: 1px solid var(--pit-border, rgba(255, 255, 255, 0.10));
        padding-top: 14px;
        margin-top: 16px;
    }

    /**************************************
RESPOSTA / FEEDBACK
***************************************/

    .pit-questoes-shell .pit-answer-box {
        display: flex;
        gap: 10px;
        margin-top: 16px;
    }

        .pit-questoes-shell .pit-answer-box input {
            flex: 1;
            min-width: 0;
        }

        .pit-questoes-shell .pit-answer-box button {
            background: linear-gradient(135deg, var(--pit-red, #E10600), var(--pit-red-dark, #9B0500));
            color: var(--pit-white, #FFFFFF);
            border: 1px solid rgba(225, 6, 0, 0.75);
            box-shadow: var(--pit-shadow-red, 0 12px 30px rgba(225, 6, 0, 0.22)), inset 0 1px 0 rgba(255, 255, 255, 0.20);
        }

    .pit-questoes-shell .pit-feedback {
        margin-top: 14px;
        padding: 16px;
        border-radius: var(--pit-radius-sm, 14px);
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid var(--pit-border, rgba(255, 255, 255, 0.10));
        color: var(--pit-text-soft, #C7CCD1);
        line-height: 1.6;
    }

        .pit-questoes-shell .pit-feedback:empty {
            display: none;
        }

    .pit-questoes-shell .pit-ok {
        color: var(--pit-success, #20C46B);
        font-weight: 900;
    }

    .pit-questoes-shell .pit-erro {
        color: var(--pit-danger, #E10600);
        font-weight: 900;
    }

    .pit-questoes-shell .pit-feedback summary {
        cursor: pointer;
        color: var(--pit-red, #E10600);
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .pit-questoes-shell .pit-feedback p {
        margin-bottom: 0;
    }

/**************************************
RESPONSIVO
***************************************/

@media (max-width: 1100px) {
    .pit-questoes-shell .pit-hero {
        grid-template-columns: 1fr;
    }

    .pit-questoes-shell .pit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .pit-questoes-shell {
        padding: 24px;
    }

        .pit-questoes-shell .pit-hero,
        .pit-questoes-shell .pit-panel {
            padding: 28px;
            border-radius: 18px;
        }

            .pit-questoes-shell .pit-hero h1 {
                font-size: 34px;
            }
}

@media (max-width: 640px) {
    .pit-questoes-shell {
        padding: 16px;
    }

        .pit-questoes-shell .pit-form-grid {
            grid-template-columns: 1fr;
        }

        .pit-questoes-shell .pit-actions,
        .pit-questoes-shell .pit-toolbar,
        .pit-questoes-shell .pit-answer-box {
            flex-direction: column;
        }

            .pit-questoes-shell .pit-answer-box button,
            .pit-questoes-shell .pit-btn-secondary,
            .pit-questoes-shell .pit-btn-primary {
                width: 100%;
            }

        .pit-questoes-shell .pit-hero,
        .pit-questoes-shell .pit-panel {
            padding: 22px;
        }
}
