/* ============================================
   AURUM — Base Styles
   Resets, global elements, typography setup.
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamath:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

/* --- Numbers always mono --- */
.mono, 
.score, 
.amount, 
.rank,
.stat {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

/* --- Gold text utility --- */
.gold {
  color: var(--color-gold);
}

.gold-dim {
  color: var(--color-gold-dim);
}

.muted {
  color: var(--color-text-muted);
}

/* --- Divider --- */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dim);
}

/* --- Selection --- */
::selection {
  background: var(--color-gold-glow);
  color: var(--color-gold);
}

/* --- Images --- */
img {
  max-width: 100%;
  display: block;
}

/* --- Lists --- */
ul, ol {
  list-style: none;
}

/* --- Buttons reset --- */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  color: inherit;
}

/* --- Input reset --- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-base);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-gold-dim);
}

/* --- Layout containers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-lg {
  width: 100%;
  max-width: var(--max-width-lg);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* --- Page wrapper --- */
.page {
  min-height: 100vh;
  padding-bottom: var(--bottom-nav-h);
}

/* --- Gold shimmer animation --- */
@keyframes goldShimmer {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.shimmer {
  animation: goldShimmer 3s ease-in-out infinite;
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}