@import url(./subpage-shell.css);

/* ==========================================================================
   BLOG PAGE — /blog.html
   ========================================================================== */

/* ---- Busca ---- */
.blog-search-container {
    margin: -46px 0 32px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.blog-search-box {
    position: relative;
    width: min(100%, 560px);
}

.blog-search-input {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 15px 48px 15px 22px;
    font-family: var(--font-body);
    font-size: 0.94rem;
    color: var(--color-on-dark);
    transition: border-color .3s var(--ease);
    box-shadow: var(--shadow-soft);
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--color-accent-2);
}

.blog-search-box svg {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
}

/* ---- Lista de posts ---- */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.bcard {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--color-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.bcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.bcard__thumb {
    height: 180px;
    background: var(--color-dark-2) center/cover no-repeat;
}

.bcard__body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
}

.bcard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bcard__category {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

.bcard__meta {
    font-size: 0.78rem;
    color: var(--color-on-dark-muted);
}

.bcard__title {
    margin-top: 14px;
    font-size: 1.3rem;
    color: var(--color-on-dark);
    line-height: 1.28;
}

.bcard__summary {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-on-dark-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bcard__footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bcard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bcard__tag {
    font-size: 0.72rem;
    color: var(--color-on-dark-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.bcard__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--color-accent-2);
    white-space: nowrap;
    transition: gap .2s var(--ease);
}

.bcard:hover .bcard__action {
    gap: 10px;
}

.blog-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--color-text-muted);
    font-size: 0.98rem;
    background: var(--color-bg-soft-2);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

/* ---- Cabeçalho do modal (categoria + meta do post) ---- */
.blog-modal__post-meta {
    font-size: 0.82rem;
    color: var(--color-on-dark-muted);
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   RESPONSIVE
   A lista é sempre coluna única (cards empilhados, um abaixo do outro).
   A partir de 640px o CARD em si vira horizontal (capa à esquerda,
   texto à direita) — isso NÃO quebra a lista em colunas, só muda o
   formato de cada linha da lista.
   ========================================================================== */
@media (min-width: 640px) {
    .bcard {
        grid-template-columns: 260px 1fr;
    }

    .bcard__thumb {
        height: 100%;
    }
}

@media (min-width: 1300px) {
    .bcard {
        grid-template-columns: 320px 1fr;
    }
}
