/* ==================================================
   PÁGINA DE DETALHES DO DOCUMENTO
================================================== */

.documento-detalhe-page {
    width: 100%;
    min-height: 100vh;

    background: var(--documentos-fundo, #f4f7f9);
    color: var(--documentos-texto, #172b3a);

    font-family:
        "Roboto",
        Arial,
        Helvetica,
        sans-serif;
}

.documento-detalhe-page *,
.documento-detalhe-page *::before,
.documento-detalhe-page *::after {
    box-sizing: border-box;
}

.documento-detalhe-container {
    width: min(100%, 1480px);

    margin-right: auto;
    margin-left: auto;

    padding-right: clamp(20px, 5vw, 72px);
    padding-left: clamp(20px, 5vw, 72px);
}


/* ==================================================
   HERO
================================================== */

.documento-detalhe-hero {
    position: relative;

    overflow: hidden;

    padding-top: 45px;
    padding-bottom: 58px;

    background:
        radial-gradient(circle at 10% 20%,
            rgba(255, 255, 255, 0.14),
            transparent 27%),
        radial-gradient(circle at 85% 25%,
            rgba(158, 183, 59, 0.2),
            transparent 25%),
        linear-gradient(135deg,
            #007fb9 0%,
            #009fe3 55%,
            #34b7ee 100%);
}

.documento-detalhe-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.06) 1px,
            transparent 1px);

    background-size: 44px 44px;

    opacity: 0.32;

    pointer-events: none;
}

.documento-detalhe-hero .documento-detalhe-container {
    position: relative;
    z-index: 1;
}


/* ==================================================
   BOTÃO VOLTAR
================================================== */

.documento-detalhe-voltar {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.92) !important;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none !important;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.documento-detalhe-voltar:hover {
    color: #ffffff !important;

    transform: translateX(-3px);

    text-decoration: none !important;
}


/* ==================================================
   APRESENTAÇÃO
================================================== */

.documento-detalhe-apresentacao {
    display: flex;
    align-items: center;
    gap: 26px;
}

.documento-detalhe-icone {
    width: 92px;
    height: 92px;

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

    flex-shrink: 0;

    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;

    font-size: 38px;

    box-shadow:
        0 20px 42px rgba(0, 78, 118, 0.22);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.documento-detalhe-titulo {
    min-width: 0;
}

.documento-detalhe-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 10px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.documento-detalhe-kicker::before {
    content: "";

    width: 5px;
    height: 17px;

    background: #9eb73b;

    border-radius: 999px;
}

.documento-detalhe-titulo h1 {
    max-width: 1050px;

    margin: 0;

    overflow-wrap: anywhere;

    color: #ffffff;

    font-size: clamp(32px, 3.5vw, 54px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.documento-detalhe-metadados {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 20px;
}

.documento-detalhe-metadado {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 34px;

    padding: 6px 12px;

    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}


/* ==================================================
   SEÇÃO DE CONTEÚDO
================================================== */

.documento-detalhe-secao {
    padding-top: 48px;
    padding-bottom: 72px;
}

.documento-detalhe-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #d7eaf3;
    border-radius: 20px;

    box-shadow:
        0 16px 42px rgba(15, 56, 78, 0.09);
}


/* ==================================================
   CABEÇALHO DO CARD
================================================== */

.documento-detalhe-card-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 24px 28px;

    background:
        linear-gradient(135deg,
            #fbfdfe,
            #f4fbfe);

    border-bottom: 1px solid #d7eaf3;
}

.documento-detalhe-card-titulo {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 14px;
}

.documento-detalhe-card-icone {
    width: 48px;
    height: 48px;

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

    flex-shrink: 0;

    background: #e8f7fd;
    color: #009fe3;

    border: 1px solid #c8eaf7;
    border-radius: 13px;

    font-size: 20px;
}

.documento-detalhe-label {
    display: block;

    margin-bottom: 4px;

    color: #71808d;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;

    text-transform: uppercase;
}

.documento-detalhe-card-titulo h2 {
    margin: 0;

    color: #007daf;

    font-size: 20px;
    font-weight: 900;
    line-height: 1.3;
}

.documento-detalhe-categoria {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;

    padding: 8px 13px;

    background: #e8f7fd;
    color: #007daf;

    border: 1px solid #c8eaf7;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
}


/* ==================================================
   DESCRIÇÃO
================================================== */

.documento-detalhe-descricao {
    min-height: 220px;

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

    padding: clamp(30px, 5vw, 64px);
}

.documento-detalhe-descricao>p {
    width: 100%;
    max-width: 1050px;

    margin: 0;

    color: #344b5b;

    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 400;
    line-height: 1.85;
    text-align: left;

    white-space: normal;
}

.documento-detalhe-sem-descricao {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px 20px;

    background: #f4fbfe;

    border: 1px dashed #bce2f2;
    border-radius: 14px;
}

.documento-detalhe-sem-descricao span {
    width: 40px;
    height: 40px;

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

    flex-shrink: 0;

    background: #e8f7fd;
    color: #009fe3;

    border-radius: 50%;
}

.documento-detalhe-sem-descricao p {
    margin: 0;

    color: #526675;

    font-size: 14px;
}


/* ==================================================
   RODAPÉ DO CARD
================================================== */

.documento-detalhe-rodape {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 22px 28px;

    background: #f8fbfd;

    border-top: 1px solid #d7eaf3;
}

.documento-detalhe-informacao {
    display: flex;
    align-items: center;
    gap: 13px;
}

.documento-detalhe-informacao-icone {
    width: 44px;
    height: 44px;

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

    flex-shrink: 0;

    background: #e8f7fd;
    color: #009fe3;

    border-radius: 12px;

    font-size: 18px;
}

.documento-detalhe-informacao strong {
    display: block;

    margin-bottom: 2px;

    color: #172b3a;

    font-size: 14px;
    font-weight: 800;
}

.documento-detalhe-informacao p {
    margin: 0;

    color: #71808d;

    font-size: 12px;
}

.documento-detalhe-acoes {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}


/* ==================================================
   BOTÕES
================================================== */

.documento-detalhe-botao {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 17px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.documento-detalhe-botao:hover {
    transform: translateY(-2px);

    text-decoration: none !important;
}

.documento-detalhe-botao-secundario {
    background: #ffffff;
    color: #007daf !important;

    border: 1px solid #bce2f2;
}

.documento-detalhe-botao-secundario:hover {
    background: #f4fbfe;
    color: #009fe3 !important;

    border-color: #009fe3;
}

.documento-detalhe-botao-download {
    background: #009fe3;
    color: #ffffff !important;

    border: 1px solid #009fe3;

    box-shadow:
        0 9px 20px rgba(0, 159, 227, 0.22);
}

.documento-detalhe-botao-download:hover {
    background: #007daf;
    color: #ffffff !important;

    border-color: #007daf;

    box-shadow:
        0 12px 25px rgba(0, 159, 227, 0.28);
}


/* ==================================================
   RESPONSIVIDADE
================================================== */

@media screen and (max-width: 900px) {

    .documento-detalhe-card-cabecalho,
    .documento-detalhe-rodape {
        align-items: flex-start;
        flex-direction: column;
    }

    .documento-detalhe-acoes {
        width: 100%;
    }

    .documento-detalhe-botao {
        flex: 1;
    }
}

@media screen and (max-width: 700px) {
    .documento-detalhe-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .documento-detalhe-hero {
        padding-top: 30px;
        padding-bottom: 42px;
    }

    .documento-detalhe-voltar {
        margin-bottom: 24px;
    }

    .documento-detalhe-apresentacao {
        align-items: flex-start;
        gap: 16px;
    }

    .documento-detalhe-icone {
        width: 64px;
        height: 64px;

        border-radius: 17px;

        font-size: 27px;
    }

    .documento-detalhe-titulo h1 {
        font-size: 30px;
    }

    .documento-detalhe-metadados {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .documento-detalhe-secao {
        padding-top: 30px;
        padding-bottom: 48px;
    }

    .documento-detalhe-card {
        border-radius: 16px;
    }

    .documento-detalhe-card-cabecalho {
        padding: 20px;
    }

    .documento-detalhe-categoria {
        white-space: normal;
    }

    .documento-detalhe-descricao {
        min-height: 180px;

        padding: 30px 20px;
    }

    .documento-detalhe-descricao>p {
        font-size: 16px;
        line-height: 1.75;
    }

    .documento-detalhe-rodape {
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .documento-detalhe-apresentacao {
        flex-direction: column;
    }

    .documento-detalhe-icone {
        width: 58px;
        height: 58px;
    }

    .documento-detalhe-titulo h1 {
        font-size: 27px;
    }

    .documento-detalhe-card-titulo {
        align-items: flex-start;
    }

    .documento-detalhe-acoes {
        flex-direction: column;
    }

    .documento-detalhe-botao {
        width: 100%;
    }

    .documento-detalhe-informacao {
        align-items: flex-start;
    }
}

/* =========================================
   ÍCONES UIKIT
========================================= */

.documento-detalhe-page [uk-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.documento-detalhe-voltar svg {
    width: 15px;
    height: 15px;
}

.documento-detalhe-icone svg {
    width: 40px;
    height: 40px;
}

.documento-detalhe-metadado svg {
    width: 15px;
    height: 15px;
}

.documento-detalhe-card-icone svg {
    width: 21px;
    height: 21px;
}

.documento-detalhe-categoria svg {
    width: 15px;
    height: 15px;
}

.documento-detalhe-sem-descricao>span svg {
    width: 18px;
    height: 18px;
}

.documento-detalhe-informacao-icone svg {
    width: 20px;
    height: 20px;
}

.documento-detalhe-botao svg {
    width: 16px;
    height: 16px;
}