/* SportzX Theme Variables & Reset - Premium Upgrades */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Premium Space Theme Palette */
  --bg-main: #060813;
  --bg-deep: #030408;
  --bg-card: rgba(18, 22, 43, 0.45);
  --bg-card-hover: rgba(28, 34, 66, 0.65);
  
  --border-light: rgba(255, 255, 255, 0.05);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  /* Accent Colors (Default: Midnight Purple) */
  --accent-primary: #7015dc;
  --accent-secondary: #f35588;
  --grad-accent: linear-gradient(135deg, #f35588 0%, #7015dc 100%);
  --shadow-accent-glow: 0 0 24px rgba(112, 21, 220, 0.25);
  
  --blur-amount: 20px;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* THEME ACCENTS */
body.theme-purple {
  --accent-primary: #7015dc;
  --accent-secondary: #f35588;
  --grad-accent: linear-gradient(135deg, #f35588 0%, #7015dc 100%);
  --shadow-accent-glow: 0 0 24px rgba(112, 21, 220, 0.25);
}

body.theme-cyan {
  --accent-primary: #00f2fe;
  --accent-secondary: #4facfe;
  --grad-accent: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --shadow-accent-glow: 0 0 24px rgba(0, 242, 254, 0.3);
}

body.theme-mint {
  --accent-primary: #05c46b;
  --accent-secondary: #0be881;
  --grad-accent: linear-gradient(135deg, #05c46b 0%, #0be881 100%);
  --shadow-accent-glow: 0 0 24px rgba(11, 232, 129, 0.25);
}

body.theme-rose {
  --accent-primary: #ff0844;
  --accent-secondary: #ffb199;
  --grad-accent: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  --shadow-accent-glow: 0 0 24px rgba(255, 8, 68, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(112, 21, 220, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 40%, rgba(0, 242, 254, 0.04) 0%, transparent 35%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Premium Ticker Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--grad-accent);
}

/* Base Layout Container */
#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 100px;
}

@media (min-width: 1024px) {
  #app-container {
    flex-direction: row;
    padding-bottom: 0;
    padding-left: 280px;
  }
}

.content-section {
  flex: 1;
  padding: 32px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: none;
}

.content-section.active {
  display: block;
  animation: fadeIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hidden {
  display: none !important;
}

/* Grid wrappers */
.grid-cols-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

@media (min-width: 640px) {
  .grid-cols-auto {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }
}

/* Compact layout style */
.grid-cols-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .grid-cols-compact {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
  animation: pulseLive 1.5s infinite alternate;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
