/* Spotify-style Inter font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Design System Spacing Variables */
:root {
  /* Base spacing unit: 8px */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */
  
  /* Component spacing */
  --section-gap: var(--space-12);      /* 48px between sections */
  --component-gap: var(--space-8);     /* 32px between components */
  --element-gap: var(--space-4);       /* 16px between elements */
  --edge-padding: var(--space-8);      /* 32px edge padding */
}

/* Prevent white bar on overscroll */
html, body {
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
}

/* Beautiful brand-themed scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #D4A574 #F7EFE5;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: #F7EFE5;
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #D4A574, #E8B55F);
  border-radius: 4px;
  border: 1px solid #F7EFE5;
  transition: all 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #8B2635, #D4A574);
  transform: scale(1.1);
}

*::-webkit-scrollbar-thumb:active {
  background: #8B2635;
}

*::-webkit-scrollbar-corner {
  background: #F7EFE5;
}

/* Dark mode scrollbars */
.dark * {
  scrollbar-color: #8B2635 #1C1410;
}

/* Force nav logo size */
.nav-logo-large {
  height: 96px !important;
  width: auto !important;
  max-height: none !important;
  max-width: none !important;
  min-height: 96px !important;
}

/* Global button styling - all buttons centered and uppercase */
button {
  text-align: center !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

/* Exception for specific buttons that should not be uppercase */
button.no-uppercase,
button[data-no-uppercase="true"],
.no-uppercase button {
  text-transform: none !important;
}

.dark *::-webkit-scrollbar-track {
  background: #1C1410;
}

.dark *::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8B2635, #D4A574);
  border: 1px solid #1C1410;
}

.dark *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #D4A574, #E8B55F);
}

.dark *::-webkit-scrollbar-corner {
  background: #1C1410;
}

/* Utility classes */
.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Global font family and text rendering */
* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px; /* Base font size - minimum 16px */
}

/* Proportional font size scale - 16px minimum, everything scales up from there */
.text-xs { font-size: 16px !important; }
.text-sm { font-size: 16px !important; }
.text-base { font-size: 18px !important; }
.text-lg { font-size: 20px !important; }
.text-xl { font-size: 24px !important; }
.text-2xl { font-size: 28px !important; }
.text-3xl { font-size: 32px !important; }
.text-4xl { font-size: 40px !important; }
.text-5xl { font-size: 48px !important; }
.text-6xl { font-size: 60px !important; }
.text-7xl { font-size: 72px !important; }

/* Prevent any text from being smaller than 16px */
* {
  font-size: max(16px, 1em);
}

/* Exception for very specific tiny labels that need to be smaller */
.text-\[9px\], .text-\[10px\], .text-\[11px\], .text-\[12px\], .text-\[13px\], .text-\[14px\], .text-\[15px\] {
  font-size: 16px !important;
}

/* Subtle raised effect on all text */
h1, h2, h3, h4, h5, h6, p, span, button, a, label, input, textarea {
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Dark mode text shadow */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6, 
.dark p, .dark span, .dark button, .dark a, .dark label, 
.dark input, .dark textarea {
  text-shadow: 0 0.5px 0 rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Shimmer animation for loading states */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for skeleton screens */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* Auth pages - prevent white bar on overscroll */
.auth-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #121212 !important;
  overscroll-behavior: none;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure auth page containers fill the viewport */
.auth-container {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  background-color: #121212 !important;
  width: 100%;
  overflow-y: auto;
  padding-top: 0;
  box-sizing: border-box;
}

/* Prevent any white background bleed-through */
html {
  background-color: #121212;
}

body.auth-active {
  background-color: #121212 !important;
  overscroll-behavior: none;
}