/**
 * NBA Standard Professional Layout
 * Discipline, Spacing, and Hierarchy.
 */

:root {
    --pro-header-height: 80px;
    --pro-spacing-section: 120px;
    --pro-spacing-inner: 48px;
    --pro-spacing-gutter: 32px;
    
    --pro-color-surface-deep: #121212;
    --pro-color-surface-elevated: #1e1e1e;
    --pro-color-accent: #B00203;
    --pro-color-gold: #C5A059;
    
    --pro-font-headline: 'Oswald', 'Arial Narrow', 'Franklin Gothic Medium', sans-serif;
    --pro-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* 1. Base Structure */
body {
    background-color: var(--pro-color-surface-deep) !important;
    color: #ffffff !important;
    overflow-x: hidden;
    padding-top: var(--pro-header-height); /* Offset for fixed header */
}

.pro-section {
    padding-top: var(--pro-spacing-section);
    padding-bottom: var(--pro-spacing-section);
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    scroll-margin-top: var(--pro-header-height); /* Prevent content hiding under header on anchor click */
}

.pro-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--pro-spacing-inner);
}

@media (max-width: 768px) {
    :root {
        --pro-spacing-section: 80px;
        --pro-spacing-inner: 24px;
    }
}

/* 2. Professional Typography */
.pro-headline-xl {
    font-family: var(--pro-font-headline);
    font-size: clamp(4rem, 15vw, 12rem);
    line-height: 0.82;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em; /* Tighter for professional impact */
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pro-headline-lg {
    font-family: var(--pro-font-headline);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.05;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

/* Watermark / Outline Text */
.pro-watermark {
    position: absolute;
    font-family: var(--pro-font-headline);
    font-size: 20vw;
    font-weight: 900;
    -webkit-text-stroke: 1px rgba(255,255,255,0.03);
    text-shadow: none;
    color: transparent;
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
    text-transform: uppercase;
}

/* Professional Media Overlay */
.pro-image-container {
    position: relative;
    overflow: hidden;
    background: var(--pro-color-surface-deep);
}

.pro-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18,18,18,0) 0%, rgba(18,18,18,0.8) 100%);
    z-index: 2;
}

.pro-image-container img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    mix-blend-mode: normal;
    opacity: 1;
}

.pro-image-container:hover img {
    transform: scale(1.05);
    opacity: 1;
    mix-blend-mode: normal;
}

/* 3. Modular Components (Non-Bento) */
.pro-card-modular {
    background: var(--pro-color-surface-elevated);
    border-radius: 4px; /* Sharp professional edges */
    padding: var(--pro-spacing-gutter);
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s;
}

.pro-card-modular:hover {
    border-color: var(--pro-color-accent);
}

/* Match Board Specifics */
.match-board {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(90deg, #1e1e1e 0%, #121212 100%);
    border-left: 4px solid var(--pro-color-accent);
}

.score-display {
    font-family: var(--pro-font-headline);
    font-size: 4rem;
    font-weight: 800;
    color: var(--pro-color-accent);
}

/* News Stream Specifics */
.news-stream-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.news-stream-date {
    font-family: var(--pro-font-headline);
    color: var(--pro-color-gold);
    font-size: 1.2rem;
}

.news-stream-body {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--pro-font-body);
    font-size: 0.98rem;
    line-height: 1.7;
    white-space: pre-line;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 4. Infinity Stream Gallery */
.pro-gallery-container {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-top: calc(var(--pro-spacing-section) * -0.5);
}

.pro-gallery-rail {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.pro-gallery-item {
    flex: 0 0 450px;
    height: 300px;
    margin-right: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
}

.pro-gallery-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: linear-gradient(90deg, var(--pro-color-surface-deep) 0%, transparent 15%, transparent 85%, var(--pro-color-surface-deep) 100%);
}

/* 5. Functional Access Grid */
.pro-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: stretch;
}

.pro-grid-2col > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.schedule-card {
    padding: 32px;
    border-left: 2px solid var(--pro-color-accent);
    flex: 1 1 auto;
}

.section-access .schedule-card {
    background: var(--pro-color-surface-deep);
}

.map-stack {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.map-wrapper {
    height: 450px;
    filter: grayscale(1) invert(0.9) contrast(0.8); /* Elite sports map filter */
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
    flex: 1 1 auto;
}

@media (max-width: 960px) {
    .pro-grid-2col {
        grid-template-columns: 1fr;
    }
}

html.js .hero-intro > * {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
    html.js .hero-intro > * {
        opacity: 1;
        transform: none;
        will-change: auto;
    }
}
