/* ================================================
   Labareda — Página de Pesquisa
   ================================================ */

#lbd-pesquisa {
    background: #eaeaec;
    min-height: 100vh;
    padding: 0 0 120px;
}

.lbd-search-wrap {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0;
}

/* ── Barra de Busca ─────────────────────────────── */

.lbd-search-form {
    position: relative;
    margin-bottom: 24px;
}

.lbd-search-input {
    width: 100% !important;
    height: 52px !important;
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 100px !important;
    padding: 0 52px 0 24px !important;
    font-size: 15px !important;
    color: #1a1a2e !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
    transition: box-shadow .2s, border-color .2s;
    box-sizing: border-box !important;
    font-family: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.lbd-search-input::placeholder {
    color: #bbb !important;
    font-weight: 400 !important;
}

.lbd-search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 106, 0, .15) !important;
    border-color: rgba(255, 106, 0, .4) !important;
}

.lbd-search-btn {
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    color: #FF6A00 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
}

.lbd-search-btn:hover {
    background: none !important;
    opacity: .8;
}

.lbd-search-btn svg {
    display: block;
}

/* ── Barra de Filtros ───────────────────────────── */

.lbd-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 90px;
    font-size: 14px;
    color: #3c434a;
    font-weight: 400;
}

.lbd-result-count {
    font-weight: 400;
    color: #3c434a;
}

.lbd-filter-sep {
    color: #ccc;
    font-weight: 300;
}

.lbd-filter-label {
    color: #3c434a;
}

.lbd-filter-ou {
    color: #3c434a;
    font-size: 14px;
}

/* ── Dropdown (Indústria / Serviço) ─────────────── */

.lbd-dropdown {
    position: relative;
}

.lbd-dropdown__trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 14px !important;
    border-radius: 100px !important;
    border: 1.5px solid #FF6A00 !important;
    background: #fff !important;
    color: #FF6A00 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: background .15s !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.lbd-dropdown__trigger:hover,
.lbd-dropdown__trigger:focus {
    background: #fff3ec !important;
    color: #FF6A00 !important;
    border-color: #FF6A00 !important;
}

.lbd-dropdown--active .lbd-dropdown__trigger {
    background: #fff3ec !important;
}

.lbd-dropdown__arrow {
    transition: transform .2s;
    flex-shrink: 0;
}

.lbd-dropdown--open .lbd-dropdown__arrow {
    transform: rotate(180deg);
}

.lbd-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    list-style: none;
    margin: 0;
    padding: 6px;
    min-width: 180px;
    z-index: 100;
}

.lbd-dropdown--open .lbd-dropdown__menu {
    display: block;
}

.lbd-dropdown__item {
    display: block !important;
    padding: 9px 14px !important;
    font-size: 14px !important;
    color: #3c434a !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: background .15s !important;
    white-space: nowrap !important;
}

.lbd-dropdown__item:hover {
    background: #fff3ec !important;
    color: #FF6A00 !important;
}

.lbd-dropdown__item--selected {
    color: #FF6A00 !important;
    font-weight: 600 !important;
}

.lbd-dropdown__clear {
    color: #aaa;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    margin-bottom: 4px;
    padding-bottom: 10px;
}

.lbd-dropdown__clear:hover {
    color: #FF6A00;
    background: transparent;
}

/* ── Seção de Resultados ────────────────────────── */

.lbd-results-section {
    margin-bottom: 210px;
}

.lbd-results-section:last-of-type {
    margin-bottom: 0;
}

.lbd-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #aaa;
    margin: 0 0 90px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d4d4d6;
}

/* ── Grid de Cards ──────────────────────────────── */

.lbd-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
    row-gap: 90px;
}

/* ── Card ───────────────────────────────────────── */

.lbd-card {
    display: flex !important;
    flex-direction: column !important;
    text-decoration: none !important;
    color: inherit !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: transform .2s !important;
}

.lbd-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: none !important;
}

.lbd-card__image {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #e4e4e6 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lbd-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lbd-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lbd-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0;
}

.lbd-card__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 10px !important;
    line-height: 1.35 !important;
}

.lbd-card__desc {
    font-size: 14px !important;
    color: #787c82 !important;
    line-height: 1.6 !important;
    margin: 0 0 14px !important;
    flex: 1;
}

/* ── Tags (categorias e serviços) ───────────────── */

.lbd-card__tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: auto !important;
}

/* Categoria (Indústria) — pill branco sólido */
.lbd-card__tag--cat {
    display: inline-block !important;
    padding: 4px 14px !important;
    border-radius: 100px !important;
    background: #ffffff !important;
    border: 1.5px solid #ffffff !important;
    color: #FF6A00 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

/* Tag (Serviço) — pill transparente com borda branca */
.lbd-card__tag--tag {
    display: inline-block !important;
    padding: 4px 14px !important;
    border-radius: 100px !important;
    background: transparent !important;
    border: 1.5px solid #ffffff !important;
    color: #FF6A00 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

/* ── Grid de Artigos (3 colunas) ───────────────── */

.lbd-cards-grid--artigos {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 90px;
}

/* ── Meta (data + tempo de leitura) ────────────── */

.lbd-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 13px;
    color: #787c82;
}

.lbd-card__date {
    color: #787c82;
}

.lbd-card__readtime {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #787c82;
}

/* ── Sem resultados ─────────────────────────────── */

.lbd-no-results {
    text-align: center;
    padding: 60px 0;
    color: #aaa;
    font-size: 15px;
}

/* ── Responsivo ─────────────────────────────────── */

@media (max-width: 768px) {
    #lbd-pesquisa {
        padding: 32px 0 60px;
    }

    .lbd-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lbd-cards-grid--artigos {
        grid-template-columns: 1fr;
    }

    .lbd-filter-bar {
        gap: 8px;
        font-size: 14px;
    }
}
