/*
  Design tokens + resets shared by every page.
  Palette, type and shapes are pulled directly from the Funkies254 Figma
  file (file key EnlZclkIhx5RBPEdrApW07): a deep navy night-sky backdrop,
  soft amber glow, glassmorphic cards and Inria Serif display type.
*/

@import url("https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,300;0,400;0,700;1,400&display=swap");

:root {
  /* Core palette (exact Figma values) */
  --color-bg: #020721;
  --color-bg-soft: #0a1030;
  --color-glow: #f2ad0d;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.72);
  --color-text-dim: rgba(255, 255, 255, 0.5);

  /* Glass surfaces */
  --color-card: rgba(217, 217, 217, 0.15);
  --color-card-strong: rgba(217, 217, 217, 0.75);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-input-bg: rgba(217, 217, 217, 0.64);
  --color-input-text: rgba(0, 0, 0, 0.66);
  --color-chip-bg: #d9d9d9;
  --color-pill-ghost: rgba(217, 217, 217, 0.31);
  --header-bg: rgba(0, 0, 0, 0.7);
  --color-navbar: var(--header-bg);
  --color-accent-blue: #3d7eff;
  --color-footer-overlay: rgba(0, 0, 0, 0.51);

  /* Accents */
  --color-teal: #32c1ce;
  --color-teal-text: #141833;
  --color-cyan: #1bc0e1;
  --color-gold: #dfb322;
  --color-gold-soft: #ae9435;
  --color-gold-bright: #e2b931;
  --color-danger: #ef6a6a;
  --color-danger-bg: rgba(239, 106, 106, 0.12);
  --color-success: #33c17a;
  --color-success-bg: rgba(51, 193, 122, 0.12);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radii + shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-text: 0 4px 4px rgba(0, 0, 0, 0.25);

  /* Typography */
  --font-display: "Inria Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inria Serif", Georgia, "Times New Roman", serif;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Soft amber "gold hues" glow blobs used behind every page, recreated in
   pure CSS from the Figma "Gold hues" / "Ellipse 6" vector assets. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(220px 220px at 12% 18%, rgba(242, 173, 13, 0.16), transparent 70%),
    radial-gradient(260px 260px at 88% 12%, rgba(242, 173, 13, 0.14), transparent 70%),
    radial-gradient(240px 240px at 20% 78%, rgba(242, 173, 13, 0.14), transparent 70%),
    radial-gradient(280px 280px at 90% 70%, rgba(242, 173, 13, 0.16), transparent 70%),
    radial-gradient(320px 320px at 55% 45%, rgba(242, 173, 13, 0.08), transparent 70%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--space-3);
  font-weight: 700;
  line-height: 1.2;
  font-family: var(--font-display);
}

p {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
  position: relative;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.06) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: var(--space-7) var(--space-4);
  color: var(--color-text-muted);
}
