/* ==========================================================================
   NBA COURT VIEW — DESIGN SYSTEM & GLOBAL STYLES
   ========================================================================== */

:root {
  --navy-950: #020d1c;
  --navy-900: #04152a;
  --navy-850: #071b34;
  --navy-800: #0b2443;
  --orange-500: #ff5a00;
  --orange-400: #ff6a13;
  --white: #ffffff;
  --surface: #f5f7fa;
  --surface-blue: #eef3f8;
  --border: #dce3eb;
  --text: #07162c;
  --muted: #64748b;
  --success: #159447;
  --danger: #d83b3b;

  --font-heading: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-body: Inter, Arial, Helvetica, sans-serif;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(2, 13, 28, 0.1);
  --shadow-lg: 0 8px 24px rgba(2, 13, 28, 0.15);

  --container-max: 1280px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

/* Skip link */
.ncv-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--orange-500);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-weight: bold;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.ncv-skip-link:focus {
  top: 1rem;
}

/* Container */
.ncv-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.ncv-header {
  background-color: var(--navy-900);
  color: var(--white);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--orange-500);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.ncv-header .ncv-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.ncv-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.5px;
}

.ncv-logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--navy-850), var(--navy-950));
  border: 1.5px solid var(--orange-500);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 90, 0, 0.3);
}

.ncv-logo-mark svg {
  width: 24px;
  height: 24px;
}

.ncv-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ncv-logo-text .brand-court {
  color: var(--orange-500);
}

/* Nav Links */
.ncv-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 100%;
}

.ncv-nav a {
  position: relative;
  padding: 0 0.85rem;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  transition: color 0.2s, background-color 0.2s;
}

.ncv-nav a:hover {
  color: var(--white);
}

.ncv-nav a.active {
  color: var(--white);
}

.ncv-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--orange-500);
}

/* Header Right Actions */
.ncv-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* League Selector Switcher */
.ncv-league-switcher {
  display: flex;
  background-color: var(--navy-950);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-800);
}

.ncv-league-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.ncv-league-btn.active {
  background-color: var(--orange-500);
  color: var(--white);
  box-shadow: 0 1px 4px rgba(255, 90, 0, 0.4);
}

/* Mobile Toggle */
.ncv-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Drawer */
.ncv-mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background-color: var(--navy-950);
  border-bottom: 2px solid var(--orange-500);
  padding: 1rem 1.25rem 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.ncv-mobile-menu.open {
  display: block;
}

.ncv-mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ncv-mobile-menu a {
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  border-radius: var(--radius-sm);
  background: var(--navy-900);
}

.ncv-mobile-menu a.active {
  background: var(--orange-500);
  color: var(--white);
}

.ncv-mobile-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--navy-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   ARENA HERO SECTION (Homepage B)
   ========================================================================== */
.ncv-hero-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-850) 100%);
  color: var(--white);
  padding: 2.5rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--navy-800);
}

/* Basketball Court Floor Background Lines */
.ncv-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: 
    radial-gradient(circle at 80% 50%, rgba(255, 90, 0, 0.12) 0%, transparent 60%),
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.ncv-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.ncv-hero-headline-block {
  border-left: 4px solid var(--orange-500);
  padding-left: 1.5rem;
}

.ncv-hero-tag {
  display: inline-block;
  background-color: rgba(255, 90, 0, 0.2);
  color: var(--orange-400);
  border: 1px solid var(--orange-500);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.ncv-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.ncv-hero-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 1.5rem;
}

/* Featured Game Card inside Hero */
.ncv-featured-card {
  background-color: var(--navy-900);
  border: 1.5px solid var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.ncv-featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-500), #ff9000);
}

.ncv-featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--navy-800);
}

.ncv-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.ncv-badge-live {
  background-color: var(--danger);
  color: var(--white);
  animation: pulseLive 2s infinite;
}

.ncv-badge-final {
  background-color: var(--navy-800);
  color: #cbd5e1;
}

.ncv-badge-scheduled {
  background-color: rgba(255, 90, 0, 0.15);
  color: var(--orange-400);
  border: 1px solid rgba(255, 90, 0, 0.3);
}

@keyframes pulseLive {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.ncv-featured-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.ncv-featured-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ncv-team-logo-lg {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.ncv-featured-team-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
}

.ncv-featured-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ncv-featured-vs {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange-500);
}

.ncv-featured-scores {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
}

.ncv-featured-time {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Buttons */
.ncv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  transition: all 0.2s;
  min-height: 44px;
}

.ncv-btn-primary {
  background-color: var(--orange-500);
  color: var(--white);
}
.ncv-btn-primary:hover {
  background-color: var(--orange-400);
  box-shadow: 0 4px 12px rgba(255, 90, 0, 0.3);
}

.ncv-btn-secondary {
  background-color: var(--navy-800);
  color: var(--white);
  border: 1px solid var(--navy-850);
}
.ncv-btn-secondary:hover {
  background-color: var(--navy-850);
  color: var(--white);
}

.ncv-btn-block {
  width: 100%;
}

/* ==========================================================================
   BUTTONS & GENERAL UI COMPONENTS
   ========================================================================== */
.ncv-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.ncv-section-title {
  font-size: 1.5rem;
  color: var(--navy-950);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ncv-section-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 22px;
  background-color: var(--orange-500);
  border-radius: 2px;
}

.ncv-link-more {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--orange-500);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}
.ncv-link-more:hover {
  gap: 0.4rem;
  color: var(--orange-400);
}

/* ==========================================================================
   FOOTER (Section J)
   ========================================================================== */
.ncv-footer {
  background-color: var(--navy-950);
  color: var(--white);
  padding: 3.5rem 0 1.5rem;
  border-top: 3px solid var(--orange-500);
  margin-top: 3rem;
}

.ncv-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.ncv-footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 1rem 0 1.25rem;
  line-height: 1.6;
}

.ncv-footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--navy-800);
}

.ncv-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ncv-footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.ncv-footer-col a:hover {
  color: var(--orange-500);
}

.ncv-footer-bottom {
  border-top: 1px solid var(--navy-800);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.ncv-disclaimer {
  max-width: 800px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .ncv-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ncv-footer-grid {
    grid-template-columns: 1fr repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ncv-nav {
    display: none;
  }
  .ncv-mobile-toggle {
    display: flex;
  }
  .ncv-hero-title {
    font-size: 2.1rem;
  }
  .ncv-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
