/* ==========================================================================
   OfficeGest Modern — Blog styles
   single.html / home.html / archive.html
   ========================================================================== */

/* ==========================================================================
   POST HERO (single)
   ========================================================================== */
.og-post-hero {
    position: relative;
}

.og-post-hero .wp-block-post-terms {
    display: inline-block;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--brand-secondary) !important;
    margin: 0;
}

.og-post-hero .wp-block-post-terms::before {
    content: "// ";
}

.og-post-hero .wp-block-post-terms a {
    color: var(--wp--preset--color--brand-secondary) !important;
    text-decoration: none;
    transition: color 180ms ease;
}

.og-post-hero .wp-block-post-terms a:hover {
    color: var(--wp--preset--color--brand-accent) !important;
    text-decoration: underline;
}

.og-post-hero .wp-block-post-title {
    color: var(--wp--preset--color--text);
}

/* Meta (data + autor) lado a lado */
.og-post-meta {
    align-items: center;
    margin-top: 1rem !important;
}

.og-post-meta .wp-block-post-date,
.og-post-meta .wp-block-post-author-name {
    margin: 0 !important;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.8125rem !important;
    color: var(--wp--preset--color--muted) !important;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.og-post-meta .wp-block-post-date::before {
    content: "📅 ";
    margin-right: 0.25rem;
    opacity: 0.7;
}

.og-post-meta .wp-block-post-author-name::before {
    content: "✍ ";
    margin-right: 0.25rem;
    opacity: 0.7;
}

.og-post-meta a {
    color: inherit !important;
    text-decoration: none;
}

/* ==========================================================================
   POST FOOTER (related posts)
   ========================================================================== */
.og-post-footer .og-eyebrow {
    margin-bottom: 0.25rem !important;
}

.og-related-card {
    transition: padding-left 180ms ease;
}

.og-related-card:last-of-type {
    border-bottom: none !important;
}

.og-related-card:hover {
    padding-left: 0.5rem !important;
}

.og-related-card .wp-block-post-terms {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.6875rem !important;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--brand-secondary) !important;
}

.og-related-card .wp-block-post-terms::before {
    content: "// ";
}

.og-related-card .wp-block-post-terms a {
    color: var(--wp--preset--color--brand-secondary) !important;
    text-decoration: none;
}

.og-related-card .wp-block-post-title a {
    color: var(--wp--preset--color--text) !important;
    text-decoration: none;
    transition: color 180ms ease;
}

.og-related-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--brand-secondary) !important;
}

.og-related-card .wp-block-post-date {
    color: var(--wp--preset--color--muted) !important;
    font-size: 0.75rem !important;
}

/* Back to blog link */
.og-back-to-blog {
    color: var(--wp--preset--color--brand-secondary) !important;
    text-decoration: none !important;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.875rem;
    transition: color 180ms ease;
}

.og-back-to-blog:hover {
    color: var(--wp--preset--color--brand-accent) !important;
}

/* ==========================================================================
   BLOG HERO (home + archive)
   ========================================================================== */
.og-blog-hero {
    position: relative;
}

.og-blog-hero h1,
.og-blog-hero .wp-block-query-title {
    color: var(--wp--preset--color--text);
}

/* Description da term/category */
.og-blog-hero .wp-block-term-description {
    color: var(--wp--preset--color--muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 720px;
}

.og-blog-hero .wp-block-term-description p {
    margin: 0;
}

/* ==========================================================================
   CATEGORY PILLS
   ========================================================================== */
.og-blog-categories {
    align-items: center;
}

.og-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 999px;
    color: var(--wp--preset--color--text);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 180ms ease;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0 0.25rem 0.5rem 0;
}

.og-cat-pill:hover {
    border-color: var(--wp--preset--color--brand-secondary);
    color: var(--wp--preset--color--brand-secondary);
    background: var(--wp--preset--color--surface);
}

.og-cat-pill.is-current {
    background: linear-gradient(135deg, var(--wp--preset--color--brand-primary), var(--wp--preset--color--brand-secondary));
    border-color: transparent;
    color: var(--wp--preset--color--white);
}

.og-cat-pill.is-current:hover {
    color: var(--wp--preset--color--white);
}

/* ==========================================================================
   BLOG GRID — cards de posts
   ========================================================================== */
.og-blog-grid {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.og-blog-grid > li {
    margin: 0 !important;
    list-style: none;
    display: flex;
}

.og-blog-card {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    min-height: 240px;
}

.og-blog-card:hover {
    border-color: var(--wp--preset--color--brand-secondary) !important;
    transform: translateY(-3px);
    box-shadow: var(--og-shadow-md);
}

/* Categoria (eyebrow no topo do card) */
.og-blog-card .wp-block-post-terms {
    margin: 0 !important;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.6875rem !important;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--brand-secondary) !important;
    line-height: 1;
}

.og-blog-card .wp-block-post-terms::before {
    content: "// ";
}

.og-blog-card .wp-block-post-terms a {
    color: var(--wp--preset--color--brand-secondary) !important;
    text-decoration: none;
}

/* Título */
.og-blog-card .wp-block-post-title {
    margin: 0.5rem 0 0.75rem !important;
}

.og-blog-card .wp-block-post-title a {
    color: var(--wp--preset--color--text) !important;
    text-decoration: none !important;
    transition: color 180ms ease;
}

.og-blog-card .wp-block-post-title a:hover {
    color: var(--wp--preset--color--brand-secondary) !important;
}

/* Excerpt */
.og-blog-card .wp-block-post-excerpt p,
.og-blog-card .wp-block-post-excerpt {
    color: var(--wp--preset--color--muted) !important;
    margin: 0 0 1rem !important;
}

.og-blog-card .wp-block-post-excerpt__more-link {
    display: none !important;
}

/* Footer do card (data + Ler →) */
.og-blog-card .wp-block-post-date {
    margin: 0 !important;
    color: var(--wp--preset--color--muted) !important;
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.6875rem !important;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.wp-block-query-pagination {
    margin-top: 3rem !important;
    align-items: center;
    gap: 0.25rem !important;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.875rem;
    border-radius: var(--og-r-md, 10px);
    color: var(--wp--preset--color--text) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 180ms ease;
    border: 1px solid transparent;
}

.wp-block-query-pagination a:hover {
    background: var(--wp--preset--color--surface);
    border-color: var(--wp--preset--color--border);
    color: var(--wp--preset--color--brand-secondary) !important;
}

.wp-block-query-pagination .page-numbers.current {
    background: var(--wp--preset--color--brand-secondary);
    color: var(--wp--preset--color--white) !important;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    font-family: var(--wp--preset--font-family--mono);
    font-size: 0.8125rem !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .og-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .og-blog-grid {
        grid-template-columns: 1fr;
    }

    .og-blog-categories {
        gap: 0.375rem !important;
    }

    .og-cat-pill {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}
