/* HeBi Blogs v1.3 — terminal directory listing for the /blogs/ index */

/* ============================== */
/* 1. Console filter bar          */
/* ============================== */
.hebi-blogs-bar {
    background: #0a0a0a;
    border: 1px solid rgba(255, 0, 51, 0.3);
    border-radius: 2px;
    padding: 14px 18px 16px;
    margin-bottom: 2.5rem;
    font-family: 'Geist Mono', 'Courier New', monospace;
    box-shadow: 0 0 24px rgba(255, 0, 51, 0.06), inset 0 0 24px rgba(0, 0, 0, 0.4);
}

.hebi-blogs-prompt {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.9rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 0, 51, 0.12);
}

.hebi-blogs-user   { color: #00ff41; font-weight: 700; }
.hebi-blogs-sep    { color: rgba(224, 224, 224, 0.5); }
.hebi-blogs-path   { color: #ff0033; font-weight: 700; }
.hebi-blogs-dollar { color: rgba(224, 224, 224, 0.6); margin: 0 8px 0 2px; }

.hebi-blogs-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff41;
    caret-color: #00ff41;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 2px 0;
}

.hebi-blogs-input::placeholder {
    color: rgba(224, 224, 224, 0.25);
}

/* kill the browser's native search clear button */
.hebi-blogs-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.hebi-blogs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.hebi-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 0, 51, 0.35);
    border-radius: 0;
    color: #ff0033 !important;
    background: rgba(255, 0, 51, 0.04);
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none !important;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hebi-chip:hover,
.hebi-chip:focus-visible {
    color: #00ff41 !important;
    border-color: rgba(0, 255, 65, 0.6);
    background: rgba(0, 255, 65, 0.06);
    box-shadow: 0 0 14px rgba(0, 255, 65, 0.18);
}

.hebi-chip.is-active {
    color: #0a0a0a !important;
    background: #ff0033;
    border-color: #ff0033;
}

.hebi-chip-n {
    opacity: 0.55;
    font-weight: 400;
}

.hebi-blogs-count {
    margin-top: 12px;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    color: rgba(0, 255, 65, 0.65);
    min-height: 1em;
}

/* ============================== */
/* 2. Card shell                  */
/* ============================== */
.hebi-blogs-grid,
.wp-block-post-template {
    counter-reset: hebi-post;
}

.wp-block-post-template > li.wp-block-post {
    position: relative;
    counter-increment: hebi-post;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border: 1px solid rgba(255, 0, 51, 0.22);
    border-radius: 0;
    padding: 0 0 4px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* The card's text lives in a nested group (title + excerpt + meta), not as
   direct children of the <li>. Without this the group only takes its content
   height, so `margin-top:auto` on the meta row has no free space to push
   against and the rows sit at ragged heights across the grid. */
.wp-block-post-template > li.wp-block-post > .wp-block-group {
    flex: 1 1 auto;
    min-height: 0;
}

/* JS filtering sets [hidden]; make sure nothing re-shows it */
.wp-block-post-template > li.wp-block-post[hidden] {
    display: none !important;
}

.wp-block-post-template > li.wp-block-post:hover {
    border-color: rgba(255, 0, 51, 0.6);
    box-shadow: 0 0 28px rgba(255, 0, 51, 0.14), 0 12px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

/* [01] index marker */
.wp-block-post-template > li.wp-block-post::before {
    content: "[" counter(hebi-post, decimal-leading-zero) "]";
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 3px 8px;
    background: rgba(10, 10, 10, 0.88);
    border: 1px solid rgba(255, 0, 51, 0.4);
    color: #ff0033;
    font-family: 'Geist Mono', 'Courier New', monospace;
    font-size: 0.80rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    pointer-events: none;
}

/* ============================== */
/* 3. Featured image              */
/* ============================== */

/* The editor forces aspect-ratio:3/4 inline on these images, which crops
   roughly half the width off 16:9 banner art. Inline styles need !important
   to beat. Scoped to this page's cards only. */
.wp-block-post-template > li.wp-block-post .wp-block-post-featured-image {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding-bottom: 0 !important;
}

.wp-block-post-template > li.wp-block-post .wp-block-post-featured-image img {
    aspect-ratio: 16 / 9 !important;
    width: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.85) contrast(1.05) brightness(0.82);
    transition: filter 0.35s ease, transform 0.5s ease;
}

.wp-block-post-template > li.wp-block-post:hover .wp-block-post-featured-image img {
    filter: saturate(1.15) contrast(1.1) brightness(1);
    transform: scale(1.04);
}

/* scanline texture over the art */
.wp-block-post-template > li.wp-block-post .wp-block-post-featured-image::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.028) 2px,
        rgba(0, 255, 65, 0.028) 4px
    );
}

/* The RGB hover sweep used to live here. It now sits in the theme
   stylesheet as a shared effect so post cards, showroom projects and the
   About avatars all get it from one definition. Nothing needed here. */

/* ============================== */
/* 4. Title + excerpt             */
/* ============================== */
.wp-block-post-template > li.wp-block-post .wp-block-post-title {
    padding: 0 16px;
    margin: 14px 0 8px;
    line-height: 1.25;
}

.wp-block-post-template > li.wp-block-post .wp-block-post-title a {
    color: #e0e0e0 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.wp-block-post-template > li.wp-block-post:hover .wp-block-post-title a,
.wp-block-post-template > li.wp-block-post .wp-block-post-title a:hover {
    color: #00ff41 !important;
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
}

.wp-block-post-template > li.wp-block-post .wp-block-post-excerpt {
    padding: 0 16px;
}

.wp-block-post-template > li.wp-block-post .wp-block-post-excerpt__excerpt {
    color: rgba(224, 224, 224, 0.6) !important;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================== */
/* 5. Metadata row                */
/* ============================== */
.hebi-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 14px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 0, 51, 0.12);
    font-family: 'Geist Mono', 'Courier New', monospace;
    font-size: 0.79rem;
    letter-spacing: 0.08em;
}

.hebi-card-cat {
    padding: 2px 7px;
    border: 1px solid rgba(0, 255, 65, 0.4);
    color: #00ff41 !important;
    background: rgba(0, 255, 65, 0.05);
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hebi-card-cat:hover {
    color: #ff0033 !important;
    border-color: rgba(255, 0, 51, 0.6);
    background: rgba(255, 0, 51, 0.07);
}

.hebi-card-stamp {
    color: rgba(224, 224, 224, 0.4);
}

.hebi-card-sep {
    margin: 0 5px;
    opacity: 0.5;
}

.hebi-card-go {
    margin-left: auto;
    color: #ff0033;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.wp-block-post-template > li.wp-block-post:hover .hebi-card-go {
    opacity: 1;
    transform: translateX(0);
}

/* ============================== */
/* 6. Pagination                  */
/* ============================== */
.wp-block-query-pagination {
    margin-top: 2.5rem;
    font-family: 'Geist Mono', 'Courier New', monospace;
    font-size: 0.86rem;
    letter-spacing: 0.1em;
}

.wp-block-query-pagination a {
    color: #ff0033 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.wp-block-query-pagination a:hover {
    color: #00ff41 !important;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* ============================== */
/* 7. Responsive                  */
/* ============================== */
@media (max-width: 600px) {
    .hebi-blogs-bar {
        padding: 12px 14px 14px;
        margin-bottom: 1.75rem;
    }
    .hebi-blogs-prompt {
        font-size: 0.90rem;
        flex-wrap: wrap;
    }
    .hebi-blogs-input {
        font-size: 0.90rem;
    }
    .hebi-card-meta {
        font-size: 0.75rem;
    }
    .hebi-card-go {
        margin-left: 0;
        opacity: 1;
        transform: none;
    }
}

/* ============================== */
/* 8. Reduced motion              */
/* ============================== */
@media (prefers-reduced-motion: reduce) {
    .wp-block-post-template > li.wp-block-post,
    .wp-block-post-template > li.wp-block-post .wp-block-post-featured-image img,
    .wp-block-post-template > li.wp-block-post .wp-block-post-featured-image::after,
    .hebi-card-go {
        transition: none !important;
    }
    .wp-block-post-template > li.wp-block-post:hover {
        transform: none;
    }
    .wp-block-post-template > li.wp-block-post:hover .wp-block-post-featured-image img {
        transform: none;
    }
    .wp-block-post-template > li.wp-block-post .wp-block-post-featured-image::after {
        display: none;
    }
}
