/**
 * @core-architecture v1.4.2-release
 * @abstract System Variables & Functional Configuration
 */

:root {
    /* --- System Base Palettes --- */
    --sys-color-palette-bg: #0b1120;
    --sys-color-palette-surface: #111827;
    --sys-color-palette-surface-light: #1f2937;
    --sys-color-palette-accent: #ef4444;
    --sys-color-palette-accent-hover: #dc2626;
    --sys-color-palette-text: #f8fafc;
    --sys-color-palette-muted: #94a3b8;
    --sys-color-palette-border: #334155;

    /* --- Legacy Compatibility Fallbacks --- */
    --bg: var(--sys-color-palette-bg);
    --surface: var(--sys-color-palette-surface);
    --surface-light: var(--sys-color-palette-surface-light);
    --accent: var(--sys-color-palette-accent);
    --accent-hover: var(--sys-color-palette-accent-hover);
    --text: var(--sys-color-palette-text);
    --muted: var(--sys-color-palette-muted);
    --border: var(--sys-color-palette-border);

    /* --- Core Layout Tokens --- */
    --layout-grid-max-width: 1100px;
    --layout-grid-fluid-width: 90%;
    --transition-timing-standard: 0.2s;
    --transition-timing-editorial: 0.25s;
    --z-index-navigation-layer: 100;
}

/* ==========================================================================
   Global Reset & Environment Defaults
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sys-color-palette-bg);
    color: var(--sys-color-palette-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

main, #main-content-stream {
    flex: 1;
}

/* ==========================================================================
   Structural Layout Components (Structural Engine)
   ========================================================================== */

.container, 
.app-navigation__wrapper, 
.production-showcase__inner-bounds, 
.communications-hub__inner-bounds, 
.profile-overview__inner-bounds, 
.view-billboard__wrapper, 
.global-footer__wrapper {
    width: min(var(--layout-grid-max-width), var(--layout-grid-fluid-width));
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Navigation Bar Block (.app-navigation / .site-navbar)
   ========================================================================== */

nav, .app-navigation {
    position: sticky;
    top: 0;
    z-index: var(--z-index-navigation-layer);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(11, 17, 32, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo, .app-navigation__brand-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img, .logo__image {
    height: 42px;
}

.logo span, .logo__text {
    font-size: 1.4rem;
    font-weight: 700;
}

.nav-links, .app-navigation__menu-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a, .app-navigation__link {
    color: var(--sys-color-palette-muted);
    text-decoration: none;
    transition: color var(--transition-timing-standard);
}

.nav-links a:hover, .app-navigation__link:hover {
    color: #ffffff;
}

/* ==========================================================================
   Hero Landing Block (.hero / .stage-billboard)
   ========================================================================== */

.hero, .stage-billboard {
    position: relative;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(11, 17, 32, 0.7), rgba(11, 17, 32, 0.95)), url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
}

.hero-content, .stage-billboard__content-wrapper {
    max-width: 800px;
    padding: 2rem;
}

.eyebrow, .stage-billboard__kicker-text {
    color: var(--sys-color-palette-accent);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.hero h1, .stage-billboard__main-heading {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-text, .stage-billboard__description-text {
    font-size: 1.2rem;
    color: var(--sys-color-palette-muted);
    margin-bottom: 2rem;
}

.button, .cta-trigger-btn {
    display: inline-block;
    text-decoration: none;
    background: var(--sys-color-palette-accent);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transition: background var(--transition-timing-standard);
}

.button:hover, .cta-trigger-btn:hover {
    background: var(--sys-color-palette-accent-hover);
}

/* ==========================================================================
   Featured Products Catalog Block (.featured / .production-showcase)
   ========================================================================== */

.featured, .production-showcase, .communications-hub, .profile-overview {
    padding: 7rem 0;
}

.featured h2, .production-showcase__section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.game-showcase, .production-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.game-image, .production-card__media-placeholder {
    height: 350px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
}

.game-info h3, .production-card__entity-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.game-info p, .production-card__synopsis {
    color: var(--sys-color-palette-muted);
}

/* ==========================================================================
   Analytics Dashboard Metrics Block (.stats / .metrics-dashboard)
   ========================================================================== */

.stats {
    padding: 5rem 0;
}

.stats-grid, .metrics-dashboard__grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stats-grid h3, .metrics-dashboard__value {
    font-size: 3rem;
    color: var(--sys-color-palette-accent);
}

/* ==========================================================================
   Subpage Headers (.page-header / .view-billboard)
   ========================================================================== */

.page-header, .view-billboard {
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1, .view-billboard__title {
    font-size: clamp(3rem, 7vw, 5rem);
    margin-bottom: 1rem;
}

.page-header p, .view-billboard__subtitle {
    color: var(--sys-color-palette-muted);
    max-width: 700px;
    margin: auto;
}

/* ==========================================================================
   Content Grid Panels & Bio System (.content-card / .bio-panel)
   ========================================================================== */

.content-card, .bio-panel {
    background: var(--sys-color-palette-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    max-width: 900px;
    margin: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.content-card h2, .bio-panel__heading {
    margin-bottom: 1rem;
}

.content-card p, .bio-panel__paragraph {
    color: var(--sys-color-palette-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Contact Channels Block (.contact-grid / .communications-node)
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card, .communications-node {
    background: var(--sys-color-palette-surface);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-timing-editorial);
}

.contact-card:hover, .communications-node:hover {
    transform: translateY(-6px);
}

.contact-card h3, .communications-node__heading {
    margin-bottom: 1rem;
}

.contact-card p, .communications-node__description {
    color: var(--sys-color-palette-muted);
}

.contact-card a, .communications-node__link {
    color: var(--sys-color-palette-accent);
    text-decoration: none;
}

/* ==========================================================================
   Secondary About Analytics Panel (.about-stats)
   ========================================================================== */

.about-stats {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-stat {
    text-align: center;
}

.about-stat h3 {
    font-size: 3rem;
    color: var(--sys-color-palette-accent);
}

.about-stat p {
    color: var(--sys-color-palette-muted);
}

/* ==========================================================================
   Global Footer Section (.global-footer)
   ========================================================================== */

footer, .global-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 0;
    text-align: center;
    color: var(--sys-color-palette-muted);
}

/* ==========================================================================
   Media Query Viewport Breakpoints (Fluid Responsive Engine)
   ========================================================================== */

@media (max-width: 800px) {.nav-links, .app-navigation__menu-list {gap: 1rem;}.game-showcase, .production-card {grid-template-columns: 1fr;}.stats-grid, .metrics-dashboard__grid-layout, .about-stats {grid-template-columns: 1fr;}}

/* ==========================================================================
   Navigation Active Link State Framework
   ========================================================================== */

/* Target both your structural BEM classes and your basic legacy classes */
.nav-links a, 
.app-navigation__link {
    position: relative;
    display: inline-block !important; /* Forces the element to recognize height/width metrics */
    padding-bottom: 6px !important;   /* Creates explicit vertical air gap under the text */
    text-decoration: none;
}

/* Force high-contrast white coloring onto active text nodes */
.nav-links a.is-active, 
.app-navigation__link.is-active {
    color: #ffffff !important; 
    font-weight: 700 !important;
}

/* Construct the underlying vector bounding box across all links */
.nav-links a::after, 
.app-navigation__link::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Pulls the line down completely clear of the text characters */
    left: 0;
    width: 100%;
    height: 3px;  /* Thick line presence for crisp definition */
    background-color: var(--accent, #ef4444); /* Pulls from your studio red theme variable */
    
    /* Elegant transformation setup for smooth runtime response */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Instantly activate and reveal the line element for active matches */
.nav-links a.is-active::after, 
.app-navigation__link.is-active::after {
    transform: scaleX(1) !important;
}

