/*
 * Blog front page hero (2026-10-19). Loaded only by views/blog/index.php; the category and search heroes keep the
 * shared .zapped-blog-hero styles in custom.css. An editorial cover on a dark violet stage, matching the homepage hero:
 * headline, search and the next two articles on the left, the newest article with its artwork on the right.
 */
.zapped-blog-front {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: center;
    overflow: hidden;
    padding: clamp(40px, 5vw, 64px);
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(60% 70% at 78% 30%, rgba(153, 32, 228, .42), transparent 70%),
        radial-gradient(45% 60% at 8% 100%, rgba(217, 70, 239, .18), transparent 70%),
        linear-gradient(160deg, #150d28 0%, #0e0a1b 55%, #0b0912 100%);
    box-shadow: 0 40px 90px rgba(21, 13, 40, .28);
}

/* a faint grid, like the product films, so the stage has texture without noise */
.zapped-blog-front::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(70% 80% at 30% 40%, #000, transparent 75%);
    mask-image: radial-gradient(70% 80% at 30% 40%, #000, transparent 75%);
    pointer-events: none;
}

.zapped-blog-front__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: #e9d5ff;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zapped-blog-front__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d946ef;
    box-shadow: 0 0 0 5px rgba(217, 70, 239, .2);
}

.zapped-blog-front h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 5.6vw, 76px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: .98;
}

.zapped-blog-front h1 span {
    background: linear-gradient(100deg, #f0abfc 0%, #d946ef 45%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.zapped-blog-front__lede {
    max-width: 30rem;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(17px, 1.35vw, 19px);
    line-height: 1.55;
}

/* search: a white pill with the brand button inside */
.zapped-blog-front__search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 30rem;
    margin-top: 30px;
    padding: 6px 6px 6px 48px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28), 0 0 0 6px rgba(255, 255, 255, .06);
}

.zapped-blog-front__search > i,
.zapped-blog-front__search > svg {
    position: absolute;
    left: 20px;
    color: #8b8299;
}

.zapped-blog-front__search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    border: 0;
    background: transparent;
    color: #192033;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.zapped-blog-front__search input[type="search"]::placeholder {
    color: #8b8299;
    font-weight: 500;
}

.zapped-blog-front__search button {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #9920e4, #7b18b8 62%, #d946ef);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
}

.zapped-blog-front__search button:hover {
    filter: brightness(1.08);
}

.zapped-blog-front__search:focus-within {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28), 0 0 0 4px rgba(217, 70, 239, .45);
}

/* also new */
.zapped-blog-front__also {
    margin-top: 34px;
}

.zapped-blog-front__label {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .5);
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zapped-blog-front__also ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zapped-blog-front__mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease;
}

.zapped-blog-front__mini:hover,
.zapped-blog-front__mini:focus-visible {
    border-color: rgba(217, 70, 239, .4);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
}

.zapped-blog-front__mini img {
    flex: 0 0 auto;
    width: 84px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
}

.zapped-blog-front__mini strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.zapped-blog-front__mini small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}

/* the featured article */
.zapped-blog-front__feature {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    color: #192033;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: rotate(.6deg);
    transition: transform .25s ease;
}

.zapped-blog-front__feature:hover {
    transform: rotate(0) translateY(-3px);
}

.zapped-blog-front__feature-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #9920e4, #d946ef);
}

.zapped-blog-front__feature-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.zapped-blog-front__feature:hover .zapped-blog-front__feature-media img {
    transform: scale(1.03);
}

.zapped-blog-front__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(11, 9, 18, .78);
    color: #fff;
    font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.zapped-blog-front__feature-body {
    padding: 22px 26px 26px;
}

.zapped-blog-front__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0 0 10px;
    color: #68748b;
    font-size: 13px;
    font-weight: 600;
}

.zapped-blog-front__meta span:first-child {
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3e8ff;
    color: #7b18b8;
    font-weight: 800;
}

.zapped-blog-front__feature h2 {
    margin: 0;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.zapped-blog-front__feature h2 a {
    color: inherit;
    text-decoration: none;
}

.zapped-blog-front__feature-body > p:not(.zapped-blog-front__meta) {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 0;
    color: #3b4458;
    font-size: 15px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.zapped-blog-front__read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: #7b18b8;
    font-weight: 800;
    text-decoration: none;
}

.zapped-blog-front__read:hover {
    color: #9920e4;
    text-decoration: none;
}

/* the grid below the cover */
.zapped-blog-section-title {
    margin: 44px 0 0;
    color: var(--zb-ink, #192033);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 900;
    letter-spacing: -.02em;
}

.zapped-blog-section-title + .zapped-blog-grid {
    margin-top: 20px;
}

/* topics: one row on the front page, swiped sideways when it does not fit */
.zapped-blog-page > .zapped-blog-front + .zapped-blog-categories {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-top: 26px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.zapped-blog-page > .zapped-blog-front + .zapped-blog-categories::-webkit-scrollbar {
    display: none;
}

.zapped-blog-page > .zapped-blog-front + .zapped-blog-categories .zapped-blog-category-pill {
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .zapped-blog-front {
        grid-template-columns: minmax(0, 1fr);
    }

    .zapped-blog-front__feature {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .zapped-blog-front {
        gap: 28px;
        margin: 0 -8px;
        padding: 30px 20px 22px;
        border-radius: 26px;
    }

    .zapped-blog-front__search {
        padding-left: 42px;
    }

    .zapped-blog-front__search > i,
    .zapped-blog-front__search > svg {
        left: 16px;
    }

    .zapped-blog-front__search button {
        padding: 0 16px;
    }

    .zapped-blog-front__feature-body {
        padding: 18px 18px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zapped-blog-front__feature,
    .zapped-blog-front__feature-media img {
        transition: none;
    }
}

/* ------------------------------------------------------------------ iteration 2
   Desktop: copy over the also-new list on the left, the feature spanning both rows on the right.
   Phones: copy, then the feature (it leads), then the also-new list. The headline holds two lines on desktop. */
.zapped-blog-front {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas:
        "copy feature"
        "also feature";
    row-gap: 0;
    align-items: start;
    padding: clamp(36px, 4.4vw, 58px);
}

.zapped-blog-front__copy { grid-area: copy; }
.zapped-blog-front__feature { grid-area: feature; align-self: center; transform: none; }
.zapped-blog-front__also { grid-area: also; margin-top: 30px; }

.zapped-blog-front h1 {
    font-size: clamp(42px, 4.5vw, 64px);
}

.zapped-blog-front__feature:hover {
    transform: translateY(-3px);
}

@media (max-width: 991.98px) {
    .zapped-blog-front {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "feature"
            "also";
        row-gap: 28px;
    }

    .zapped-blog-front__also {
        margin-top: 0;
    }
}

/* ------------------------------------------------------------------ iteration 3
   The cover fits a laptop screen: a tighter headline and spacing; the article meta stays on one line on phones. */
.zapped-blog-front {
    padding-top: clamp(32px, 3.6vw, 50px);
    padding-bottom: clamp(32px, 3.6vw, 50px);
}

.zapped-blog-front h1 {
    font-size: clamp(40px, 4vw, 58px);
}

.zapped-blog-front__eyebrow {
    margin-bottom: 16px;
}

.zapped-blog-front__lede {
    max-width: 33rem;
    margin-top: 18px;
}

.zapped-blog-front__search {
    margin-top: 24px;
}

.zapped-blog-front__also {
    margin-top: 26px;
}

.zapped-blog-front__also ul {
    gap: 8px;
}

.zapped-blog-front__mini {
    padding: 8px;
}

.zapped-blog-front__mini img {
    width: 76px;
    height: 50px;
}

.zapped-blog-front__meta {
    gap: 4px 12px;
}

.zapped-blog-front__meta span:first-child {
    padding: 2px 9px;
    font-size: 12px;
}

@media (max-width: 575.98px) {
    .zapped-blog-front__meta {
        font-size: 12px;
    }

    .zapped-blog-front__meta time {
        display: none;
    }
}

/* topics row: the fade shows only on a side that has more to scroll, so the last pill is fully visible at the end
   (the script below sets data-more="right|left|both|none"; without it the row simply has no fade) */
.zapped-blog-page > .zapped-blog-front + .zapped-blog-categories {
    -webkit-mask-image: none;
    mask-image: none;
    scroll-padding-inline: 16px;
}

.zapped-blog-page > .zapped-blog-front + .zapped-blog-categories[data-more="right"] {
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
}

.zapped-blog-page > .zapped-blog-front + .zapped-blog-categories[data-more="left"] {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%);
    mask-image: linear-gradient(90deg, transparent, #000 12%);
}

.zapped-blog-page > .zapped-blog-front + .zapped-blog-categories[data-more="both"] {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}


/* ------------------------------------------------------------------ compact cover (search results, pages 2 onward)
   One row: title and where you are on the left, search on the right. Phones stack them. */
.zapped-blog-front.zapped-blog-front--compact {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 30rem);
    grid-template-areas: "copy search";
    align-items: center;
    row-gap: 22px;
    padding: clamp(28px, 3.2vw, 42px) clamp(28px, 4vw, 52px);
}

.zapped-blog-front--compact .zapped-blog-front__search {
    grid-area: search;
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.zapped-blog-front--compact h1 {
    font-size: clamp(32px, 3.4vw, 46px);
    letter-spacing: -.03em;
}

.zapped-blog-front--compact h1 span {
    overflow-wrap: anywhere;
}

.zapped-blog-front--compact .zapped-blog-front__eyebrow {
    margin-bottom: 12px;
}

.zapped-blog-front--compact .zapped-blog-front__eyebrow a {
    color: inherit;
    text-decoration: none;
}

.zapped-blog-front--compact .zapped-blog-front__eyebrow a:hover {
    color: #fff;
}

.zapped-blog-front--compact .zapped-blog-front__lede {
    max-width: none;
    margin-top: 10px;
    font-size: 16px;
}

.zapped-blog-front--compact .zapped-blog-front__lede a {
    margin-left: 6px;
    color: #f0abfc;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(240, 171, 252, .5);
    text-underline-offset: 3px;
}

.zapped-blog-front--compact .zapped-blog-front__lede a:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .zapped-blog-front.zapped-blog-front--compact {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "search";
    }
}

/* no search results */
.zapped-blog-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: clamp(36px, 5vw, 56px) 24px;
    border: 1px solid var(--zb-line-soft, rgba(25, 32, 51, .07));
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: var(--zb-soft-shadow, 0 14px 36px rgba(25, 32, 51, .07));
}

.zapped-blog-empty__icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    margin-bottom: 6px;
    border-radius: 18px;
    background: #f3e8ff;
    color: #7b18b8;
    font-size: 20px;
}

.zapped-blog-empty h2 {
    margin: 0;
    color: var(--zb-ink, #192033);
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 900;
}

.zapped-blog-empty p {
    max-width: 30rem;
    margin: 0;
    color: var(--zb-muted, #68748b);
}

.zapped-blog-empty__button {
    margin-top: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #9920e4, #7b18b8);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.zapped-blog-empty__button:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
}
