/* Oktoply Validate — página /blog (.okblog)
   Listagem de posts com filtro por categoria, busca e paginação.
   Herda a fonte do tema; cor de destaque via --okblog-accent (inline). */

.okblog {
    --okblog-accent: #4f46e5;
    --okblog-ink: #1d2327;
    --okblog-muted: #6b7280;
    --okblog-line: #e8eaed;
    --okblog-soft: #f1f3f5;

    max-width: 1140px;
    margin: 0 auto;
    padding: 8px 20px 56px;
    color: var(--okblog-ink);
}

/* O tema força sublinhado nos links do conteúdo — remove dentro do blog. */
.okblog a { text-decoration: none !important; box-shadow: none; border-bottom: 0; }

/* Barra de filtros + busca */
.okblog__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--okblog-line);
    border-radius: 999px;
    box-shadow: 0 10px 30px -20px rgba(16, 24, 40, .25);
    margin-bottom: 40px;
}
.okblog__cats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.okblog__cat {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--okblog-soft);
    color: #3a4049;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.okblog__cat:hover {
    background: color-mix(in srgb, var(--okblog-accent) 14%, #fff);
    color: var(--okblog-accent);
}
.okblog__cat.is-active {
    background: var(--okblog-accent);
    color: #fff;
}

/* Busca */
.okblog__search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--okblog-line);
    border-radius: 999px;
    padding: 4px 4px 4px 16px;
}
.okblog__search input[type="text"] {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    min-width: 150px;
    color: var(--okblog-ink);
    box-shadow: none;
    margin: 0;
    height: auto;
}
.okblog__search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--okblog-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat center;
    background-size: 18px 18px;
    color: #fff;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 0;
}
.okblog__search button:hover { filter: brightness(1.05); }

/* Lista */
.okblog__list {
    display: flex;
    flex-direction: column;
}
.okblog__item {
    display: flex;
    gap: 30px;
    padding: 28px 0;
    border-bottom: 1px solid var(--okblog-line);
}
.okblog__item:first-child { padding-top: 0; }

.okblog__thumb {
    flex: 0 0 320px;
    max-width: 320px;
    display: block;
}
.okblog__thumb img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
}

.okblog__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.okblog__label {
    align-self: flex-start;
    color: var(--okblog-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 8px;
}
.okblog__label:hover { text-decoration: underline; }

.okblog__title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.01em;
}
.okblog__title a {
    color: var(--okblog-ink);
    text-decoration: none;
    box-shadow: none;
    border: 0;
}
.okblog__title a:hover { color: var(--okblog-accent); }

.okblog__excerpt {
    margin: 0 0 14px;
    color: var(--okblog-muted);
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.okblog__meta {
    margin: 0;
    color: var(--okblog-muted);
    font-size: 14px;
}
.okblog__meta strong { color: var(--okblog-ink); }

/* Vazio */
.okblog__empty {
    padding: 48px 0;
    text-align: center;
    color: var(--okblog-muted);
    font-size: 16px;
}

/* Paginação */
.okblog__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.okblog__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--okblog-soft);
    color: #3a4049;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.okblog__page:hover {
    background: color-mix(in srgb, var(--okblog-accent) 14%, #fff);
    color: var(--okblog-accent);
}
.okblog__page.is-active {
    background: var(--okblog-accent);
    color: #fff;
}

/* Mobile */
@media (max-width: 720px) {
    .okblog { padding: 4px 4px 40px; }
    .okblog__bar {
        border-radius: 18px;
        flex-direction: column;
        align-items: stretch;
    }
    .okblog__search { justify-content: space-between; }
    .okblog__item { flex-direction: column; gap: 16px; }
    .okblog__thumb { flex-basis: auto; max-width: none; }
    .okblog__thumb img { height: 200px; }
    .okblog__title { font-size: 22px; }
}
