/* ═══════════════════════════════════════════════════════════
   SWINGERSPHERE — DESIGN SYSTEM
   Premium Dark Mode · Copper Accents · Glassmorphism
═══════════════════════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-void:      #060608;
  --bg-deep:      #0d0d10;
  --bg-surface:   #141416;
  --bg-elevated:  #1a1a1e;
  --bg-card:      #1e1e22;
  --bg-glass:     rgba(255, 255, 255, 0.04);
  --bg-glass-md:  rgba(255, 255, 255, 0.07);
  --bg-glass-hv:  rgba(255, 255, 255, 0.10);

  /* Copper Palette */
  --copper-900:   #4a2e0f;
  --copper-700:   #8a5a25;
  --copper:       #c4813a;
  --copper-light: #e09455;
  --copper-pale:  #f0b878;
  --copper-glow:  rgba(196, 129, 58, 0.18);
  --copper-glow-lg: rgba(196, 129, 58, 0.35);
  --copper-border: rgba(196, 129, 58, 0.30);

  /* Neutrals */
  --white:        #f2f2f7;
  --silver-light: #d0d0d8;
  --silver:       #a0a0b0;
  --silver-dark:  #6a6a7a;
  --graphite:     #3a3a44;
  --graphite-dark:#242428;
  --border:       rgba(255, 255, 255, 0.08);
  --border-md:    rgba(255, 255, 255, 0.12);

  /* Semantic */
  --verified:     #30d158;
  --verified-glow: rgba(48, 209, 88, 0.20);
  --danger:       #ff453a;
  --danger-glow:  rgba(255, 69, 58, 0.20);
  --warning:      #ffd60a;
  --info:         #0a84ff;

  /* Trust Score Colors */
  --trust-low:    #ff453a;
  --trust-mid:    #ff9f0a;
  --trust-good:   var(--copper);
  --trust-high:   #30d158;

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', monospace;

  --text-xs:      0.70rem;
  --text-sm:      0.813rem;
  --text-base:    0.938rem;
  --text-md:      1.063rem;
  --text-lg:      1.25rem;
  --text-xl:      1.563rem;
  --text-2xl:     2rem;
  --text-3xl:     2.625rem;
  --text-4xl:     3.5rem;
  --text-5xl:     4.5rem;

  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-black:   900;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Radii */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.4);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.7);
  --shadow-copper: 0 0 24px rgba(196, 129, 58, 0.25);
  --shadow-copper-lg: 0 0 48px rgba(196, 129, 58, 0.35), 0 0 96px rgba(196, 129, 58, 0.15);

  /* Timing */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-back:   cubic-bezier(0.36, 0.07, 0.19, 0.97);
  --duration-fast:  150ms;
  --duration-base:  280ms;
  --duration-slow:  500ms;

  /* Layout */
  --navbar-h:   68px;
  --topbar-h:   60px;
  --max-w:      480px;
  --fab-size:   56px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--white);
  background: var(--bg-void);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; border: none; outline: none; background: none; }
svg { display: block; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }

.weight-medium   { font-weight: var(--weight-medium); }
.weight-semibold { font-weight: var(--weight-semibold); }
.weight-bold     { font-weight: var(--weight-bold); }
.weight-black    { font-weight: var(--weight-black); }

.text-white   { color: var(--white); }
.text-silver  { color: var(--silver); }
.text-copper  { color: var(--copper); }
.text-muted   { color: var(--silver-dark); }
.text-verified { color: var(--verified); }
.text-danger  { color: var(--danger); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.uppercase   { text-transform: uppercase; letter-spacing: 0.08em; }
.tracking-wide { letter-spacing: 0.05em; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end  { justify-content: flex-end; }
.flex-1      { flex: 1; }
.flex-wrap   { flex-wrap: wrap; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }

.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }

/* Padding / Margin */
.p-3  { padding: var(--space-3); }
.p-4  { padding: var(--space-4); }
.p-5  { padding: var(--space-5); }
.p-6  { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-5 { padding-left: var(--space-5); padding-right: var(--space-5); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }

/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--graphite); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--copper-700); }

/* ── SELECTION ──────────────────────────────────────────── */
::selection {
  background: var(--copper-glow-lg);
  color: var(--copper-pale);
}

/* ── FOCUS ──────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
