/* Gotham Font Family - @font-face Declarations */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-ThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-XLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-XLightItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-BookItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Black.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-BlackItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-Ultra.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('../fonts/Gotham-UltraItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Global CSS Variables for Consistent Styling */
:root {
  /* Primary Colors */
  --primary: #ffde02;
  --primary-hover: #ffde02;
  --secondary: #ffde02;
  
  /* Dark Colors */
  --dark-800: #000000;
  --dark-700: #000000;
  --dark-600: #000000;
  --dark-500: #000000;
  
  /* Light Colors */
  --light: #ffffff;
  --light-100: #f9fafb;
  --light-200: #f1f5f9;
  --light-300: #e2e8f0;
  --light-400: #cbd5e1;
  
  /* Error Colors */
  --error: #ffe000;
  --success: #22c55e;
  --warning: #ffe000;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Typography - Gotham Font Family */
  --font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-body: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-ui: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  
  /* Font Weights - Gotham Specific */
  --font-weight-thin: 100;
  --font-weight-xlight: 200;
  --font-weight-light: 300;
  --font-weight-book: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 800;
  --font-weight-ultra: 900;
  
  /* Legacy Font Weights (for compatibility) */
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-extrabold: 800;
  
  /* Typography Hierarchy */
  --font-weight-heading: var(--font-weight-bold);
  --font-weight-subheading: var(--font-weight-medium);
  --font-weight-body: var(--font-weight-book);
  --font-weight-caption: var(--font-weight-light);
  --font-weight-button: var(--font-weight-medium);
  --font-weight-label: var(--font-weight-medium);
  
  /* Navigation Icon Sizing */
  --nav-icon-size: 20px;
  --nav-icon-stroke: 2;
  
  /* Legacy Support - Map old variables to new ones */
  --primary-black: #000000;
  --bg-secondary: var(--dark-800);
  --bg-card: var(--light);
  --bg-hover: rgba(255, 222, 2, 0.1);
  --border-primary: var(--light-300);
  --border-accent: rgba(255, 222, 2, 0.3);
  --text-primary: var(--dark-800);
  --text-secondary: var(--dark-600);
  --text-accent: var(--primary);
  --text-dark: var(--dark-800);
  --btn-primary-bg: var(--primary);
  --btn-primary-text: var(--dark-800);
  --btn-primary-hover: #e6c800;
  --btn-secondary-bg: var(--light-200);
  --btn-secondary-text: var(--dark-800);
  --btn-secondary-hover: rgba(255, 222, 2, 0.2);
  --shadow-primary: rgba(0, 0, 0, 0.1);
  --shadow-accent: rgba(255, 222, 2, 0.3);
  --font-sans: var(--font-family);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Explore Page Specific Spacing */
  --explore-gap: 1.5rem;           /* 24px - Main gap between major sections */
  --explore-gap-sm: 1rem;          /* 16px - Smaller gap for related elements */
  --explore-gap-xs: 0.75rem;       /* 12px - Minimal gap for tight spacing */
  --explore-padding: 2rem;         /* 32px - Standard padding for containers */
  --explore-padding-sm: 1.5rem;    /* 24px - Smaller padding */
  --explore-padding-xs: 1rem;      /* 16px - Minimal padding */
  --explore-margin: 2rem;          /* 32px - Standard margin between sections */
  --explore-margin-sm: 1.5rem;     /* 24px - Smaller margin */
  --explore-margin-xs: 1rem;       /* 16px - Minimal margin */
  
  /* Card and Grid Spacing */
  --card-gap: 1.5rem;              /* 24px - Gap between game cards */
  --card-gap-sm: 1rem;             /* 16px - Smaller card gap for mobile */
  --card-padding: 1.5rem;          /* 24px - Standard card padding */
  --card-padding-sm: 1rem;         /* 16px - Smaller card padding */
  
  /* Form and Control Spacing */
  --form-gap: 1.5rem;              /* 24px - Gap between form groups */
  --form-gap-sm: 1rem;             /* 16px - Smaller form gap */
  --control-gap: 1rem;             /* 16px - Gap between form controls */
  --control-gap-sm: 0.75rem;       /* 12px - Smaller control gap */
  
  /* Game Card Variables */
  --card-bg: #000000;
  --card-border: #000000;
  --text-primary: #ffffff;
  --text-secondary: #aab;
  --border-color: #333;
}

/* Global Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Normalize base font size */
}

body {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  font-size: var(--font-size-base);
  background: linear-gradient(135deg, #000000 0%, #000000 50%, #000000 100%);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-heading);
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-ultra);
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-black);
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

h5 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

p {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-body);
  margin: 0 0 1rem 0;
}

/* Button Typography */
button, .btn {
  font-family: var(--font-family-ui);
  font-weight: var(--font-weight-button);
}

/* Form Elements */
input, textarea, select {
  font-family: var(--font-family-ui);
  font-weight: var(--font-weight-body);
}

/* Labels and Captions */
label {
  font-family: var(--font-family-ui);
  font-weight: var(--font-weight-label);
}

.caption, .text-caption {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-caption);
  font-size: var(--font-size-sm);
}

/* Navigation */
nav, .nav {
  font-family: var(--font-family-ui);
  font-weight: var(--font-weight-medium);
}

/* Global Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--shadow-accent);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

/* Global Card Styles */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Global Input Styles */
.input {
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: var(--font-size-base);
  transition: all var(--transition-normal);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* Global Container Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Global Section Styles */
.section {
  padding: var(--spacing-xl) 0;
}

/* Global Grid Styles */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Global Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 211, 0, 0.3);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: var(--spacing-sm);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Global Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Navigation Icon Sizing - Consistent across all pages */
.navbar [data-lucide],
.navbar .nav-icon,
.navbar .icon {
  width: var(--nav-icon-size);
  height: var(--nav-icon-size);
  stroke-width: var(--nav-icon-stroke);
  flex: 0 0 var(--nav-icon-size);
  line-height: 1;
}

/* Normalize buttons that wrap icons so height doesn't shrink */
.navbar .nav-link,
.navbar .icon-button,
.navbar .tokens-pill,
.navbar .search-button {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Use consistent spacing */
}

/* Override navbar spacing to be consistent */
.navbar-right {
  gap: 16px !important;
}

.navbar-actions {
  gap: 16px !important;
}

/* Ensure navbar spacing is consistent across all pages */
.navbar .navbar-actions {
  gap: 16px !important;
}

.navbar-container .navbar-actions {
  gap: 16px !important;
}

/* When a circle or counter is next to the icon, don't change icon size */
.navbar .badge,
.navbar .counter {
  line-height: 1;
} 