/* PROPesquisa - Badges de tipo para vitrine unificada (Fase 3)
   Cores: competencia=verde #10b981, demanda=laranja #f59e0b
*/

.card-competencia {
    border-left: 4px solid #10b981;
}
.card-demanda {
    border-left: 4px solid #f59e0b;
}

/* Rodape arredondado do card-demanda — espelha o radius que o card-tecnologia
   ganha via .vitrine-content. Aplica-se ao ultimo elemento visivel do card,
   que pode ser a imagem (quando ha picture) ou a linha "Outras Demandas". */
.card-demanda > .vitrine-image-container:last-child {
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    padding-bottom: 1rem;
    background-color: #fff;
}
.card-demanda > .vitrine-image-container:last-child .vitrine-image {
    border-radius: 12px;
}
.card-demanda > .vitrine-demandas-row:last-child {
    padding-bottom: 1.25rem;
    border-radius: 0 0 18px 18px;
}

.badge-tipo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'IBM Plex Mono', 'Outfit', system-ui, sans-serif;
}

.badge-tipo-competencia {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-tipo-demanda {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-tipo .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.badge-tipo-competencia .badge-dot { background: #10b981; }
.badge-tipo-demanda .badge-dot { background: #f59e0b; }

/* Badge "Oferece premio" — vive na mesma linha dos badges de tipo, mas e um
   BOTAO: abre/fecha o painel .demanda-premio-panel logo abaixo.
   Verde-esmeralda de proposito, para nao se confundir com o laranja que
   identifica "demanda" nem com a pill de evento. */
.badge-premio {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'IBM Plex Mono', 'Outfit', system-ui, sans-serif;
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.38);
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}
.badge-premio:hover {
    background: rgba(16, 185, 129, 0.24);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.22);
}
.badge-premio:focus-visible {
    outline: 2px solid #047857;
    outline-offset: 2px;
}
.badge-premio-caret {
    font-size: 0.62rem;
    transition: transform 0.18s ease;
}
.badge-premio[aria-expanded="true"] .badge-premio-caret {
    transform: rotate(180deg);
}

.demanda-premio-panel {
    margin: 0.6rem 0 0.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-left: 3px solid #10b981;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.06);
}
.demanda-premio-tipos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.demanda-premio-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #fff;
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.demanda-premio-linha {
    margin: 0 0 0.3rem;
    font-size: 0.86rem;
    color: #334155;
}
.demanda-premio-linha strong { color: #065f46; }
.demanda-premio-desc {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #475569;
    text-align: justify;
    /* Texto livre da empresa: quebra sempre, mesmo sem espacos. */
    overflow-wrap: anywhere;
}
/* Rodape do painel: so o icone de alerta, alinhado a direita sobre a linha
   divisoria. Quem abriu o painel quer ver o premio — o aviso legal fica a um
   clique de distancia, sem competir com a oferta. */
.demanda-premio-rodape {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.7rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(16, 185, 129, 0.3);
}
.demanda-premio-aviso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(100, 116, 139, 0.3);
    background: transparent;
    color: #94a3b8;
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.demanda-premio-aviso-btn:hover,
.demanda-premio-aviso-btn[aria-expanded="true"] {
    color: #b45309;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.45);
}
.demanda-premio-aviso-btn:focus-visible {
    outline: 2px solid #b45309;
    outline-offset: 2px;
}

/* Aviso legal: discreto e escondido atras do botao acima — a oferta e da
   empresa, nao do MCTEA nem da organizacao do evento. */
.demanda-premio-aviso {
    margin: 0.45rem 0 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #64748b;
}
.demanda-premio-aviso[hidden] {
    display: none !important;
}

/* Filtros de tipo no topo da vitrine (Task 10) */
.vitrine-tipo-filtros {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.vitrine-tipo-filtros .filtro-tipo {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    user-select: none;
}
.vitrine-tipo-filtros .filtro-tipo input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.vitrine-tipo-filtros .filtro-tipo.tipo-competencia {
    border-color: rgba(16, 185, 129, 0.4);
    color: #047857;
}
.vitrine-tipo-filtros .filtro-tipo.tipo-demanda {
    border-color: rgba(245, 158, 11, 0.4);
    color: #b45309;
}
.vitrine-tipo-filtros .filtro-tipo:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Hide cards by tipo - controlado via JS adicionando classes no container */
.vitrine-hide-competencias .card-competencia,
.vitrine-hide-competencias [data-tipo="competencia"] {
    display: none !important;
}
.vitrine-hide-demandas .card-demanda,
.vitrine-hide-demandas [data-tipo="demanda"] {
    display: none !important;
}

/* Detail panel - botao de acao desabilitado (Demanda sem aceito_contato) */
.vrg-dp-action-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e5e7eb;
    color: #6b7280;
}

/* PROPesquisa Fase 3 - Botoes nos cards de Demanda (feed principal) */
.vitrine-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.vitrine-action-btn:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    transform: translateY(-1px);
}

.vitrine-demandas-btn:hover {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: #f59e0b !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Demanda card - tipo badge no canto */
.demanda-tipo-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

/* My-demanda border treatment (mesma cor de my-tech mas para Demanda) */
.card-demanda.my-tech {
    border-color: #f59e0b !important;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}
