/* ==========================================================================
   gutrdun_vx4 HOMEPAGE DESIGN SYSTEM: BASE & TOKENS
   pages/home/assets/css/home-base.css
   ========================================================================== */

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

:root {
  /* Brand Core Palette */
  --vx-brand-navy: #081584;
  --vx-brand-navy-dark: #050b44;
  --vx-brand-navy-light: #1d2d9b;
  --vx-brand-deep: #070d1e;
  --vx-brand-slate: #0b1329;

  /* Accent & Conversion */
  --vx-gold: #f59e0b;
  --vx-gold-light: #fbbf24;
  --vx-gold-dark: #d97706;
  --vx-gold-glow: rgba(245, 158, 11, 0.35);

  --vx-emerald: #10b981;
  --vx-emerald-light: #34d399;
  --vx-emerald-dark: #059669;
  --vx-emerald-glow: rgba(16, 185, 129, 0.3);

  --vx-cyan: #06b6d4;
  --vx-crimson: #ef4444;

  /* Glassmorphism & Card Surfaces */
  --vx-surface-dark: #0b1329;
  --vx-surface-card: rgba(13, 23, 48, 0.82);
  --vx-surface-card-hover: rgba(19, 34, 70, 0.92);
  --vx-surface-glass: rgba(255, 255, 255, 0.05);
  --vx-surface-glass-light: rgba(255, 255, 255, 0.9);
  
  --vx-border-subtle: rgba(255, 255, 255, 0.12);
  --vx-border-medium: rgba(255, 255, 255, 0.22);
  --vx-border-gold: rgba(245, 158, 11, 0.45);
  --vx-border-emerald: rgba(16, 185, 129, 0.45);

  /* Typography Colors */
  --vx-text-white: #ffffff;
  --vx-text-heading: #f8fafc;
  --vx-text-body: #e2e8f0;
  --vx-text-muted: #94a3b8;
  --vx-text-dark: #0f172a;

  /* Typography Fonts */
  --vx-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --vx-font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --vx-font-badge: 'Bowlby One SC', sans-serif;

  /* Elevation Shadows */
  --vx-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --vx-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --vx-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --vx-shadow-gold: 0 8px 25px rgba(245, 158, 11, 0.3);
  --vx-shadow-emerald: 0 8px 25px rgba(16, 185, 129, 0.25);

  /* Transitions */
  --vx-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --vx-transition-fast: all 0.15s ease-out;

  /* Pill & Badge Tokens */
  --vx-badge-radius: 9999px;
}

/* Base Homepage Resets (Global & Scoped) */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

.bx-wrapper,
.bx-viewport {
  overflow: hidden !important;
  max-width: 100% !important;
}

.vx4-home-scope {
  font-family: var(--vx-font-sans);
  color: var(--vx-text-body);
  background-color: var(--vx-brand-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

.vx4-home-scope h1,
.vx4-home-scope h2,
.vx4-home-scope h3,
.vx4-home-scope h4,
.vx4-home-scope h5,
.vx4-home-scope h6 {
  font-family: var(--vx-font-display);
  font-weight: 700;
  color: var(--vx-text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Eliminate chaotic legacy text shadows inside home scope */
.vx4-home-scope .text-shadow-blue,
.vx4-home-scope .text-shadow-red,
.vx4-home-scope .text-shadow-yellow,
.vx4-home-scope .text-shadow-purple,
.vx4-home-scope .text-shadow-electric-green,
.vx4-home-scope .text-animated-shadow-green,
.vx4-home-scope .text-animated-shadow-purple,
.vx4-home-scope .text-animated-shadow-blue,
.vx4-home-scope .text-animated-shadow-orange,
.vx4-home-scope .text-animated-shadow-red {
  text-shadow: none !important;
}

/* Clean, Premium Gradient Text Utilities */
.vx-gradient-text-gold {
  background: linear-gradient(135deg, #ffffff 15%, var(--vx-gold-light) 50%, var(--vx-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.vx-gradient-text-emerald {
  background: linear-gradient(135deg, #ffffff 15%, var(--vx-emerald-light) 60%, var(--vx-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.vx-gradient-text-white {
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ==========================================================================
   BADGE PILL COMPONENT (Context-Aware for Dark and Light Surfaces)
   ========================================================================== */
.vx-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 1.15rem !important;
  border-radius: 9999px !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: auto !important;
  max-width: max-content !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  white-space: nowrap;
  transition: var(--vx-transition-fast);
}

/* Badges on Dark Surfaces (High Contrast WCAG AA / AAA) */
.vx-badge-gold {
  background: rgba(245, 158, 11, 0.16) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.55) !important;
  color: #fde047 !important; /* > 12:1 contrast against dark surfaces */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.vx-badge-emerald {
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.55) !important;
  color: #34d399 !important; /* > 10:1 contrast */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.vx-badge-navy {
  background: rgba(30, 58, 138, 0.35) !important;
  border: 1.5px solid rgba(147, 197, 253, 0.45) !important;
  color: #bfdbfe !important; /* > 11:1 contrast */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Defensive override: prevent any legacy bg-warning pill from rendering yellow-on-yellow */
.rounded-pill.bg-warning,
.badge.bg-warning {
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.6) !important;
  color: #fde047 !important;
}

/* Badges on Light Surfaces (High Contrast WCAG AA Fix) */
.vx-section-light .vx-badge-navy {
  background: rgba(8, 21, 132, 0.08) !important;
  border: 1.5px solid rgba(8, 21, 132, 0.45) !important;
  color: #081584 !important; /* 14.2:1 contrast on white */
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(8, 21, 132, 0.1);
}

.vx-section-light .vx-badge-gold {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1.5px solid rgba(217, 119, 6, 0.5) !important;
  color: #78350f !important; /* 9.1:1 contrast on white */
  font-weight: 800;
}

.vx-section-light .vx-badge-emerald {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1.5px solid rgba(5, 150, 105, 0.5) !important;
  color: #064e3b !important; /* 9.4:1 contrast on white */
  font-weight: 800;
}

/* Standardized Descriptive Copy Scale: Prohibit Illegible Small Text */
.vx4-home-scope p:not(.vx-micro-text):not(.errjs) {
  font-size: 1rem;
  line-height: 1.65;
}

.vx-section-dark p:not(.text-white):not(.text-warning),
.vx-section-slate p:not(.text-white):not(.text-warning),
.vx-trade-card p:not(.text-white):not(.text-warning) {
  color: var(--vx-text-body) !important;
}

.vx-section-light p:not(.text-dark):not(.text-warning) {
  color: var(--vx-text-dark-secondary, #334155) !important;
}

.vx-text-readable-sub {
  color: var(--vx-text-secondary) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}
