/* ==========================================================================
   ELSHEMY.ME 3D Games Hub — Layout Structure
   ========================================================================== */

.g3d-container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 20px;
}

.g3d-section {
    padding-block: 56px;
}

.g3d-section--compact {
    padding-block: 36px;
}

.g3d-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.g3d-section-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.g3d-section-sub {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

/* Header & Navigation */
.g3d-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    height: var(--header-height);
    background: rgba(7, 14, 27, 0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    transition: box-shadow var(--transition-fast);
}

.g3d-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.g3d-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.g3d-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.08rem;
}

.g3d-brand__logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.g3d-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.g3d-brand__sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.g3d-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.g3d-nav__link {
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.g3d-nav__link:hover,
.g3d-nav__link.is-active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

.g3d-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.g3d-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.g3d-hero {
    position: relative;
    overflow: hidden;
    background: var(--grad-hero);
    border-bottom: 1px solid var(--border-subtle);
    padding-block: 56px 64px;
}

.g3d-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.65;
}

.g3d-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 36px;
}

.g3d-hero__title {
    margin: 14px 0 14px;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    line-height: 1.22;
    font-weight: 800;
}

.g3d-text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.g3d-hero__lead {
    margin: 0 0 24px;
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 56ch;
}

.g3d-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.g3d-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.g3d-hero-showcase {
    background: rgba(13, 23, 41, 0.72);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 18px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    backdrop-filter: blur(12px);
}

.g3d-hero-showcase img {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.g3d-hero-showcase__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
}

/* Spotlight Featured Game */
.g3d-spotlight {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, rgba(19, 34, 59, 0.92), rgba(13, 23, 41, 0.96));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.g3d-spotlight__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.g3d-spotlight__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* Catalog Grid */
.g3d-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 22px;
}

.g3d-short-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* Footer */
.g3d-footer {
    border-top: 1px solid var(--border-subtle);
    background: #050a14;
    padding-block: 44px 28px;
    margin-top: 40px;
}

.g3d-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
}

.g3d-footer__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.g3d-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.g3d-footer__links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: color var(--transition-fast);
}

.g3d-footer__links a:hover {
    color: var(--accent-cyan);
}

.g3d-footer__bottom {
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
}
