/* CYBERPUNK NEON DESIGN SYSTEM - Ranked.ng */
/* Premium Esports + Luxury Fintech */

:root {
  /* === CORE COLOR PALETTE === */
  /* Base backgrounds - deep, premium darkness */
  --cp-black: #0a0a0f;
  --cp-void: #050508;
  --cp-dark: #12121a;
  --cp-surface: #1a1a24;
  --cp-card: #202030;
  --cp-border: #2a2a3a;
  
  /* === NEON ACCENTS === */
  /* Primary: Cyan - Trust, Clarity, Fintech */
  --cp-neon-cyan: #00f3ff;
  --cp-neon-cyan-glow: rgba(0, 243, 255, 0.3);
  --cp-neon-cyan-dim: rgba(0, 243, 255, 0.1);
  
  /* Secondary: Magenta - Energy, Competition, Esports */
  --cp-neon-magenta: #ff00ff;
  --cp-neon-magenta-glow: rgba(255, 0, 255, 0.3);
  --cp-neon-magenta-dim: rgba(255, 0, 255, 0.1);
  
  /* Tertiary: Purple - Luxury, Exclusivity */
  --cp-neon-purple: #9d00ff;
  --cp-neon-purple-glow: rgba(157, 0, 255, 0.3);
  --cp-neon-purple-dim: rgba(157, 0, 255, 0.1);
  
  /* === UTILITY NEONS === */
  --cp-neon-success: #00ff9d;
  --cp-neon-warning: #ff9d00;
  --cp-neon-error: #ff0040;
  --cp-neon-info: #00a8ff;
  
  /* === TEXT === */
  --cp-text-primary: #f0f0ff;
  --cp-text-secondary: #a0a0c0;
  --cp-text-tertiary: #707090;
  --cp-text-on-dark: #ffffff;
  
  /* === EFFECTS === */
  --cp-glow-intensity: 0.8;
  --cp-glow-blur: 8px;
  --cp-glow-spread: 2px;
  --cp-shadow-intensity: 0.4;
  
  /* === SPACING === */
  --cp-space-xs: 0.25rem;
  --cp-space-sm: 0.5rem;
  --cp-space-md: 1rem;
  --cp-space-lg: 1.5rem;
  --cp-space-xl: 2rem;
  --cp-space-2xl: 3rem;
  --cp-space-3xl: 4rem;
  
  /* === BORDERS === */
  --cp-radius-sm: 4px;
  --cp-radius-md: 8px;
  --cp-radius-lg: 12px;
  --cp-radius-xl: 16px;
  --cp-radius-full: 9999px;
  
  /* === TYPOGRAPHY === */
  --cp-font-heading: 'Space Grotesk', 'Exo 2', 'Bebas Neue', sans-serif;
  --cp-font-body: 'Inter', 'Barlow', sans-serif;
  --cp-font-mono: 'JetBrains Mono', monospace;
  
  --cp-text-xs: 0.75rem;
  --cp-text-sm: 0.875rem;
  --cp-text-base: 1rem;
  --cp-text-lg: 1.125rem;
  --cp-text-xl: 1.25rem;
  --cp-text-2xl: 1.5rem;
  --cp-text-3xl: 1.875rem;
  --cp-text-4xl: 2.25rem;
  --cp-text-5xl: 3rem;
  --cp-text-6xl: 3.75rem;
  
  /* === TRANSITIONS === */
  --cp-transition-fast: 150ms ease;
  --cp-transition-normal: 250ms ease;
  --cp-transition-slow: 400ms ease;
  --cp-transition-glow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE RESETS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--cp-black);
}

body {
  font-family: var(--cp-font-body);
  color: var(--cp-text-primary);
  background: linear-gradient(135deg, var(--cp-void) 0%, var(--cp-black) 50%, var(--cp-dark) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--cp-neon-cyan);
  color: var(--cp-black);
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cp-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--cp-neon-purple);
  border-radius: var(--cp-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cp-neon-magenta);
}

/* === UTILITY CLASSES === */
.cp-glow-cyan {
  box-shadow: 
    0 0 var(--cp-glow-blur) var(--cp-glow-spread) var(--cp-neon-cyan-glow),
    inset 0 0 20px var(--cp-neon-cyan-dim);
}

.cp-glow-magenta {
  box-shadow: 
    0 0 var(--cp-glow-blur) var(--cp-glow-spread) var(--cp-neon-magenta-glow),
    inset 0 0 20px var(--cp-neon-magenta-dim);
}

.cp-glow-purple {
  box-shadow: 
    0 0 var(--cp-glow-blur) var(--cp-glow-spread) var(--cp-neon-purple-glow),
    inset 0 0 20px var(--cp-neon-purple-dim);
}

.cp-text-glow-cyan {
  text-shadow: 0 0 10px var(--cp-neon-cyan-glow), 0 0 20px var(--cp-neon-cyan-dim);
}

.cp-text-glow-magenta {
  text-shadow: 0 0 10px var(--cp-neon-magenta-glow), 0 0 20px var(--cp-neon-magenta-dim);
}

.cp-border-glow-cyan {
  border: 1px solid var(--cp-neon-cyan);
  box-shadow: 0 0 10px var(--cp-neon-cyan-glow);
}

.cp-border-glow-magenta {
  border: 1px solid var(--cp-neon-magenta);
  box-shadow: 0 0 10px var(--cp-neon-magenta-glow);
}

/* === LAYOUT === */
.cp-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--cp-space-lg);
}

.cp-section {
  padding: var(--cp-space-3xl) 0;
}

.cp-section-dark {
  background: var(--cp-dark);
  border-top: 1px solid var(--cp-border);
  border-bottom: 1px solid var(--cp-border);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--cp-font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--cp-text-5xl);
  margin-bottom: var(--cp-space-xl);
}

h2 {
  font-size: var(--cp-text-4xl);
  margin-bottom: var(--cp-space-lg);
}

h3 {
  font-size: var(--cp-text-3xl);
  margin-bottom: var(--cp-space-md);
}

h4 {
  font-size: var(--cp-text-2xl);
  margin-bottom: var(--cp-space-md);
}

p {
  margin-bottom: var(--cp-space-md);
  color: var(--cp-text-secondary);
}

.cp-lead {
  font-size: var(--cp-text-xl);
  color: var(--cp-text-primary);
  line-height: 1.5;
}

.cp-label {
  font-family: var(--cp-font-mono);
  font-size: var(--cp-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cp-neon-cyan);
}

/* === COMPONENTS - Will be enhanced with JavaScript === */
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--cp-space-sm);
  font-family: var(--cp-font-heading);
  font-weight: 600;
  font-size: var(--cp-text-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--cp-space-md) var(--cp-space-xl);
  border: none;
  border-radius: var(--cp-radius-md);
  cursor: pointer;
  transition: all var(--cp-transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--cp-dark);
  z-index: -1;
  border-radius: var(--cp-radius-md);
}

.cp-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--cp-neon-cyan), var(--cp-neon-purple));
  border-radius: calc(var(--cp-radius-md) + 2px);
  z-index: -2;
  opacity: 0;
  transition: opacity var(--cp-transition-normal);
}

.cp-btn:hover::after {
  opacity: 1;
}

.cp-btn-primary {
  background: transparent;
  color: var(--cp-text-primary);
}

.cp-btn-primary:hover {
  color: var(--cp-neon-cyan);
  transform: translateY(-2px);
}

.cp-card {
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: var(--cp-space-xl);
  transition: all var(--cp-transition-normal);
}

.cp-card:hover {
  border-color: var(--cp-neon-cyan);
  transform: translateY(-4px);
}

.cp-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--cp-space-xs) var(--cp-space-sm);
  font-family: var(--cp-font-mono);
  font-size: var(--cp-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--cp-radius-full);
  background: var(--cp-surface);
  color: var(--cp-text-secondary);
}

.cp-badge-cyan {
  background: var(--cp-neon-cyan-dim);
  color: var(--cp-neon-cyan);
}

.cp-badge-magenta {
  background: var(--cp-neon-magenta-dim);
  color: var(--cp-neon-magenta);
}

.cp-badge-purple {
  background: var(--cp-neon-purple-dim);
  color: var(--cp-neon-purple);
}

/* === NAVIGATION (to be transformed) === */
.cp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--cp-space-md) 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cp-border);
}

.cp-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-nav-logo {
  font-family: var(--cp-font-heading);
  font-size: var(--cp-text-2xl);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cp-text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--cp-space-xs);
}

.cp-nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--cp-neon-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cp-nav-links {
  display: flex;
  gap: var(--cp-space-xl);
  list-style: none;
}

.cp-nav-link {
  font-family: var(--cp-font-body);
  font-size: var(--cp-text-sm);
  font-weight: 500;
  color: var(--cp-text-secondary);
  text-decoration: none;
  transition: color var(--cp-transition-fast);
  position: relative;
}

.cp-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cp-neon-cyan);
  transform: scaleX(0);
  transition: transform var(--cp-transition-normal);
}

.cp-nav-link:hover {
  color: var(--cp-text-primary);
}

.cp-nav-link:hover::after {
  transform: scaleX(1);
}

.cp-nav-actions {
  display: flex;
  gap: var(--cp-space-md);
  align-items: center;
}

/* === HERO SECTION === */
.cp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.cp-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, var(--cp-neon-purple-dim) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--cp-neon-cyan-dim) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, var(--cp-neon-magenta-dim) 0%, transparent 50%);
  z-index: -1;
}

.cp-hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.cp-hero-title {
  font-size: var(--cp-text-6xl);
  margin-bottom: var(--cp-space-xl);
  line-height: 1.1;
}

.cp-hero-title span {
  background: linear-gradient(45deg, var(--cp-neon-cyan), var(--cp-neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cp-hero-subtitle {
  font-size: var(--cp-text-xl);
  color: var(--cp-text-secondary);
  margin-bottom: var(--cp-space-2xl);
  max-width: 600px;
}

.cp-hero-cta {
  display: flex;
  gap: var(--cp-space-md);
  flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  :root {
    --cp-text-5xl: 2.5rem;
    --cp-text-6xl: 3rem;
  }
  
  .cp-container {
    padding: 0 var(--cp-space-md);
  }
  
  .cp-nav-links {
    display: none;
  }
  
  .cp-hero-title {
    font-size: var(--cp-text-5xl);
  }
  
  .cp-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cp-btn {
    width: 100%;
  }
}

/* === FORM COMPONENTS === */
.cp-form-group {
  margin-bottom: var(--cp-space-lg);
}

.cp-form-label {
  display: block;
  font-family: var(--cp-font-body);
  font-size: var(--cp-text-sm);
  font-weight: 500;
  color: var(--cp-text-secondary);
  margin-bottom: var(--cp-space-xs);
}

.cp-form-input {
  width: 100%;
  padding: var(--cp-space-md) var(--cp-space-lg);
  font-family: var(--cp-font-body);
  font-size: var(--cp-text-base);
  color: var(--cp-text-primary);
  background: var(--cp-surface);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-md);
  transition: all var(--cp-transition-normal);
}

.cp-form-input:focus {
  outline: none;
  border-color: var(--cp-neon-cyan);
  box-shadow: 0 0 0 3px var(--cp-neon-cyan-dim);
}

.cp-form-input::placeholder {
  color: var(--cp-text-tertiary);
}

/* === DASHBOARD COMPONENTS === */
.cp-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--cp-space-xl);
  margin: var(--cp-space-xl) 0;
}

.cp-wallet-panel {
  background: linear-gradient(145deg, var(--cp-card), var(--cp-surface));
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: var(--cp-space-xl);
  position: relative;
  overflow: hidden;
}

.cp-wallet-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cp-neon-cyan), var(--cp-neon-purple));
}

.cp-wallet-amount {
  font-family: var(--cp-font-heading);
  font-size: var(--cp-text-4xl);
  font-weight: 700;
  color: var(--cp-neon-cyan);
  margin: var(--cp-space-md) 0;
  line-height: 1;
}

.cp-wallet-label {
  font-family: var(--cp-font-mono);
  font-size: var(--cp-text-xs);
  color: var(--cp-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cp-wallet-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cp-space-md);
  margin-top: var(--cp-space-lg);
  padding-top: var(--cp-space-lg);
  border-top: 1px solid var(--cp-border);
}

.cp-wallet-item {
  text-align: center;
}

.cp-wallet-item-value {
  font-family: var(--cp-font-heading);
  font-size: var(--cp-text-lg);
  font-weight: 600;
  color: var(--cp-text-primary);
  margin: var(--cp-space-xs) 0;
}

.cp-wallet-item-label {
  font-size: var(--cp-text-xs);
  color: var(--cp-text-tertiary);
}

/* === ALERTS AND STATES === */
.cp-alert {
  padding: var(--cp-space-md) var(--cp-space-lg);
  border-radius: var(--cp-radius-md);
  margin-bottom: var(--cp-space-md);
  font-family: var(--cp-font-body);
  font-size: var(--cp-text-sm);
  display: none;
}

.cp-alert-error {
  background: var(--cp-neon-error);
  color: var(--cp-text-primary);
  border: 1px solid rgba(255, 0, 64, 0.3);
}

.cp-alert-success {
  background: var(--cp-neon-success);
  color: var(--cp-black);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.cp-alert-info {
  background: var(--cp-neon-info);
  color: var(--cp-text-primary);
  border: 1px solid rgba(0, 168, 255, 0.3);
}

.cp-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
}

.cp-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--cp-border);
  border-top-color: var(--cp-neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === MATCH COMPONENTS === */
.cp-match-card {
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: var(--cp-space-lg);
  margin-bottom: var(--cp-space-md);
  transition: all var(--cp-transition-normal);
}

.cp-match-card:hover {
  border-color: var(--cp-neon-cyan);
  transform: translateY(-2px);
}

.cp-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--cp-space-md);
}

.cp-match-game {
  font-family: var(--cp-font-heading);
  font-size: var(--cp-text-lg);
  font-weight: 600;
  color: var(--cp-text-primary);
}

.cp-match-stake {
  font-family: var(--cp-font-mono);
  font-size: var(--cp-text-sm);
  color: var(--cp-neon-cyan);
  background: var(--cp-neon-cyan-dim);
  padding: var(--cp-space-xs) var(--cp-space-sm);
  border-radius: var(--cp-radius-sm);
}

.cp-match-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--cp-space-md);
  margin-top: var(--cp-space-md);
  padding-top: var(--cp-space-md);
  border-top: 1px solid var(--cp-border);
}

.cp-match-detail {
  text-align: center;
}

.cp-match-detail-label {
  font-size: var(--cp-text-xs);
  color: var(--cp-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cp-match-detail-value {
  font-family: var(--cp-font-heading);
  font-size: var(--cp-text-base);
  font-weight: 600;
  color: var(--cp-text-primary);
  margin-top: var(--cp-space-xs);
}

/* === PLACEHOLDER STATES === */
.cp-placeholder {
  text-align: center;
  padding: var(--cp-space-2xl);
  background: var(--cp-surface);
  border: 2px dashed var(--cp-border);
  border-radius: var(--cp-radius-lg);
  color: var(--cp-text-tertiary);
}

.cp-placeholder-icon {
  font-size: 3rem;
  margin-bottom: var(--cp-space-md);
  opacity: 0.5;
}

.cp-placeholder-text {
  font-size: var(--cp-text-lg);
  margin-bottom: var(--cp-space-sm);
}

.cp-placeholder-subtext {
  font-size: var(--cp-text-sm);
  color: var(--cp-text-tertiary);
  max-width: 400px;
  margin: 0 auto;
}