/* ==========================================================
   Vagas Internas Widget — vagas-internas.css
   ========================================================== */

:root {
    --vi-cor-barra: #185FA5;
}

/* Container principal */
.vagas-internas-widget {
    width: 100%;
    box-sizing: border-box;
}

/* Título do widget */
.vagas-internas-titulo {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px 0;
}

/* Accordion wrapper */
.vagas-internas-accordion {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* Item */
.vi-item {
    border-bottom: 1px solid #e2e2e2;
}

.vi-item:last-child {
    border-bottom: none;
}

/* Header (botão) */
.vi-header {
    width: 100% !important;
    background: #fff !important;
    border: none !important;
    border-left: 3px solid var(--vi-cor-barra) !important;
    padding: 12px 14px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: background 0.15s ease !important;
    box-sizing: border-box !important;
    color: #1a1a1a !important;
    border-radius: 0 !important;
    font-family: inherit !important;
}

.vi-header:hover {
    background: #f8f9fb !important;
}

.vi-header:focus {
    outline: 2px solid var(--vi-cor-barra);
    outline-offset: -2px;
}

.vi-header-titulo {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    flex: 1;
    padding-right: 10px;
}

/* Chevron */
.vi-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.vi-header[aria-expanded="true"] .vi-chevron {
    transform: rotate(180deg);
}

/* Corpo expandido */
.vi-body {
    border-left: none;
    background: #f8f9fb;
    padding: 10px 14px 14px 14px;
    border-top: 1px solid #e2e2e2;
}

.vi-body[hidden] {
    display: none;
}

/* Animação de abertura */
.vi-body.vi-opening {
    animation: vi-slide-down 0.2s ease forwards;
}

@keyframes vi-slide-down {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vi-descricao {
    font-size: 12px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

.vi-sem-descricao {
    color: #aaa;
    font-style: italic;
}

/* Mensagem quando não há vagas */
.vagas-internas-sem-vagas {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    border-left: 3px solid var(--vi-cor-barra);
    background: #ffffff;
    padding: 16px 14px;
    box-sizing: border-box;
}

.vi-sem-vagas-principal {
    font-size: 13px;
    color: #555555;
    margin: 0;
    line-height: 1.5;
}

.vi-sem-vagas-secundario {
    font-size: 12px;
    color: #aaaaaa;
    margin: 6px 0 0 0;
    line-height: 1.5;
}

/* ==========================================================
   Responsividade
   ========================================================== */

/* Tablet — ajuste leve de tamanho de fonte */
@media (max-width: 768px) {
    .vagas-internas-titulo {
        font-size: 10px;
    }

    .vi-header {
        padding: 11px 12px;
    }

    .vi-header-titulo {
        font-size: 13px;
    }

    .vi-descricao {
        font-size: 12px;
    }
}

/* Mobile — widget ocupa largura total, tipografia aumenta levemente */
@media (max-width: 480px) {
    .vagas-internas-widget {
        width: 100%;
    }

    .vagas-internas-titulo {
        font-size: 11px;
    }

    .vi-header {
        padding: 13px 14px;
    }

    .vi-header-titulo {
        font-size: 14px;
    }

    .vi-body {
        padding: 10px 14px 16px 14px;
    }

    .vi-descricao {
        font-size: 13px;
    }
}
