/**
 * Archive & Category Page Styles — Premium Design
 *
 * Cinematic hero headers, featured posts, filter bars,
 * and content grids for all 9 SAG categories.
 *
 * @package GtaLobby
 */

/* ==========================================================================
   ARCHIVE LAYOUT (generic archives)
   ========================================================================== */

.gl-archive__layout {
    display: grid;
    grid-template-columns: 1fr var(--gl-sidebar-width);
    gap: var(--gl-space-8);
    align-items: start;
    padding-top: var(--gl-space-4);
    padding-bottom: var(--gl-space-12);
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */

.gl-page__layout {
    display: grid;
    grid-template-columns: 1fr var(--gl-sidebar-width);
    gap: var(--gl-space-8);
    align-items: start;
    padding-top: var(--gl-space-4);
    padding-bottom: var(--gl-space-12);
}

.gl-page__main .gl-article--page .gl-article__title {
    font-size: var(--gl-font-size-4xl);
    margin-bottom: var(--gl-space-6);
}

/* ==========================================================================
   GENERIC ARCHIVE HEADER
   ========================================================================== */

.gl-archive-header {
    padding: var(--gl-space-8) 0;
    background-color: var(--gl-color-surface);
    border-bottom: 1px solid var(--gl-color-border);
}

.gl-archive-header__title {
    font-size: var(--gl-font-size-3xl);
    margin-bottom: var(--gl-space-2);
}

.gl-archive-header__desc {
    font-size: var(--gl-font-size-lg);
    color: var(--gl-color-text-light);
    max-width: var(--gl-reading-width);
}

.gl-category-header__breadcrumb,
.gl-archive-header__breadcrumb {
    font-size: var(--gl-font-size-sm);
    color: var(--gl-color-text-light);
    margin-bottom: var(--gl-space-3);
}

.gl-category-header__breadcrumb a,
.gl-archive-header__breadcrumb a {
    color: var(--gl-color-text-light);
    text-decoration: none;
}

.gl-category-header__breadcrumb a:hover,
.gl-archive-header__breadcrumb a:hover {
    color: var(--gl-color-accent);
}

/* ==========================================================================
   CATEGORY HERO HEADER — Cinematic Full-Width
   ========================================================================== */

.gl-cat-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.gl-cat-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
}

.gl-cat-hero:hover .gl-cat-hero__bg {
    transform: scale(1.03);
}

.gl-cat-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(6, 7, 20, 0.98) 0%,
            rgba(6, 7, 20, 0.88) 25%,
            rgba(6, 7, 20, 0.7) 45%,
            rgba(6, 7, 20, 0.45) 65%,
            rgba(6, 7, 20, 0.25) 80%,
            rgba(6, 7, 20, 0.15) 100%
        ),
        radial-gradient(ellipse at 20% 80%, rgba(255, 44, 152, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(39, 217, 255, 0.04) 0%, transparent 50%);
}

.gl-cat-hero__glow {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--cat-accent) 30%, transparent) 0%, color-mix(in srgb, var(--cat-accent) 10%, transparent) 40%, transparent 70%);
    filter: blur(45px);
    pointer-events: none;
}

.gl-cat-hero__inner {
    position: relative;
    z-index: 2;
    padding: var(--gl-space-16) 0 var(--gl-space-10);
    width: 100%;
}

.gl-cat-hero__breadcrumb {
    font-size: var(--gl-font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--gl-space-4);
}

.gl-cat-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.gl-cat-hero__breadcrumb a:hover {
    color: var(--cat-accent);
}

.gl-cat-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--gl-radius-xl);
    background: color-mix(in srgb, var(--cat-accent) 15%, rgba(6, 7, 20, 0.6));
    border: 2px solid color-mix(in srgb, var(--cat-accent) 30%, transparent);
    color: var(--cat-accent);
    margin-bottom: var(--gl-space-4);
    backdrop-filter: blur(8px);
    box-shadow:
        0 0 20px color-mix(in srgb, var(--cat-accent) 20%, transparent),
        0 0 40px color-mix(in srgb, var(--cat-accent) 8%, transparent);
}

.gl-cat-hero__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-4xl);
    font-weight: var(--gl-font-weight-extrabold);
    color: #fff;
    margin: 0 0 var(--gl-space-3);
    letter-spacing: var(--gl-tracking-tight);
    line-height: 1.1;
}

.gl-cat-hero__desc {
    font-size: var(--gl-font-size-lg);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 0 var(--gl-space-4);
    line-height: 1.6;
}

.gl-cat-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--gl-space-3);
    font-size: var(--gl-font-size-sm);
    color: rgba(255, 255, 255, 0.45);
}

.gl-cat-hero__meta strong {
    color: var(--cat-accent);
    font-weight: var(--gl-font-weight-extrabold);
    font-size: var(--gl-font-size-lg);
}

.gl-cat-hero__divider {
    opacity: 0.3;
}

/* Bottom accent strip */
.gl-cat-hero__strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cat-accent), color-mix(in srgb, var(--cat-accent) 60%, #27D9FF) 50%, var(--cat-accent));
    z-index: 3;
}

/* ==========================================================================
   CATEGORY HUBS SECTION
   ========================================================================== */

.gl-cat-hubs {
    background: var(--gl-color-bg-alt);
    padding: var(--gl-space-10) 0;
}

.gl-cat-hubs__header {
    margin-bottom: var(--gl-space-5);
}

.gl-cat-hubs__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-lg);
    font-weight: var(--gl-font-weight-bold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--gl-space-2);
    color: var(--gl-color-text);
}

.gl-cat-hubs__title .gl-icon {
    color: var(--cat-accent);
}

.gl-cat-hubs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--gl-space-3);
}

.gl-cat-hub-card {
    display: flex;
    align-items: center;
    gap: var(--gl-space-3);
    padding: var(--gl-space-4) var(--gl-space-5);
    background: var(--gl-color-surface-raised);
    border: 1px solid var(--gl-color-border);
    border-radius: var(--gl-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gl-cat-hub-card:hover {
    border-color: var(--cat-accent);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
}

.gl-cat-hub-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--cat-accent);
    transition: width 0.3s ease;
}

.gl-cat-hub-card:hover .gl-cat-hub-card__accent {
    width: 5px;
}

.gl-cat-hub-card__body {
    display: flex;
    align-items: center;
    gap: var(--gl-space-3);
    flex: 1;
    min-width: 0;
}

.gl-cat-hub-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--gl-radius-md);
    background: color-mix(in srgb, var(--cat-accent) 12%, transparent);
    color: var(--cat-accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gl-cat-hub-card:hover .gl-cat-hub-card__icon {
    background: var(--cat-accent);
    color: #fff;
}

.gl-cat-hub-card__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-bold);
    margin: 0;
    line-height: 1.3;
}

.gl-cat-hub-card__cluster {
    font-size: 11px;
    color: var(--gl-color-text-tertiary);
    font-family: var(--gl-font-mono);
}

.gl-cat-hub-card__count {
    font-size: 11px;
    color: var(--gl-color-text-tertiary);
    font-family: var(--gl-font-mono);
    white-space: nowrap;
    flex-shrink: 0;
}

.gl-cat-hub-card__arrow {
    font-size: var(--gl-font-size-lg);
    color: var(--cat-accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gl-cat-hub-card:hover .gl-cat-hub-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */

.gl-cat-filters {
    background: var(--gl-color-bg);
    border-bottom: 1px solid var(--gl-color-divider);
    padding: var(--gl-space-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--gl-color-bg) 85%, transparent);
}

.gl-cat-filters__bar {
    display: flex;
    gap: var(--gl-space-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    background: var(--gl-color-surface);
    border-radius: var(--gl-radius-lg);
    border: 1px solid var(--gl-color-border);
}

.gl-cat-filters__bar::-webkit-scrollbar {
    display: none;
}

.gl-cat-filter {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-semibold);
    color: var(--gl-color-text-secondary);
    background: transparent;
    border: none;
    padding: var(--gl-space-2) var(--gl-space-4);
    border-radius: var(--gl-radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.gl-cat-filter:hover {
    color: var(--gl-color-text);
    background: color-mix(in srgb, var(--cat-accent) 10%, transparent);
    text-decoration: none;
}

.gl-cat-filter--active {
    background: var(--cat-accent) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--cat-accent) 30%, transparent);
}

/* ==========================================================================
   FEATURED POST
   ========================================================================== */

.gl-cat-content {
    padding: var(--gl-space-10) 0 var(--gl-space-16);
}

.gl-cat-featured {
    margin-bottom: var(--gl-space-10);
}

.gl-cat-featured__image {
    position: relative;
    border-radius: var(--gl-radius-xl);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    min-height: 280px;
}

.gl-cat-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gl-cat-featured:hover .gl-cat-featured__img {
    transform: scale(1.03);
}

.gl-cat-featured__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cat-accent) 15%, var(--gl-color-surface)) 0%, var(--gl-color-surface) 100%);
    color: var(--cat-accent);
    opacity: 0.5;
}

.gl-cat-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(6, 7, 20, 0.95) 0%,
        rgba(6, 7, 20, 0.7) 50%,
        rgba(6, 7, 20, 0.2) 100%
    );
}

.gl-cat-featured__content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 55%;
    padding: var(--gl-space-8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--gl-space-3);
}

.gl-cat-featured__badges {
    display: flex;
    align-items: center;
    gap: var(--gl-space-2);
}

.gl-cat-featured__label {
    font-family: var(--gl-font-mono);
    font-size: 10px;
    font-weight: var(--gl-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cat-accent);
    background: color-mix(in srgb, var(--cat-accent) 15%, transparent);
    padding: 3px 10px;
    border-radius: var(--gl-radius-full);
    border: 1px solid color-mix(in srgb, var(--cat-accent) 25%, transparent);
}

.gl-cat-featured__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-2xl);
    font-weight: var(--gl-font-weight-extrabold);
    line-height: 1.15;
    margin: 0;
    letter-spacing: var(--gl-tracking-tight);
}

.gl-cat-featured__title a {
    color: #fff;
    text-decoration: none;
}

.gl-cat-featured__title a:hover {
    color: var(--cat-accent);
}

.gl-cat-featured__excerpt {
    font-size: var(--gl-font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-cat-featured__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--gl-font-size-xs);
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--gl-space-2);
}

.gl-cat-featured__read {
    font-weight: var(--gl-font-weight-bold);
    color: var(--cat-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.gl-cat-featured__read:hover {
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   POST GRID
   ========================================================================== */

.gl-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gl-space-5);
    margin-bottom: var(--gl-space-10);
}

.gl-cat-card {
    background: var(--gl-color-surface-raised);
    border: 1px solid var(--gl-color-border);
    border-radius: var(--gl-radius-xl);
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.gl-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px color-mix(in srgb, var(--cat-accent) 20%, transparent);
    border-color: color-mix(in srgb, var(--cat-accent) 30%, transparent);
}

.gl-cat-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.gl-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gl-cat-card:hover .gl-cat-card__img {
    transform: scale(1.06);
}

.gl-cat-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cat-accent) 12%, var(--gl-color-surface)) 0%, var(--gl-color-surface) 100%);
    color: var(--cat-accent);
    opacity: 0.5;
    text-decoration: none;
}

/* Badge inside card image */
.gl-cat-card__image .gl-post-type-badge {
    position: absolute;
    top: var(--gl-space-3);
    left: var(--gl-space-3);
    z-index: 2;
}

.gl-cat-card__body {
    display: flex;
    flex-direction: column;
    padding: var(--gl-space-5);
    flex: 1;
}

.gl-cat-card__date {
    font-family: var(--gl-font-mono);
    font-size: 11px;
    color: var(--gl-color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--gl-space-2);
}

.gl-cat-card__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-base);
    font-weight: var(--gl-font-weight-bold);
    line-height: 1.3;
    margin: 0 0 var(--gl-space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-cat-card__title a {
    color: inherit;
    text-decoration: none;
}

.gl-cat-card__title a:hover {
    color: var(--cat-accent);
}

.gl-cat-card__excerpt {
    font-size: var(--gl-font-size-sm);
    color: var(--gl-color-text-light);
    line-height: 1.5;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-cat-card__link {
    display: inline-flex;
    align-items: center;
    margin-top: var(--gl-space-4);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-bold);
    color: var(--cat-accent);
    text-decoration: none;
    transition: gap 0.2s ease;
    gap: 4px;
}

.gl-cat-card:hover .gl-cat-card__link {
    gap: 8px;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.gl-cat-empty {
    text-align: center;
    padding: var(--gl-space-16) var(--gl-space-6);
    background: var(--gl-color-surface-raised);
    border: 1px dashed var(--gl-color-border);
    border-radius: var(--gl-radius-xl);
}

.gl-cat-empty__icon {
    color: var(--cat-accent);
    opacity: 0.35;
    margin-bottom: var(--gl-space-4);
}

.gl-cat-empty h2 {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-xl);
    margin: 0 0 var(--gl-space-2);
}

.gl-cat-empty p {
    color: var(--gl-color-text-secondary);
    max-width: 420px;
    margin: 0 auto;
}

/* ==========================================================================
   SEARCH HEADER
   ========================================================================== */

.gl-search-header {
    padding: var(--gl-space-8) 0;
    background-color: var(--gl-color-surface);
    border-bottom: 1px solid var(--gl-color-border);
    text-align: center;
}

.gl-search-header__title {
    font-size: var(--gl-font-size-2xl);
    margin-bottom: var(--gl-space-4);
}

.gl-search-header__title span {
    color: var(--gl-color-accent);
}

.gl-search-header__form {
    max-width: 500px;
    margin: 0 auto var(--gl-space-3);
}

.gl-search-header__count {
    font-size: var(--gl-font-size-sm);
    color: var(--gl-color-text-light);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.gl-404 {
    text-align: center;
    padding: var(--gl-space-16) 0;
}

.gl-404__code {
    font-family: var(--gl-font-display);
    font-size: 8rem;
    font-weight: var(--gl-font-weight-extrabold);
    line-height: 1;
    color: var(--gl-color-accent);
    opacity: 0.3;
}

.gl-404__title {
    font-size: var(--gl-font-size-3xl);
    margin-bottom: var(--gl-space-3);
}

.gl-404__desc {
    color: var(--gl-color-text-light);
    max-width: var(--gl-reading-width);
    margin: 0 auto var(--gl-space-6);
}

.gl-404__search {
    max-width: 400px;
    margin: 0 auto var(--gl-space-8);
}

.gl-404__subtitle {
    font-size: var(--gl-font-size-xl);
    margin-bottom: var(--gl-space-4);
}

.gl-404__categories {
    margin-bottom: var(--gl-space-8);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
    .gl-cat-featured__content {
        width: 60%;
    }

    .gl-cat-featured__title {
        font-size: var(--gl-font-size-xl);
    }
}

@media (max-width: 991px) {
    .gl-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gl-cat-featured__image {
        aspect-ratio: 16 / 10;
    }

    .gl-cat-featured__content {
        width: 65%;
    }

    .gl-archive__layout,
    .gl-page__layout {
        grid-template-columns: 1fr;
    }

    .gl-cat-hero__title {
        font-size: var(--gl-font-size-3xl);
    }
}

@media (max-width: 767px) {
    .gl-cat-hero {
        min-height: 280px;
    }

    .gl-cat-hero__title {
        font-size: var(--gl-font-size-2xl);
    }

    .gl-cat-hero__desc {
        font-size: var(--gl-font-size-base);
    }

    .gl-cat-hero__icon {
        width: 48px;
        height: 48px;
    }

    .gl-cat-hero__inner {
        padding: var(--gl-space-12) 0 var(--gl-space-8);
    }

    .gl-cat-featured__image {
        aspect-ratio: 16 / 14;
    }

    .gl-cat-featured__overlay {
        background: linear-gradient(
            to top,
            rgba(6, 7, 20, 0.95) 0%,
            rgba(6, 7, 20, 0.6) 60%,
            rgba(6, 7, 20, 0.3) 100%
        );
    }

    .gl-cat-featured__content {
        width: 100%;
        justify-content: flex-end;
        padding: var(--gl-space-5);
    }

    .gl-cat-featured__title {
        font-size: var(--gl-font-size-lg);
    }

    .gl-cat-grid {
        grid-template-columns: 1fr;
        gap: var(--gl-space-4);
    }

    .gl-cat-hubs__grid {
        grid-template-columns: 1fr;
    }

    .gl-cat-filters__bar {
        overflow-x: auto;
    }

    .gl-cat-content {
        padding: var(--gl-space-8) 0 var(--gl-space-12);
    }
}


/* **************************************************************************
   404 PAGE — Cinematic Premium Design
   ************************************************************************** */

/* ---------- Hero Section ---------- */

.gl-404-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 44, 152, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 70% 70%, rgba(39, 217, 255, 0.04) 0%, transparent 70%),
        var(--gl-color-bg);
    text-align: center;
}

/* Subtle dot-grid overlay */
.gl-404-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 1;
}

/* Decorative gradient orbs */
.gl-404-hero__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    will-change: transform;
}

.gl-404-hero__orb--accent {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 15%;
    background: radial-gradient(circle, rgba(255, 44, 152, 0.18) 0%, transparent 70%);
    animation: gl-orb-drift 12s ease-in-out infinite alternate;
}

.gl-404-hero__orb--secondary {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle, rgba(39, 217, 255, 0.14) 0%, transparent 70%);
    animation: gl-orb-drift 10s ease-in-out infinite alternate-reverse;
}

.gl-404-hero__orb--dim {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 44, 152, 0.08) 0%, transparent 70%);
}

@keyframes gl-orb-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

.gl-404-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--gl-space-10) var(--gl-space-4);
}

/* Glitch 404 number */
.gl-404-hero__code {
    font-family: var(--gl-font-display);
    font-size: clamp(8rem, 20vw, 16rem);
    font-weight: var(--gl-font-weight-extrabold);
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #FF2C98 0%, #27D9FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin-bottom: var(--gl-space-4);
    animation: gl-404-flicker 4s ease-in-out infinite;
    user-select: none;
    filter: drop-shadow(0 0 30px rgba(255, 44, 152, 0.4)) drop-shadow(0 0 60px rgba(39, 217, 255, 0.2));
}

/* Glitch pseudo-layers */
.gl-404-hero__code::before,
.gl-404-hero__code::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gl-404-hero__code::before {
    animation: gl-glitch-1 3s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    opacity: 0.7;
}

.gl-404-hero__code::after {
    animation: gl-glitch-2 3s ease-in-out infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    opacity: 0.7;
}

@keyframes gl-404-flicker {
    0%, 92%, 100% { opacity: 1; }
    93% { opacity: 0.7; }
    94% { opacity: 1; }
    95% { opacity: 0.4; }
    96% { opacity: 1; }
}

@keyframes gl-glitch-1 {
    0%, 90%, 100% { transform: none; }
    91% { transform: translateX(-4px) skewX(-1deg); }
    92% { transform: translateX(2px); }
    93% { transform: none; }
}

@keyframes gl-glitch-2 {
    0%, 88%, 100% { transform: none; }
    89% { transform: translateX(4px) skewX(1deg); }
    90% { transform: translateX(-2px); }
    91% { transform: none; }
}

.gl-404-hero__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-3xl);
    font-weight: var(--gl-font-weight-extrabold);
    color: var(--gl-color-text);
    margin: 0 0 var(--gl-space-3);
    letter-spacing: var(--gl-tracking-tight);
}

.gl-404-hero__desc {
    font-size: var(--gl-font-size-lg);
    color: var(--gl-color-text-light);
    max-width: 540px;
    margin: 0 auto var(--gl-space-8);
    line-height: 1.7;
}

/* Glassmorphism search wrapper */
.gl-404-hero__search {
    max-width: 520px;
    margin: 0 auto var(--gl-space-6);
    padding: var(--gl-space-4);
    background: rgba(12, 16, 48, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 44, 152, 0.15);
    border-radius: var(--gl-radius-xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 40px rgba(255, 44, 152, 0.08);
}

/* Home CTA button */
.gl-404-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--gl-space-2);
    padding: var(--gl-space-3) var(--gl-space-6);
    background: linear-gradient(135deg, #FF2C98, #a32cff, #27D9FF, #FF2C98);
    background-size: 300% 100%;
    animation: gl-cta-shimmer 6s ease-in-out infinite;
    color: #fff;
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-bold);
    text-decoration: none;
    border-radius: var(--gl-radius-full);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 44, 152, 0.3);
}

@keyframes gl-cta-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gl-404-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 44, 152, 0.45);
    color: #fff;
    text-decoration: none;
}

/* ---------- Category Pills Section ---------- */

.gl-404-cats {
    padding: var(--gl-space-12) 0;
    background: var(--gl-color-bg-alt, var(--gl-color-bg));
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255, 44, 152, 0.3), rgba(39, 217, 255, 0.2), transparent) 1;
}

.gl-404-cats__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-xl);
    font-weight: var(--gl-font-weight-bold);
    margin: 0 0 var(--gl-space-6);
    display: flex;
    align-items: center;
    gap: var(--gl-space-2);
    color: var(--gl-color-text);
}

.gl-404-cats__title .gl-icon {
    color: #FF2C98;
}

.gl-404-cats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--gl-space-3);
}

/* Individual category pill */
.gl-404-pill {
    display: flex;
    align-items: center;
    gap: var(--gl-space-3);
    padding: var(--gl-space-3) var(--gl-space-4);
    background: linear-gradient(135deg, var(--gl-color-surface-raised, var(--gl-color-surface)), var(--gl-color-surface));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--gl-radius-lg);
    text-decoration: none;
    color: var(--gl-color-text);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gl-404-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pill-accent) 8%, transparent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gl-404-pill:hover {
    border-color: var(--pill-accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 24px color-mix(in srgb, var(--pill-accent) 25%, transparent),
        0 0 0 1px color-mix(in srgb, var(--pill-accent) 15%, transparent);
    text-decoration: none;
    color: var(--gl-color-text);
    background: linear-gradient(135deg, color-mix(in srgb, var(--pill-accent) 6%, var(--gl-color-surface-raised, var(--gl-color-surface))), var(--gl-color-surface));
}

.gl-404-pill:hover::before {
    opacity: 1;
}

.gl-404-pill__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--gl-radius-md);
    background: color-mix(in srgb, var(--pill-accent) 12%, transparent);
    color: var(--pill-accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.gl-404-pill:hover .gl-404-pill__icon {
    background: var(--pill-accent);
    color: #fff;
}

.gl-404-pill__name {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-semibold);
    flex: 1;
    position: relative;
    z-index: 1;
}

.gl-404-pill__count {
    font-family: var(--gl-font-mono);
    font-size: 11px;
    color: var(--gl-color-text-tertiary);
    background: color-mix(in srgb, var(--pill-accent) 8%, transparent);
    padding: 2px 8px;
    border-radius: var(--gl-radius-full);
    position: relative;
    z-index: 1;
}

/* ---------- Recent Content Section ---------- */

.gl-404-recent {
    padding: var(--gl-space-12) var(--gl-space-4) var(--gl-space-16);
    background:
        radial-gradient(ellipse 70% 40% at 30% 80%, rgba(39, 217, 255, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(255, 44, 152, 0.02) 0%, transparent 70%),
        var(--gl-color-bg);
}

.gl-404-recent__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-xl);
    font-weight: var(--gl-font-weight-bold);
    margin: 0 0 var(--gl-space-6);
    display: flex;
    align-items: center;
    gap: var(--gl-space-2);
    color: var(--gl-color-text);
}

.gl-404-recent__title .gl-icon {
    color: #27D9FF;
}


/* **************************************************************************
   SEARCH PAGE — Premium Design
   ************************************************************************** */

/* ---------- Search Hero Header ---------- */

.gl-search-hero {
    position: relative;
    padding: calc(var(--gl-space-16) + var(--gl-space-4)) 0 var(--gl-space-12);
    background:
        radial-gradient(ellipse 70% 50% at 50% 20%, rgba(255, 44, 152, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 30% 80%, rgba(39, 217, 255, 0.04) 0%, transparent 70%),
        linear-gradient(180deg, var(--gl-color-surface) 0%, var(--gl-color-bg) 100%);
    text-align: center;
    overflow: hidden;
}

.gl-search-hero__orb {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 44, 152, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.gl-search-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.gl-search-hero__label {
    display: inline-flex;
    align-items: center;
    gap: var(--gl-space-2);
    font-family: var(--gl-font-mono);
    font-size: var(--gl-font-size-xs);
    font-weight: var(--gl-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FF2C98;
    margin: 0 0 var(--gl-space-3);
}

.gl-search-hero__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-4xl);
    font-weight: var(--gl-font-weight-extrabold);
    color: var(--gl-color-text);
    margin: 0 0 var(--gl-space-3);
    letter-spacing: var(--gl-tracking-tight);
    line-height: 1.15;
    word-break: break-word;
}

/* Make the search query text pop with accent gradient */
.gl-search-hero__title em,
.gl-search-hero__title strong,
.gl-search-hero__title .gl-search-hero__query {
    background: linear-gradient(135deg, #FF2C98 0%, #27D9FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
}

.gl-search-hero__desc {
    font-size: var(--gl-font-size-lg);
    color: var(--gl-color-text-light);
    margin: 0 0 var(--gl-space-6);
    line-height: 1.6;
}

.gl-search-hero__count {
    font-size: var(--gl-font-size-sm);
    color: var(--gl-color-text-light);
    margin: 0 0 var(--gl-space-6);
}

.gl-search-hero__count strong {
    color: #FF2C98;
    font-size: var(--gl-font-size-lg);
    font-weight: var(--gl-font-weight-extrabold);
}

.gl-search-hero__form {
    max-width: 540px;
    margin: 0 auto;
    padding: var(--gl-space-5);
    background: rgba(12, 16, 48, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 44, 152, 0.12);
    border-radius: var(--gl-radius-xl);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 50px rgba(255, 44, 152, 0.06);
}

/* Bottom accent strip */
.gl-search-hero__strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, #FF2C98 30%, #27D9FF 70%, transparent 95%);
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(255, 44, 152, 0.3), 0 0 24px rgba(39, 217, 255, 0.15);
}

/* ---------- Search Filter Tabs ---------- */

.gl-search-filters {
    background: var(--gl-color-bg);
    border-bottom: 1px solid var(--gl-color-divider, var(--gl-color-border));
    padding: var(--gl-space-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--gl-color-bg) 85%, transparent);
}

.gl-search-filters__bar {
    display: flex;
    gap: var(--gl-space-1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
    background: var(--gl-color-surface);
    border-radius: var(--gl-radius-lg);
    border: 1px solid var(--gl-color-border);
}

.gl-search-filters__bar::-webkit-scrollbar {
    display: none;
}

.gl-search-filter {
    display: inline-flex;
    align-items: center;
    gap: var(--gl-space-1);
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-semibold);
    color: var(--gl-color-text-secondary);
    background: transparent;
    border: none;
    padding: var(--gl-space-2) var(--gl-space-4);
    border-radius: var(--gl-radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}

.gl-search-filter:hover {
    color: var(--gl-color-text);
    background: color-mix(in srgb, #FF2C98 12%, transparent);
    text-decoration: none;
    transform: translateY(-1px);
}

.gl-search-filter--active {
    background: linear-gradient(135deg, #FF2C98, #d926a0) !important;
    color: #fff !important;
    box-shadow:
        0 2px 12px rgba(255, 44, 152, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.gl-search-filter__count {
    font-family: var(--gl-font-mono);
    font-size: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 6px;
    border-radius: var(--gl-radius-full);
}

.gl-search-filter--active .gl-search-filter__count {
    background: rgba(255, 255, 255, 0.25);
}

/* ---------- Enhanced No Results ---------- */

.gl-search-empty {
    text-align: center;
    padding: var(--gl-space-16) var(--gl-space-4) calc(var(--gl-space-16) + var(--gl-space-4));
    background:
        radial-gradient(ellipse 50% 40% at 50% 30%, rgba(255, 44, 152, 0.03) 0%, transparent 70%);
}

.gl-search-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 44, 152, 0.06);
    border: 1px solid rgba(255, 44, 152, 0.1);
    color: #FF2C98;
    opacity: 0.5;
    margin-bottom: var(--gl-space-8);
}

.gl-search-empty__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-2xl);
    font-weight: var(--gl-font-weight-extrabold);
    margin: 0 0 var(--gl-space-3);
}

.gl-search-empty__desc {
    font-size: var(--gl-font-size-lg);
    color: var(--gl-color-text-light);
    max-width: 520px;
    margin: 0 auto var(--gl-space-8);
    line-height: 1.6;
}

.gl-search-empty__desc strong {
    color: #FF2C98;
}

.gl-search-empty__tips {
    max-width: 400px;
    margin: 0 auto var(--gl-space-8);
    padding: var(--gl-space-5);
    background: var(--gl-color-surface-raised, var(--gl-color-surface));
    border: 1px solid var(--gl-color-border);
    border-radius: var(--gl-radius-xl);
    text-align: left;
}

.gl-search-empty__tips h3 {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #27D9FF;
    margin: 0 0 var(--gl-space-3);
}

.gl-search-empty__tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gl-search-empty__tips li {
    position: relative;
    padding-left: var(--gl-space-5);
    margin-bottom: var(--gl-space-2);
    font-size: var(--gl-font-size-sm);
    color: var(--gl-color-text-light);
    line-height: 1.5;
}

.gl-search-empty__tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF2C98;
}

.gl-search-empty__cats {
    max-width: 640px;
    margin: 0 auto;
}

.gl-search-empty__cats h3 {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-base);
    font-weight: var(--gl-font-weight-bold);
    margin: 0 0 var(--gl-space-4);
    color: var(--gl-color-text);
}

.gl-search-empty__pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--gl-space-2);
}


/* **************************************************************************
   GENERIC ARCHIVE HERO — Premium Design
   ************************************************************************** */

/* ---------- Archive Hero Header ---------- */

.gl-arc-hero {
    position: relative;
    padding: var(--gl-space-16) 0 var(--gl-space-10);
    background:
        radial-gradient(ellipse at 15% 20%, rgba(255, 44, 152, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 60%, rgba(39, 217, 255, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--gl-color-surface) 0%, var(--gl-color-bg) 100%);
    overflow: hidden;
}

.gl-arc-hero__orb {
    position: absolute;
    top: -80px;
    right: 8%;
    width: 650px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 44, 152, 0.18) 0%, rgba(255, 44, 152, 0.06) 40%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.gl-arc-hero__inner {
    position: relative;
    z-index: 2;
}

/* Badge / label above title */
.gl-arc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--gl-space-2);
    margin-bottom: var(--gl-space-4);
    padding: var(--gl-space-2) var(--gl-space-4);
    border-radius: 9999px;
    background: rgba(255, 44, 152, 0.08);
    border: 1px solid rgba(255, 44, 152, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gl-arc-hero__badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, #FF2C98 15%, rgba(6, 7, 20, 0.6));
    border: 1px solid color-mix(in srgb, #FF2C98 25%, transparent);
    color: #FF2C98;
}

.gl-arc-hero__badge-label {
    font-family: var(--gl-font-mono);
    font-size: var(--gl-font-size-xs);
    font-weight: var(--gl-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FF2C98;
}

/* Breadcrumb */
.gl-arc-hero__breadcrumb {
    font-size: var(--gl-font-size-sm);
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: var(--gl-space-4);
}

.gl-arc-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.gl-arc-hero__breadcrumb a:hover {
    color: #FF2C98;
}

/* Title */
.gl-arc-hero__title {
    font-family: var(--gl-font-display);
    font-size: clamp(var(--gl-font-size-3xl), 5vw, var(--gl-font-size-4xl));
    font-weight: var(--gl-font-weight-extrabold);
    color: #fff;
    margin: 0 0 var(--gl-space-3);
    letter-spacing: var(--gl-tracking-tight);
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(255, 44, 152, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Description */
.gl-arc-hero__desc {
    font-size: var(--gl-font-size-lg);
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    margin: 0 0 var(--gl-space-4);
    line-height: 1.6;
}

/* Meta / post count */
.gl-arc-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: var(--gl-space-2);
    font-size: var(--gl-font-size-sm);
    color: rgba(255, 255, 255, 0.45);
    margin-top: var(--gl-space-3);
    padding: var(--gl-space-2) var(--gl-space-4);
    background: rgba(255, 44, 152, 0.05);
    border: 1px solid rgba(255, 44, 152, 0.1);
    border-radius: var(--gl-radius-md);
}

.gl-arc-hero__meta strong {
    color: #FF2C98;
    font-weight: var(--gl-font-weight-extrabold);
    font-size: var(--gl-font-size-lg);
    text-shadow: 0 0 12px rgba(255, 44, 152, 0.3);
}

/* Bottom accent strip */
.gl-arc-hero__strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF2C98, #27D9FF 50%, #FF2C98);
    z-index: 3;
}

/* ---------- Author Archive Card Layout ---------- */

.gl-arc-author {
    display: flex;
    align-items: center;
    gap: var(--gl-space-8);
}

.gl-arc-author__avatar {
    position: relative;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(255, 44, 152, 0.3));
}

.gl-arc-author__avatar img,
.gl-arc-author__img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 3px solid var(--gl-color-bg);
}

.gl-arc-author__avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #FF2C98, #27D9FF, #FF2C98);
    z-index: 0;
    animation: gl-ring-spin 6s linear infinite;
    box-shadow: 0 0 16px rgba(255, 44, 152, 0.3), 0 0 32px rgba(39, 217, 255, 0.15);
}

@keyframes gl-ring-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gl-arc-author__info {
    flex: 1;
    min-width: 0;
}

.gl-arc-author__info .gl-arc-hero__title {
    font-size: var(--gl-font-size-3xl);
}

/* ---------- Date Archive Calendar Display ---------- */

.gl-arc-date {
    display: flex;
    align-items: center;
    gap: var(--gl-space-8);
}

.gl-arc-date__calendar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: var(--gl-radius-xl);
    background: linear-gradient(180deg, rgba(255, 44, 152, 0.06) 0%, rgba(12, 16, 48, 0.7) 30%);
    border: 2px solid color-mix(in srgb, #FF2C98 35%, transparent);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(255, 44, 152, 0.08), 0 0 0 1px rgba(255, 44, 152, 0.05);
}

.gl-arc-date__month {
    font-family: var(--gl-font-mono);
    font-size: var(--gl-font-size-xs);
    font-weight: var(--gl-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #fff;
    padding: var(--gl-space-1) 0;
    background: linear-gradient(90deg, #FF2C98, color-mix(in srgb, #FF2C98 70%, #27D9FF));
    width: 100%;
    text-align: center;
}

.gl-arc-date__day {
    font-family: var(--gl-font-display);
    font-size: clamp(var(--gl-font-size-3xl), 4vw, 3.5rem);
    font-weight: var(--gl-font-weight-extrabold);
    color: #fff;
    line-height: 1.1;
    margin-top: var(--gl-space-1);
    text-shadow: 0 1px 8px rgba(255, 44, 152, 0.1);
}

.gl-arc-date__year {
    font-family: var(--gl-font-mono);
    font-size: var(--gl-font-size-xs);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.gl-arc-date__info {
    flex: 1;
    min-width: 0;
}


/* **************************************************************************
   RESPONSIVE — 404, Search, Archive Hero
   ************************************************************************** */

@media (max-width: 991px) {
    .gl-404-hero__code {
        font-size: clamp(6rem, 18vw, 12rem);
    }

    .gl-404-cats__grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }

    .gl-search-hero__title {
        font-size: var(--gl-font-size-3xl);
    }

    .gl-arc-hero__title {
        font-size: var(--gl-font-size-3xl);
    }

    .gl-arc-author {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gl-space-5);
    }

    .gl-arc-date {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gl-space-5);
    }
}

@media (max-width: 767px) {
    .gl-404-hero {
        min-height: auto;
        padding: var(--gl-space-16) 0 var(--gl-space-10);
    }

    .gl-404-hero__code {
        font-size: clamp(5rem, 22vw, 8rem);
        filter: drop-shadow(0 0 20px rgba(255, 44, 152, 0.3)) drop-shadow(0 0 40px rgba(39, 217, 255, 0.15));
    }

    .gl-404-hero__title {
        font-size: var(--gl-font-size-2xl);
    }

    .gl-404-hero__desc {
        font-size: var(--gl-font-size-base);
    }

    .gl-404-hero__orb--accent,
    .gl-404-hero__orb--secondary {
        width: 250px;
        height: 250px;
    }

    .gl-404-cats {
        padding: var(--gl-space-8) 0;
    }

    .gl-404-cats__grid {
        grid-template-columns: 1fr;
    }

    .gl-404-recent {
        padding: var(--gl-space-8) 0 var(--gl-space-12);
    }

    .gl-search-hero {
        padding: var(--gl-space-12) 0 var(--gl-space-8);
    }

    .gl-search-hero__title {
        font-size: var(--gl-font-size-2xl);
    }

    .gl-search-hero__orb {
        width: 300px;
        height: 200px;
    }

    .gl-search-empty {
        padding: var(--gl-space-12) var(--gl-space-4) var(--gl-space-16);
    }

    .gl-search-empty__icon {
        width: 72px;
        height: 72px;
    }

    .gl-search-empty__pills {
        grid-template-columns: 1fr;
    }

    .gl-arc-hero {
        padding: var(--gl-space-12) 0 var(--gl-space-8);
    }

    .gl-arc-hero__title {
        font-size: var(--gl-font-size-2xl);
    }

    .gl-arc-hero__desc {
        font-size: var(--gl-font-size-base);
    }

    .gl-arc-date__calendar {
        width: 90px;
        height: 90px;
    }

    .gl-arc-date__day {
        font-size: var(--gl-font-size-2xl);
    }

    .gl-arc-author__avatar img,
    .gl-arc-author__img {
        width: 72px;
        height: 72px;
    }

    .gl-arc-author__info .gl-arc-hero__title {
        font-size: var(--gl-font-size-2xl);
    }
}
