/* ─── Halo Blog Builder Base Styles ─────────────────────────────────────── */

/* Blog Grid */
.halo-blog-grid {
    display: grid;
    gap: 24px;
}

.halo-blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.halo-blog-card .blog-thumb {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.halo-blog-card .blog-thumb img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.halo-blog-card:hover .blog-thumb img {
    transform: scale(1.03);
}

.halo-blog-card .blog-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.halo-blog-card .blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.halo-blog-card .blog-categories a {
    text-decoration: none;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.halo-blog-card .blog-title {
    margin: 0 0 8px;
}

.halo-blog-card .blog-title a {
    text-decoration: none;
    color: inherit;
}

.halo-blog-card .blog-title a:hover {
    opacity: 0.75;
}

.halo-blog-card .blog-meta {
    font-size: 0.85em;
    margin-bottom: 8px;
    opacity: 0.7;
}

.halo-blog-card .blog-meta .blog-meta-sep {
    margin: 0 4px;
}

.halo-blog-card .blog-excerpt {
    margin-bottom: 12px;
    line-height: 1.6;
}

.halo-blog-card .blog-read-more a {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

/* Ensure the read-more area sits at the bottom for consistent vertical spacing */
.halo-blog-card .blog-read-more {
    margin-top: auto;
}

/* Post Navigation */
.halo-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.halo-post-nav .nav-prev,
.halo-post-nav .nav-next {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.halo-post-nav .nav-next {
    text-align: right;
    justify-content: flex-end;
}

.halo-post-nav .nav-label {
    display: block;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
    margin-bottom: 4px;
}

.halo-post-nav .nav-title a {
    text-decoration: none;
    color: inherit;
}

.halo-post-nav .nav-title a:hover {
    opacity: 0.75;
}

.halo-post-nav .nav-thumb img {
    display: block;
}

/* Post Meta */
.halo-post-meta.layout-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.halo-post-meta.layout-stacked {
    display: flex;
    flex-direction: column;
}

.halo-post-meta .meta-sep {
    margin: 0 6px;
    opacity: 0.4;
}

.halo-post-meta a {
    text-decoration: none;
    color: inherit;
}

.halo-post-meta a:hover {
    opacity: 0.75;
}

.halo-post-meta .author-avatar img {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}

/* Post Content */
.halo-post-content {
    line-height: 1.7;
}

.halo-post-content img {
    max-width: 100%;
    height: auto;
}

.halo-post-content p {
    margin-bottom: 1em;
}

/* Post Featured Image */
.halo-post-featured-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Pagination */
.halo-blog-pagination {
    text-align: center;
    margin-top: 24px;
}

.halo-blog-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    text-decoration: none;
}

.halo-blog-pagination .page-numbers.current {
    font-weight: 700;
}

/* ─── Production Credits (ACF) ──────────────────────────────────────── */

.halo-post-credits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.halo-post-credits.layout-stacked .credit-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px;
}

.halo-post-credits .credit-label {
    font-weight: 600;
}

.halo-post-credits .credit-sep {
    opacity: 0.4;
    margin: 0 4px;
}

/* ─── Blog Category Filter ─────────────────────────────────────────── */

.halo-blog-cat-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.halo-blog-cat-filter .filter-title {
    margin: 0;
    font-weight: 600;
}

.halo-blog-cat-filter .cat-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.halo-blog-cat-filter.layout-stacked .cat-list {
    flex-direction: column;
    align-items: flex-start;
}

.halo-blog-cat-filter .cat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.halo-blog-cat-filter .cat-item:hover {
    opacity: 0.8;
}

.halo-blog-cat-filter .cat-divider {
    opacity: 0.4;
    user-select: none;
}
