/* ── BUSCAR.CSS — Estilos específicos da página de busca de vagas ── */

body {
    background-color: #ffbd59;
    margin: 0;
    padding: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #0f0741;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
    margin-bottom: 24px;
}

.back-btn:hover {
    opacity: 0.9;
}

/* Posicionamento do topo */
.header-top {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.header-top h1 {
    font-family: 'League Spartan', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

/* Alinhamento da barra de busca */
.searchBar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
}

.inputSearch {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 200px;
}

.inputSearch input {
    border: 2px solid #0f0741;
    border-radius: 24px;
    padding: 12px 18px;
    background-color: #fbf6e5;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.inputSearch p {
    color: #0f0741;
    margin: 0;
    margin-left: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.searchBar button {
    align-self: flex-start;
    margin-top: 0;
}

/* Posicionamento do título de vagas */
.vagas-title {
    font-weight: 100;
    color: #0f0741;
    margin-top: 16px;
    margin-bottom: 20px;
}

#app-footer p {
    color: #0f0741;
}

#app-footer {
    border-top: 2px solid #0f0741;
}

/* ── ANIMAÇÃO DE ENTRADA DOS CARDS ── */
@keyframes cardEntrar {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card-horizontal {
    animation: cardEntrar 0.25s ease both;
}

/* delay escalonado para os primeiros cards */
.card-horizontal:nth-child(1) { animation-delay: 0ms; }
.card-horizontal:nth-child(2) { animation-delay: 40ms; }
.card-horizontal:nth-child(3) { animation-delay: 80ms; }
.card-horizontal:nth-child(4) { animation-delay: 120ms; }
.card-horizontal:nth-child(5) { animation-delay: 160ms; }

/* Locais frequentes */

.top-locais-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.top-locais-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f0741;
    margin-right: 4px;
}

.chip-local {
    background-color: #0f0741;
    color: #ffbd59;
    border: 1px solid #0f0741;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chip-local:hover {
    transform: translateY(-1px);
    background-color: #1a0f60;
    box-shadow: 0 2px 5px rgba(15, 7, 65, 0.2);
}

.badge-validade {
    font-size: 0.72rem;
    background: rgba(15, 7, 65, 0.1);
    color: #0f0741;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-block;
    margin-top: 4px;
}

/* ── REGRAS DE RESPONSIVIDADE ── */
@media (max-width: 768px) {
    #app-content {
        padding: 20px 16px !important;
        gap: 24px !important;
    }

    .header-top h1 {
        font-size: 1.5rem;
    }

    .back-btn {
        margin-left: 60px;
    }

    .vagas-title {
        font-size: 1.3rem;
    }

    .searchBar {
        flex-direction: column;
        gap: 12px;
    }

    .inputSearch {
        width: 100%;
        min-width: unset;
    }
}

/* ── FILTROS EXTRAS ── */
.filtros-extras {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.divisor-filtros {
    opacity: 0.35;
    color: #0f0741;
    font-weight: bold;
    margin: 0 4px;
    user-select: none;
}

.chip-filtro {
    background: transparent;
    border: 1.5px solid rgba(15, 7, 65, 0.35);
    color: #0f0741;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.65;
}

.chip-filtro.ativo {
    background: #0f0741;
    border-color: #0f0741;
    color: #ffbd59;
    opacity: 1;
    transform: scale(1.04);
}

.chip-filtro:hover:not(.ativo) {
    opacity: 1;
    border-color: #0f0741;
    background: rgba(15, 7, 65, 0.06);
}

.select-filtro-dia {
    background: transparent;
    border: 1.5px solid rgba(15, 7, 65, 0.35);
    color: #0f0741;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.select-filtro-dia:focus,
.select-filtro-dia:hover {
    opacity: 1;
    border-color: #0f0741;
}

/* ── MODAL DE EDIÇÃO ── */
#modal-editar {
    max-width: 500px; /* Mais largo que o modal normal (320px) */
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    align-items: start;
}

/* Em telas pequenas, volta a empilhar */
@media (max-width: 480px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

/* ── DICA INTELIGENTE ── */
.dica-inteligente {
    background: rgba(255, 255, 255, 0.5);
    border-left: 3px solid #0f0741;
    color: #0f0741;
    padding: 8px 12px;
    border-radius: 4px 8px 8px 4px;
    font-size: 0.85rem;
    font-weight: 700;
    width: 100%;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeDica 0.4s ease;
}
@keyframes fadeDica {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ── BOTÃO EDITAR (LÁPIS) ── */
.btn-edit {
    position: absolute;
    top: 8px;
    right: 34px;
    background: transparent;
    border: 1.5px solid rgba(15, 7, 65, 0.45);
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f0741;
    opacity: 0.72;
    transition: opacity 0.15s, border-color 0.15s, background 0.15s;
    padding: 0;
}

.btn-edit:hover {
    opacity: 1;
    border-color: #0f0741;
    background: rgba(15, 7, 65, 0.07);
}

/* ── CONTAINER DE AÇÕES DO CARD ── */
.card-actions {
    position: absolute;
    top: 18px;
    right: 28px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
}

.card-actions .btn-delete,
.card-actions .btn-edit {
    position: static !important;
}

.badge-unidade-funcionario, .badge-sentido {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #0f0741;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-transform: none;
    vertical-align: middle;
}

.badge-sentido {
    background: #ffbd59;
    color: #0f0741;
}