/* MÓDULO: MINHA CARREIRA - CARDS PRINCIPAIS + MODAIS
   ================== ↓↓↓
   - Mantém o visual dos cards principais do Hero Card
   - Evolui os modais para suportar seções internas e externas
   - Transforma os cards secundários em layout horizontal com thumb à esquerda
   - Prepara a base visual para crescimento futuro
*/

/* BLOCO: BASE DO MÓDULO
   ================== ↓↓↓
   - Estrutura geral do container dos cards principais
*/
#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;
}
/* FIM DO BLOCO: BASE DO MÓDULO
   ================== ↑↑↑ */


/* BLOCO: CARDS PRINCIPAIS
   ================== ↓↓↓
   - Mantém o estilo compacto que você já vinha usando
   - Cards principais do Hero Card: Criar / Gerenciar / Painel
*/
.po-card-acao-principal {
    flex: 1 1 calc(50% - 4px);
    min-height: auto;
    padding: 12px;
    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, .po-card-acao-principal:focus-visible {
    transform: translateY(-1px);
    color: #fff !important;
    border-color: rgba(255, 255, 255, .28) !important;
    background: #00799A !important;
    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;
}
/* FIM DO BLOCO: CARDS PRINCIPAIS
   ================== ↑↑↑ */


/* BLOCO: MODAL BASE
   ================== ↓↓↓
   - Estrutura geral do popup
   - Backdrop, dialog, cabeçalho e corpo rolável
*/
.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(94vw, 620px);
    max-height: 84vh;
    margin: 6vh 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 12px 6px 15px;
    flex: 0 0 auto;
}

.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,
.po-modal-acao-cards__fechar:focus-visible {
    color:#fff;
    background: transparent;
    transform: scale(1.03);
    outline: none;
}

.po-modal-acao-cards__corpo {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 15px 15px 15px;
    box-sizing: border-box;
}
/* FIM DO BLOCO: MODAL BASE
   ================== ↑↑↑ */


/* BLOCO: SEÇÕES DO MODAL
   ================== ↓↓↓
   - Títulos "Ferramentas Internas" e "Ferramentas Externas"
   - Linha divisória ao lado do título
*/
.po-cards-modal-secao {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
}

.po-cards-modal-secao__topo {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.po-cards-modal-secao__titulo {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.po-cards-modal-secao__linha {
    flex: 1 1 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
    display: block;
}
/* FIM DO BLOCO: SEÇÕES DO MODAL
   ================== ↑↑↑ */


/* BLOCO: SUBTÍTULOS DOS GRUPOS EXTERNOS
   ================== ↓↓↓
   - Ex.: Músicas / Imagens / Vídeos / Ferramentas
   - Ex.: Registrar Letras / Distribuir Músicas / etc.
*/
.po-cards-modal-grupo-externo {
    text-align: left;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 6px;
}

.po-cards-modal-grupo-externo__titulo {
    display: inline-block;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}
/* FIM DO BLOCO: SUBTÍTULOS DOS GRUPOS EXTERNOS
   ================== ↑↑↑ */


/* BLOCO: GRIDS DO MODAL
   ================== ↓↓↓
   - Grid base para internos e externos
   - Externos ficam em sequência com seus grupos
*/
.po-modal-acao-cards__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    align-content: flex-start;
    box-sizing: border-box;
}

.po-modal-acao-cards__grid--interno {
    margin-bottom: 30px;
}

.po-modal-acao-cards__externos-wrap {
    width: 100%;
}
/* FIM DO BLOCO: GRIDS DO MODAL
   ================== ↑↑↑ */


/* BLOCO: CARDS SECUNDÁRIOS
   ================== ↓↓↓
   - Cards das funções internas e ferramentas externas
   - Layout horizontal com mídia à esquerda e conteúdo à direita
*/
.po-card-acao-secundaria {
    flex: 1 1 calc(33% - 4px);
    min-width: 0;
    min-height: 70px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    background: #00445d;
    color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
    box-sizing: border-box;
}

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

.po-card-acao-secundaria__midia {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    flex: 0 0 44px;
}

.po-card-acao-secundaria__thumb {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    border-radius: 5px !important;
}

.po-card-acao-secundaria__icone {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.po-card-acao-secundaria__icone img {
border-radius: 0px !important;
}

.po-card-acao-secundaria__conteudo {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.po-card-acao-secundaria__rotulo {
    width: 100%;
    text-align: left;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
    white-space: normal;
    word-break: break-word;
}

.po-card-acao-secundaria__subtexto {
    width: 100%;
    text-align: left;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 500;
    color: #7fd7ff;
    opacity: 0.95;
    white-space: normal;
    word-break: break-word;
}
/* FIM DO BLOCO: CARDS SECUNDÁRIOS
   ================== ↑↑↑ */


/* BLOCO: ESTADOS GLOBAIS / SUPORTE
   ================== ↓↓↓
   - Travamento do scroll do body com modal aberto
   - Estado vazio quando não houver itens
*/
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;
}
/* FIM DO BLOCO: ESTADOS GLOBAIS / SUPORTE
   ================== ↑↑↑ */


/* BLOCO: RESPONSIVO
   ================== ↓↓↓
   - Ajustes finos para telas menores
   - Cards secundários viram 1 coluna em telas bem estreitas
*/
@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: 88vh;
        margin-top: 4vh;
        border-radius: 14px;
    }

    .po-modal-acao-cards__header {
        padding: 14px 10px 6px 12px;
    }

    .po-modal-acao-cards__corpo {
        padding: 0 10px 10px 10px;
    }

    .po-card-acao-secundaria {
        flex: 1 1 calc(50% - 4px);
        min-height: 72px;
        padding: 10px;
    }

    .po-card-acao-secundaria__midia {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        flex-basis: 42px;
    }

    .po-card-acao-secundaria__thumb {
        width: 26px;
        height: 26px;
    }
}

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

    .po-card-acao-principal {
        flex: 1 1 calc(33.333% - 7px);
    }
}
/* FIM DO BLOCO: RESPONSIVO
   ================== ↑↑↑ */
