/* === INSIGHTS / BLOG PAGE — BuzzingFrame ===
   Styles for the insights listing page.
   Depends on shared.css for variables, reset, header, footer.
   Matches the canonical homepage (home.css) design system:
   dark glassmorphism, sharp corners, ghost CTAs, grayscale imagery.
   ================================================ */


/* -----------------------------------------------
/* -----------------------------------------------
   1. MASTER LAYOUT & HERO
   ----------------------------------------------- */
.insights-master-grid {
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    gap: 4vw;
    padding: 10vh 0;
    align-items: start;
}

.insights-sidebar {
    position: relative;
    /* Sticky behavior is handled by shared.css .sticky-label */
}

.insights-content-col {
    display: flex;
    flex-direction: column;
}

.insights-hero-block {
    margin-bottom: 60px;
    max-width: 700px;
}

/* insights-page-eyebrow, insights-page-headline, insights-page-subline → shared.css */

/* Override: subline max-width for insights */
.insights-page-subline {
    max-width: 560px;
}


/* -----------------------------------------------
   2. TAG FILTER BAR
   ----------------------------------------------- */
.insights-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insights-filter-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
}

.insights-filter-tag:hover {
    border-color: var(--accent-mint);
    color: var(--accent-mint);
    background: rgba(52, 254, 194, 0.05);
    transform: translateY(-1px);
}

.insights-filter-tag.active {
    border-color: var(--accent-mint);
    background: rgba(52, 254, 194, 0.15);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(52, 254, 194, 0.2);
}


/* -----------------------------------------------
   3. ARTICLE GRID
   ----------------------------------------------- */
.insights-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* CHANGED TO 2 COLS */
    gap: 24px;
    padding-bottom: 0px;
}

/* .insights-page-card glassmorphism/reveal/hover → shared.css */
.insights-page-card {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    /* Override shared.css: disable expensive backdrop-filter on listing grids.
       16 simultaneous blur layers cause scroll jank. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: opacity, transform;
}

.insights-page-card:hover {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


.insights-page-card:hover .insights-page-card-img {
    opacity: 1;
    filter: grayscale(0%);
}

.insights-page-card:hover .insights-page-card-image::after {
    left: 150%;
}

.insights-page-card:hover .insights-page-card-title {
    color: var(--accent-mint);
}

.insights-page-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Disable scan-line animation on listing cards — 16 running
   infinite animations with box-shadow cause scroll jank */
.insights-page-card .scan-line {
    display: none;
}

/* .insights-page-card-image::after shine sweep → shared.css */

/* .insights-page-card-img grayscale/opacity/transition → shared.css */
.insights-page-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.insights-page-card-content {
    padding: 30px;
}

.insights-page-card-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-mint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-bottom: 12px;
    display: block;
}

.insights-page-card-title {
    font-family: var(--font-main);
    font-size: 1.35rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.insights-page-card-excerpt {
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 12px;
}

.insights-page-card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}





/* -----------------------------------------------
   5. RESPONSIVE
   ----------------------------------------------- */

/* --- Tablet landscape --- */
@media (max-width: 1024px) {
    .insights-master-grid {
        grid-template-columns: 1fr;
        padding: 10vh 0 6vh;
    }

    .insights-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insights-sidebar {
        display: none;
    }
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
    .insights-page-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile --- */
@media (max-width: 480px) {
    .insights-master-grid {
        padding: 8vh 0 4vh;
    }

    .insights-page-card-content {
        padding: 18px;
    }

    .insights-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px;
        margin-bottom: 24px;
    }

    .insights-filter-tag {
        white-space: nowrap;
        flex-shrink: 0;
    }
}