/**
 * Homepage Styles
 *
 * Hero, category grid, GTA 6 spotlight, featured hubs,
 * latest content sections.
 *
 * @package GtaLobby
 */

/* ==========================================================================
   HERO — ACCORDION SLIDER
   ========================================================================== */

/* Kill default body margin */
body {
    margin: 0;
}

/* Override .gl-main padding when homepage is rendered */
.gl-main:has(.gl-home) {
    padding-top: 0;
}

/* Fallback for browsers without :has() support */
.gl-home {
    margin-top: calc(-1 * var(--gl-space-8));
}

.gl-hero-accordion {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gl-hero-accordion__panels {
    display: flex;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    max-height: 700px;
}

/* — Individual Panel — */
.gl-hero-panel {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gl-hero-accordion__panels:hover .gl-hero-panel {
    flex: 0.6;
}
.gl-hero-accordion__panels:hover .gl-hero-panel:hover {
    flex: 3;
}

/* — Color Background — */
.gl-hero-panel__color {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* — Diagonal Edge Overlay — */
.gl-hero-panel:not(:last-child) .gl-hero-panel__color::after {
    content: '';
    position: absolute;
    top: 0;
    right: -40px;
    width: 80px;
    height: 100%;
    z-index: 3;
    transform: skewX(-4deg);
    background: inherit;
}
/* Match next panel's color */
.gl-hero-panel[data-panel="1"] .gl-hero-panel__color::after { background: #FF2C98; }
.gl-hero-panel[data-panel="2"] .gl-hero-panel__color::after { background: #6C5CE7; }
.gl-hero-panel[data-panel="3"] .gl-hero-panel__color::after { background: #0f1328; }

/* — Image Layer — */
.gl-hero-panel__image {
    position: absolute;
    inset: 0;
    z-index: 5;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    transition: opacity 0.5s ease;
}
.gl-hero-panel:hover .gl-hero-panel__image {
    opacity: 1;
}

/* Image gradient for text readability */
.gl-hero-panel__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6, 7, 20, 0.85) 0%,
        rgba(6, 7, 20, 0.3) 40%,
        rgba(6, 7, 20, 0) 60%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.gl-hero-panel:hover .gl-hero-panel__image::after {
    opacity: 1;
}

/* — Panel Number — */
.gl-hero-panel__num {
    font-family: var(--gl-font-mono);
    font-size: 120px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.04);
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 6;
    line-height: 1;
    transition: all 0.5s ease;
    pointer-events: none;
}
.gl-hero-panel:hover .gl-hero-panel__num {
    color: rgba(255, 255, 255, 0.08);
    font-size: 160px;
}

/* — Collapsed Label — */
.gl-hero-panel__label {
    font-family: var(--gl-font-display);
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: absolute;
    bottom: 40px;
    left: 50%;
    margin-left: -10px;
    z-index: 10;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.gl-hero-panel:hover .gl-hero-panel__label {
    opacity: 0;
}

/* — Content Layer — */
.gl-hero-panel__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

/* Expanded content (hidden by default) */
.gl-hero-panel__expanded {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.15s;
}
.gl-hero-panel:hover .gl-hero-panel__expanded {
    opacity: 1;
    transform: translateY(0);
}

.gl-hero-panel__overline {
    font-family: var(--gl-font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.gl-hero-panel__title {
    font-family: var(--gl-font-display);
    font-weight: 900;
    font-size: 36px;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.gl-hero-panel__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 360px;
    line-height: 1.5;
    margin: 0 0 20px;
}

/* — CTA Buttons — */
.gl-hero-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--gl-font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--gl-radius-md);
    transition: all 0.25s ease;
    width: fit-content;
}
.gl-hero-panel__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    text-decoration: none;
}
.gl-hero-panel__cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}
.gl-hero-panel__cta:hover svg {
    transform: translateX(3px);
}

/* Per-panel CTA colors */
.gl-hero-panel__cta--cyan    { background: #27D9FF; color: #060714; }
.gl-hero-panel__cta--magenta { background: #FF2C98; color: #fff; }
.gl-hero-panel__cta--purple  { background: #6C5CE7; color: #fff; }
.gl-hero-panel__cta--dark    { background: #EAF2FF; color: #060714; }

/* — Theme Color Strip — */
.gl-hero-accordion__strip {
    display: flex;
    height: 4px;
}
.gl-hero-accordion__strip span {
    flex: 1;
}

/* ==========================================================================
   SECTION SPACING & ZONE POLISH
   ========================================================================== */

.gl-zone {
    padding-top: var(--gl-space-10);
    padding-bottom: var(--gl-space-10);
}

.gl-zone__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-2xl);
    font-weight: var(--gl-font-weight-extrabold);
    letter-spacing: var(--gl-tracking-tight);
    margin: 0 0 var(--gl-space-2);
    position: relative;
    display: inline-block;
}

.gl-zone__title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--gl-color-accent);
    border-radius: 2px;
}

/* Alternating section backgrounds for visual rhythm */
.gl-home-categories {
    background: var(--gl-color-bg-alt);
}

.gl-home-hubs {
    background: var(--gl-color-bg);
}

.gl-home-latest {
    background: var(--gl-color-bg-alt);
}

.gl-home-newsletter {
    background: linear-gradient(180deg, var(--gl-color-bg) 0%, var(--gl-color-bg-alt) 100%);
    padding-top: var(--gl-space-8);
    padding-bottom: var(--gl-space-10);
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */

/* Stats bar — premium glassmorphism cards */
.gl-stats-bar {
    position: relative;
    padding: var(--gl-space-6) 0;
    background: linear-gradient(180deg, rgba(6,7,20,0.9) 0%, rgba(12,16,48,0.6) 50%, rgba(6,7,20,0.9) 100%);
    overflow: hidden;
}

.gl-stats-bar__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 80% at 15% 50%, rgba(255,44,152,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 80% at 85% 50%, rgba(39,217,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.gl-stats-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gl-space-4);
    position: relative;
    z-index: 1;
}

.gl-stats-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gl-space-2);
    padding: var(--gl-space-5) var(--gl-space-4);
    background: linear-gradient(135deg, rgba(12,16,48,0.7) 0%, rgba(19,24,62,0.5) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,44,152,0.1);
    border-radius: var(--gl-radius-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1);
}

.gl-stats-bar__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gl-color-accent), var(--gl-color-secondary), transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.gl-stats-bar__item:hover {
    transform: translateY(-4px);
    border-color: rgba(255,44,152,0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(255,44,152,0.08);
}

.gl-stats-bar__item:hover::before {
    opacity: 1;
}

.gl-stats-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--gl-radius-lg);
    background: linear-gradient(135deg, rgba(255,44,152,0.12), rgba(108,92,231,0.08));
    color: var(--gl-color-accent);
    transition: all 0.3s ease;
}

.gl-stats-bar__item:hover .gl-stats-bar__icon {
    background: linear-gradient(135deg, rgba(255,44,152,0.2), rgba(108,92,231,0.15));
    box-shadow: 0 0 20px rgba(255,44,152,0.15);
}

.gl-stats-bar__icon svg {
    width: 22px;
    height: 22px;
}

.gl-stats-bar__num {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-3xl);
    font-weight: var(--gl-font-weight-extrabold);
    background: linear-gradient(135deg, #FF2C98, #27D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: var(--gl-tracking-tight);
    filter: drop-shadow(0 2px 8px rgba(255,44,152,0.2));
}

.gl-stats-bar__label {
    font-family: var(--gl-font-mono);
    font-size: var(--gl-font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gl-color-text-secondary);
    font-weight: var(--gl-font-weight-semibold);
}

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

@media (max-width: 767px) {
    .gl-stats-bar__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gl-space-3);
    }

    .gl-stats-bar__num {
        font-size: var(--gl-font-size-2xl);
    }

    .gl-stats-bar__item {
        padding: var(--gl-space-4) var(--gl-space-3);
    }
}

/* ==========================================================================
   CATEGORY GRID
   ========================================================================== */

.gl-home-categories__header {
    margin-bottom: var(--gl-space-2);
}

.gl-zone__subtitle {
    font-size: var(--gl-font-size-base);
    color: var(--gl-color-text-light);
    margin-top: var(--gl-space-2);
    margin-bottom: var(--gl-space-6);
}

.gl-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gl-space-4);
}

/* Make the first category tile (GTA 6) span full width as a featured tile */
.gl-category-tile:first-child {
    grid-column: 1 / -1;
    min-height: 200px;
    flex-direction: row;
    align-items: center;
    padding: var(--gl-space-6) var(--gl-space-8);
}

.gl-category-tile:first-child .gl-category-tile__icon-wrap {
    width: 60px;
    height: 60px;
}

.gl-category-tile:first-child .gl-category-tile__name {
    font-size: var(--gl-font-size-xl);
}

.gl-category-tile:first-child .gl-category-tile__desc {
    -webkit-line-clamp: 3;
    font-size: var(--gl-font-size-base);
}

.gl-category-tile:first-child .gl-category-tile__overlay {
    background: linear-gradient(90deg, rgba(6, 7, 20, 0.9) 0%, rgba(6, 7, 20, 0.5) 60%, rgba(6, 7, 20, 0.2) 100%);
}

.gl-category-tile {
    display: flex;
    align-items: flex-start;
    gap: var(--gl-space-3);
    padding: var(--gl-space-4) var(--gl-space-5);
    background: linear-gradient(135deg, rgba(12,16,48,0.85) 0%, rgba(19,24,62,0.6) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--gl-radius-xl);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1);
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 140px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.gl-category-tile__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: 0;
}

.gl-category-tile:hover .gl-category-tile__image {
    transform: scale(1.08);
}

.gl-category-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,7,20,0.88) 0%, rgba(6,7,20,0.65) 50%, rgba(6,7,20,0.4) 100%);
    z-index: 1;
    transition: background 0.5s ease;
}

.gl-category-tile:hover .gl-category-tile__overlay {
    background: linear-gradient(135deg, rgba(6,7,20,0.8) 0%, rgba(6,7,20,0.5) 50%, rgba(6,7,20,0.3) 100%);
}

.gl-category-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--cat-accent);
    transform: scaleX(0);
    transition: transform var(--gl-transition-fast);
    z-index: 3;
}

.gl-category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.4), 0 0 40px color-mix(in srgb, var(--cat-accent) 15%, transparent);
    text-decoration: none;
    color: inherit;
    border-color: color-mix(in srgb, var(--cat-accent) 35%, transparent);
}

.gl-category-tile:hover::after {
    transform: scaleX(1);
}

.gl-category-tile__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--gl-radius-md);
    background-color: color-mix(in srgb, var(--cat-accent) 10%, transparent);
    color: var(--cat-accent);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.gl-category-tile__text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.gl-category-tile__name {
    color: #fff;
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-lg);
    font-weight: var(--gl-font-weight-bold);
    margin: 0 0 var(--gl-space-1);
    line-height: 1.2;
}

.gl-category-tile__desc {
    font-size: var(--gl-font-size-sm);
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-category-tile__count {
    position: absolute;
    top: var(--gl-space-3);
    right: var(--gl-space-3);
    font-family: var(--gl-font-mono);
    font-size: var(--gl-font-size-xs);
    font-weight: var(--gl-font-weight-bold);
    color: var(--cat-accent);
    background-color: rgba(0, 0, 0, 0.5);
    padding: var(--gl-space-1) var(--gl-space-2);
    border-radius: var(--gl-radius-full);
    white-space: nowrap;
    line-height: 1;
    z-index: 2;
}

/* Arrow indicator on hover */
.gl-category-tile__name::after {
    content: ' \2192';
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.gl-category-tile:hover .gl-category-tile__name::after {
    opacity: 1;
}

/* ==========================================================================
   GTA 6 SPOTLIGHT — Cinematic Section
   ========================================================================== */

.gl-home-gta6 {
    position: relative;
    overflow: hidden;
    background: var(--gl-color-bg);
}

.gl-home-gta6__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gl-home-gta6__bg-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--gl-color-cat-gta6) 12%, transparent) 0%, transparent 70%);
    filter: blur(60px);
}

.gl-home-gta6__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gl-space-6);
    margin-bottom: var(--gl-space-8);
    position: relative;
    z-index: 1;
}

.gl-home-gta6__header-left {
    max-width: 560px;
}

.gl-home-gta6__badge {
    display: inline-block;
    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: var(--gl-color-cat-gta6);
    background: color-mix(in srgb, var(--gl-color-cat-gta6) 12%, transparent);
    padding: var(--gl-space-1) var(--gl-space-3);
    border-radius: var(--gl-radius-full);
    border: 1px solid color-mix(in srgb, var(--gl-color-cat-gta6) 25%, transparent);
    margin-bottom: var(--gl-space-3);
}

.gl-home-gta6__heading {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-3xl);
    font-weight: var(--gl-font-weight-extrabold);
    letter-spacing: var(--gl-tracking-tight);
    line-height: 1.1;
    margin: 0 0 var(--gl-space-2);
    color: var(--gl-color-text);
}

.gl-home-gta6__heading span {
    color: var(--gl-color-cat-gta6);
}

.gl-home-gta6__tagline {
    font-size: var(--gl-font-size-base);
    color: var(--gl-color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.gl-home-gta6__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--gl-space-2);
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-bold);
    color: var(--gl-color-cat-gta6);
    text-decoration: none;
    padding: var(--gl-space-3) var(--gl-space-5);
    border: 2px solid var(--gl-color-cat-gta6);
    border-radius: var(--gl-radius-md);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.gl-home-gta6__cta:hover {
    background: var(--gl-color-cat-gta6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--gl-color-cat-gta6) 30%, transparent);
    text-decoration: none;
}

.gl-home-gta6__cta svg {
    transition: transform 0.2s ease;
}
.gl-home-gta6__cta:hover svg {
    transform: translateX(3px);
}

/* GTA 6 Layout */
.gl-home-gta6__layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--gl-space-5);
    position: relative;
    z-index: 1;
}

/* Hero featured card */
.gl-gta6-hero-card__image {
    position: relative;
    border-radius: var(--gl-radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

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

.gl-gta6-hero-card:hover .gl-gta6-hero-card__img {
    transform: scale(1.04);
}

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

.gl-gta6-hero-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 7, 20, 0.95) 0%, rgba(6, 7, 20, 0.4) 50%, rgba(6, 7, 20, 0) 100%);
}

.gl-gta6-hero-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--gl-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--gl-space-2);
}

.gl-gta6-hero-card__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-2xl);
    font-weight: var(--gl-font-weight-bold);
    line-height: 1.2;
    margin: 0;
}

.gl-gta6-hero-card__title a {
    color: #fff;
    text-decoration: none;
}

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

.gl-gta6-hero-card__excerpt {
    font-size: var(--gl-font-size-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
    max-width: 480px;
}

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

.gl-gta6-hero-card__read {
    font-weight: var(--gl-font-weight-semibold);
    color: var(--gl-color-cat-gta6);
    text-decoration: none;
    transition: color 0.2s;
}

.gl-gta6-hero-card__read:hover {
    color: #fff;
    text-decoration: none;
}

/* GTA 6 sidebar cards */
.gl-gta6-side {
    display: flex;
    flex-direction: column;
    gap: var(--gl-space-3);
}

.gl-gta6-card {
    display: flex;
    gap: var(--gl-space-4);
    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);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.gl-gta6-card:hover {
    border-color: var(--gl-color-cat-gta6);
    background: color-mix(in srgb, var(--gl-color-cat-gta6) 5%, var(--gl-color-surface-raised));
    transform: translateX(4px);
}

.gl-gta6-card__num {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-2xl);
    font-weight: var(--gl-font-weight-extrabold);
    color: color-mix(in srgb, var(--gl-color-cat-gta6) 25%, transparent);
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
    transition: color 0.3s ease;
}

.gl-gta6-card:hover .gl-gta6-card__num {
    color: var(--gl-color-cat-gta6);
}

.gl-gta6-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--gl-space-1);
    min-width: 0;
}

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

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

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

.gl-gta6-card__excerpt {
    font-size: var(--gl-font-size-xs);
    color: var(--gl-color-text-tertiary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-gta6-card__date {
    font-size: 11px;
    color: var(--gl-color-text-tertiary);
    font-family: var(--gl-font-mono);
}

/* Empty state */
.gl-home-gta6__empty {
    text-align: center;
    padding: var(--gl-space-12) var(--gl-space-6);
    background: var(--gl-color-surface-raised);
    border: 1px dashed var(--gl-color-border);
    border-radius: var(--gl-radius-xl);
}

.gl-home-gta6__empty-icon {
    color: var(--gl-color-cat-gta6);
    opacity: 0.4;
    margin-bottom: var(--gl-space-4);
}

.gl-home-gta6__empty h3 {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-xl);
    margin: 0 0 var(--gl-space-2);
}

.gl-home-gta6__empty p {
    color: var(--gl-color-text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* ==========================================================================
   FEATURED HUBS — Magazine Masonry
   ========================================================================== */

.gl-home-hubs__header {
    margin-bottom: var(--gl-space-2);
}

.gl-hubs-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: var(--gl-space-4);
}

/* Featured first hub — spans 2 columns and 2 rows */
.gl-hub-tile--featured {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gl-hub-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(12,16,48,0.8) 0%, rgba(19,24,62,0.6) 100%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--gl-radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25,0.8,0.25,1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.gl-hub-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--gl-radius-xl);
    background: radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--hub-accent) 4%, transparent), transparent 60%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0.5;
}

.gl-hub-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px color-mix(in srgb, var(--hub-accent) 15%, transparent);
    text-decoration: none;
    color: inherit;
    border-color: color-mix(in srgb, var(--hub-accent) 30%, transparent);
}

.gl-hub-tile:hover::after {
    opacity: 1;
}

/* Left accent stripe */
.gl-hub-tile__accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--hub-accent, var(--gl-color-accent));
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.gl-hub-tile:hover .gl-hub-tile__accent {
    width: 6px;
}

.gl-hub-tile__inner {
    display: flex;
    flex-direction: column;
    padding: var(--gl-space-5) var(--gl-space-5) var(--gl-space-5) var(--gl-space-6);
    flex: 1;
}

.gl-hub-tile--featured .gl-hub-tile__inner {
    padding: var(--gl-space-8) var(--gl-space-8) var(--gl-space-8) calc(var(--gl-space-8) + 4px);
    justify-content: center;
}

/* Icon circle */
.gl-hub-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--gl-radius-full);
    background: color-mix(in srgb, var(--hub-accent) 12%, transparent);
    color: var(--hub-accent);
    margin-bottom: var(--gl-space-3);
    transition: all 0.3s ease;
}

.gl-hub-tile:hover .gl-hub-tile__icon {
    background: var(--hub-accent);
    color: #fff;
}

.gl-hub-tile--featured .gl-hub-tile__icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--gl-space-4);
}

/* Top meta row */
.gl-hub-tile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gl-space-2);
}

.gl-hub-tile__cluster {
    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.08em;
    color: var(--hub-accent);
}

.gl-hub-tile__count {
    font-size: 11px;
    color: var(--gl-color-text-tertiary);
    font-family: var(--gl-font-mono);
    background: color-mix(in srgb, var(--hub-accent) 8%, transparent);
    padding: 2px 8px;
    border-radius: var(--gl-radius-full);
}

.gl-hub-tile__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);
}

.gl-hub-tile--featured .gl-hub-tile__title {
    font-size: var(--gl-font-size-xl);
}

.gl-hub-tile__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: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-hub-tile--featured .gl-hub-tile__excerpt {
    -webkit-line-clamp: 4;
    font-size: var(--gl-font-size-base);
}

.gl-hub-tile__link {
    display: inline-flex;
    align-items: center;
    gap: var(--gl-space-2);
    margin-top: var(--gl-space-4);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-bold);
    color: var(--hub-accent);
    transition: gap 0.2s ease;
}

.gl-hub-tile:hover .gl-hub-tile__link {
    gap: var(--gl-space-3);
}

/* ==========================================================================
   LATEST CONTENT — Tabbed Layout
   ========================================================================== */

.gl-home-latest__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gl-space-4);
    margin-bottom: var(--gl-space-8);
    flex-wrap: wrap;
}

/* Tab bar */
.gl-latest-tabs {
    display: flex;
    gap: var(--gl-space-1);
    background: var(--gl-color-surface);
    border-radius: var(--gl-radius-lg);
    padding: 4px;
    border: 1px solid var(--gl-color-border);
}

.gl-latest-tab {
    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;
}

.gl-latest-tab:hover {
    color: var(--gl-color-text);
    background: color-mix(in srgb, var(--tab-accent) 10%, transparent);
}

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

/* Panels */
.gl-latest-panel {
    display: none;
}

.gl-latest-panel--active {
    display: block;
    animation: gl-tabFadeIn 0.35s ease;
}

@keyframes gl-tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Panel grid: featured left, side cards right */
.gl-latest-panel__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--gl-space-5);
}

/* Featured post */
.gl-latest-featured__image {
    position: relative;
    border-radius: var(--gl-radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

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

.gl-latest-featured:hover .gl-latest-featured__img {
    transform: scale(1.04);
}

.gl-latest-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-latest-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 7, 20, 0.95) 0%, rgba(6, 7, 20, 0.3) 55%, transparent 100%);
}

.gl-latest-featured__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--gl-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--gl-space-2);
}

.gl-latest-featured__title {
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-xl);
    font-weight: var(--gl-font-weight-bold);
    line-height: 1.25;
    margin: 0;
}

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

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

.gl-latest-featured__excerpt {
    font-size: var(--gl-font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

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

.gl-latest-featured__read {
    font-weight: var(--gl-font-weight-semibold);
    color: var(--cat-accent);
    text-decoration: none;
}

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

/* Side cards */
.gl-latest-panel__side {
    display: flex;
    flex-direction: column;
    gap: var(--gl-space-3);
}

.gl-latest-side-card {
    display: flex;
    gap: var(--gl-space-3);
    padding: var(--gl-space-3) var(--gl-space-4);
    background: var(--gl-color-surface-raised);
    border: 1px solid var(--gl-color-border);
    border-radius: var(--gl-radius-lg);
    transition: all 0.25s ease;
    align-items: center;
}

.gl-latest-side-card:hover {
    border-color: var(--cat-accent);
    background: color-mix(in srgb, var(--cat-accent) 5%, var(--gl-color-surface-raised));
    transform: translateX(4px);
}

.gl-latest-side-card__thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--gl-radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.gl-latest-side-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gl-latest-side-card__icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-accent) 10%, var(--gl-color-surface));
    color: var(--cat-accent);
}

.gl-latest-side-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

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

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

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

.gl-latest-side-card__date {
    font-size: 11px;
    color: var(--gl-color-text-tertiary);
    font-family: var(--gl-font-mono);
}

/* Panel footer */
.gl-latest-panel__footer {
    margin-top: var(--gl-space-6);
    text-align: center;
}

.gl-latest-panel__viewall {
    display: inline-flex;
    align-items: center;
    gap: var(--gl-space-2);
    font-family: var(--gl-font-display);
    font-size: var(--gl-font-size-sm);
    font-weight: var(--gl-font-weight-bold);
    color: var(--cat-accent);
    text-decoration: none;
    padding: var(--gl-space-3) var(--gl-space-6);
    border: 2px solid color-mix(in srgb, var(--cat-accent) 35%, transparent);
    border-radius: var(--gl-radius-full);
    transition: all 0.3s ease;
}

.gl-latest-panel__viewall:hover {
    background: var(--cat-accent);
    color: #fff;
    border-color: var(--cat-accent);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--cat-accent) 25%, transparent);
}

.gl-latest-panel__viewall svg {
    transition: transform 0.2s ease;
}

.gl-latest-panel__viewall:hover svg {
    transform: translateX(3px);
}

.gl-post-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;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.gl-post-card__excerpt {
    font-size: var(--gl-font-size-sm);
    color: var(--gl-color-text-light);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

@media (max-width: 1199px) {
    .gl-hero-panel__title {
        font-size: 28px;
    }
    .gl-hero-panel__num {
        font-size: 80px;
    }
    .gl-hero-panel:hover .gl-hero-panel__num {
        font-size: 100px;
    }
}

@media (max-width: 991px) {

    .gl-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gl-category-tile:first-child {
        grid-column: 1 / -1;
    }

    /* GTA 6 */
    .gl-home-gta6__layout {
        grid-template-columns: 1fr;
    }

    .gl-home-gta6__heading {
        font-size: var(--gl-font-size-2xl);
    }

    /* Hubs */
    .gl-hubs-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .gl-hub-tile--featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    /* Latest */
    .gl-latest-panel__grid {
        grid-template-columns: 1fr;
    }

    .gl-latest-tabs {
        overflow-x: auto;
    }

    .gl-zone {
        padding-top: var(--gl-space-12);
        padding-bottom: var(--gl-space-12);
    }
}

@media (max-width: 767px) {
    .gl-hero-accordion__panels {
        flex-direction: column;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .gl-hero-panel {
        min-height: 120px;
        transition: min-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .gl-hero-accordion__panels:hover .gl-hero-panel {
        flex: 1;
        min-height: 80px;
    }
    .gl-hero-accordion__panels:hover .gl-hero-panel:hover {
        flex: 1;
        min-height: 320px;
    }

    .gl-hero-panel__label {
        writing-mode: horizontal-tb;
        transform: none;
        left: 24px;
        bottom: 20px;
        margin-left: 0;
        font-size: 14px;
    }

    .gl-hero-panel__title {
        font-size: 24px;
    }

    .gl-hero-panel__num {
        font-size: 60px;
        top: 20px;
        right: 16px;
    }
    .gl-hero-panel:hover .gl-hero-panel__num {
        font-size: 80px;
    }

    .gl-hero-panel:not(:last-child) .gl-hero-panel__color::after {
        display: none;
    }

    .gl-hero-panel__content {
        padding: 20px 24px;
    }

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

    .gl-category-tile:first-child {
        grid-column: auto;
        min-height: 140px;
        padding: var(--gl-space-4) var(--gl-space-5);
    }

    .gl-category-tile:first-child .gl-category-tile__overlay {
        background: linear-gradient(135deg, rgba(6, 7, 20, 0.85) 0%, rgba(6, 7, 20, 0.6) 100%);
    }

    /* Hubs */
    .gl-hubs-masonry {
        grid-template-columns: 1fr;
    }

    .gl-hub-tile--featured .gl-hub-tile__inner {
        padding: var(--gl-space-5) var(--gl-space-5) var(--gl-space-5) var(--gl-space-6);
    }

    /* GTA 6 */
    .gl-home-gta6__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gl-gta6-hero-card__title {
        font-size: var(--gl-font-size-lg);
    }

    /* Latest tabs */
    .gl-home-latest__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .gl-latest-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gl-card-grid--3col {
        grid-template-columns: 1fr;
    }

    .gl-zone {
        padding-top: var(--gl-space-10);
        padding-bottom: var(--gl-space-10);
    }

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