/* =========================================================
   MÓDULO: MINHA CARREIRA - CARDS PRINCIPAIS + MODAIS
   ========================================================= */

#po-minha-carreira-modulo {
    width: 100%;
    display: block;
}

#po-minha-carreira-cards-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
}

.po-card-acao-principal {
    flex: 1 1 calc(50% - 4px);
    /*min-width: 140px;*/
    min-height: auto;
    padding: 12px;
    /*border: 1px solid #00445d;*/
    border-radius: 8px;
    background: #005F7B;
    color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.po-card-acao-principal:hover,
.po-card-acao-principal:focus-visible {
    transform: translateY(-1px);
    color: #fff !important;
    border-color: rgba(255, 255, 255, .28) !important;
    background: #007AA3 !important;
    /*border-color: rgba(79, 195, 247, 0.32);*/
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    outline: none;
}

.po-card-acao-principal__icone {
    font-size: 18px;
    line-height: 1;
    opacity: 0.95;
}

.po-card-acao-principal__rotulo {
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.po-card-acao-principal--oculto {
    display: none !important;
}

/* =========================================================
   MODAL BASE
   ========================================================= */

.po-modal-acao-cards {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.po-modal-acao-cards.is-open {
    display: block;
}

.po-modal-acao-cards__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 18, 0.72);
    backdrop-filter: blur(3px);
}

.po-modal-acao-cards__dialog {
    position: relative;
    width: min(92vw, 560px);
    max-height: 82vh;
    margin: 8vh auto 0;
    background: #00222e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.po-modal-acao-cards__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0px 0px 15px;
    /*border-bottom: 1px solid rgba(255,255,255,0.06);*/
}

.po-modal-acao-cards__titulo {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.po-modal-acao-cards__fechar {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}

.po-modal-acao-cards__fechar:hover,
.po-modal-acao-cards__fechar:focus-visible {
    background: transparent;
    transform: scale(1.03);
    outline: none;
}

.po-modal-acao-cards__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    overflow: auto;
    align-content: flex-start;
}

/* =========================================================
   CARDS SECUNDÁRIOS DENTRO DOS MODAIS
   ========================================================= */

.po-card-acao-secundaria {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    background: #00445d;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.po-card-acao-secundaria:hover,
.po-card-acao-secundaria:focus-visible {
    transform: translateY(-1px);
    border-color: #01668b;
    background: #01506d;
    outline: none;
}

.po-card-acao-secundaria__icone {
    font-size: 16px;
    line-height: 1;
}

.po-card-acao-secundaria__rotulo {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 480px) {
    .po-card-acao-principal {
        min-width: auto;
        min-height: auto;
        padding: 11px;
    }

    .po-card-acao-principal__rotulo {
        font-size: 9px;
    }

    .po-modal-acao-cards__dialog {
        width: calc(100vw - 16px);
        max-height: 86vh;
        margin-top: 6vh;
        border-radius: 14px;
    }

    .po-card-acao-secundaria {
        min-width: 0;
    }
}

@media (min-width: 768px) {
    #po-minha-carreira-cards-wrap {
        gap: 10px;
    }

    .po-card-acao-principal {
        flex: 1 1 calc(33.333% - 7px);
    }
}

/* =========================================================
   ESTADOS GLOBAIS / SUPORTE À EXPANSÃO
   ========================================================= */

html.po-modal-acao-cards-open,
body.po-modal-acao-cards-open {
    overflow: hidden;
}

.po-modal-acao-cards__vazio {
    width: 100%;
    padding: 24px 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}
