/* ============================================================
   BESTFFL REDESIGN PREMIUM — DESIGN SYSTEM v2.0.0
   Colors, Typography, Spacing, Elevations
   ============================================================ */

:root {
  /* === DEEPENED DARK PALETTE === */
  /* Original background #0B0B0E → deeper for premium feel + better contrast */
  --bestffl-bg-primary: #050507;
  --bestffl-bg-secondary: #0F0F14;
  --bestffl-bg-tertiary: #1A1A22;
  --bestffl-bg-hover: #252530;
  
  /* === ACCENT COLORS (refined for WCAG AA contrast) === */
  /* Gold: refined from #E3CB64 to brighter, more saturated */
  --bestffl-gold: #F0D860;
  --bestffl-gold-dark: #D4B842;
  --bestffl-gold-light: #FFF0B2;
  
  /* Lime: refined from #B2DA0C to more vibrant */
  --bestffl-lime: #C8E61B;
  --bestffl-lime-dark: #96B207;
  --bestffl-lime-light: #E6F76D;
  
  /* Purple: refined from #9A56A9 */
  --bestffl-purple: #B577D0;
  --bestffl-purple-dark: #7A3B8A;
  --bestffl-purple-light: #D9A4E8;
  
  /* === TEXT COLORS (WCAG AA contrast) === */
  --bestffl-text-primary: #FFFFFF;      /* 100% white on dark bg = 21:1 contrast */
  --bestffl-text-secondary: #E0E0E0;    /* 95% gray = 17.5:1 contrast */
  --bestffl-text-tertiary: #B0B0B0;     /* 69% gray = 7.5:1 contrast (links, muted) */
  --bestffl-text-disabled: #606060;     /* 37.6% gray = 4.5:1 contrast (minimum AA) */
  
  /* === BORDER & SUBTLE COLORS === */
  --bestffl-border-light: rgba(255, 255, 255, 0.08);
  --bestffl-border-medium: rgba(255, 255, 255, 0.12);
  --bestffl-border-strong: rgba(255, 255, 255, 0.18);
  
  /* === SEMANTIC COLORS === */
  --bestffl-success: #4ADE80;
  --bestffl-warning: #FACC15;
  --bestffl-error: #EF4444;
  --bestffl-info: #60A5FA;
  
  /* === SPACING SCALE (8px base, 1.5x multiplier) === */
  --bestffl-space-1: 0.25rem;  /* 4px */
  --bestffl-space-2: 0.5rem;   /* 8px */
  --bestffl-space-3: 0.75rem;  /* 12px */
  --bestffl-space-4: 1rem;     /* 16px */
  --bestffl-space-5: 1.5rem;   /* 24px */
  --bestffl-space-6: 2rem;     /* 32px */
  --bestffl-space-7: 3rem;     /* 48px */
  --bestffl-space-8: 4rem;     /* 64px */
  
  /* === TYPOGRAPHY === */
  /* Font stacks: premium serif (headings) + modern sans (body) */
  --bestffl-font-heading: 'Georgia', 'Garamond', serif;
  --bestffl-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  --bestffl-font-mono: 'Monaco', 'Courier New', monospace;
  
  /* === TYPE SCALES === */
  /* Heading 1 (page titles) */
  --bestffl-h1-size: clamp(2rem, 5vw, 3.5rem);
  --bestffl-h1-weight: 700;
  --bestffl-h1-line: 1.1;
  
  /* Heading 2 (section titles) */
  --bestffl-h2-size: clamp(1.5rem, 4vw, 2.5rem);
  --bestffl-h2-weight: 700;
  --bestffl-h2-line: 1.2;
  
  /* Heading 3 (subsection titles) */
  --bestffl-h3-size: clamp(1.25rem, 3vw, 1.75rem);
  --bestffl-h3-weight: 600;
  --bestffl-h3-line: 1.3;
  
  /* Heading 4 (card titles) */
  --bestffl-h4-size: 1.1rem;
  --bestffl-h4-weight: 600;
  --bestffl-h4-line: 1.4;
  
  /* Body text */
  --bestffl-body-size: 1rem;
  --bestffl-body-weight: 400;
  --bestffl-body-line: 1.6;
  
  /* Small text (captions, metadata) */
  --bestffl-small-size: 0.875rem;
  --bestffl-small-weight: 400;
  --bestffl-small-line: 1.5;
  
  /* === BORDERS & RADIUS === */
  --bestffl-radius-sm: 0.375rem;   /* 6px */
  --bestffl-radius-md: 0.5rem;     /* 8px */
  --bestffl-radius-lg: 0.75rem;    /* 12px */
  --bestffl-radius-xl: 1rem;       /* 16px */
  --bestffl-radius-full: 9999px;
  
  /* Border width */
  --bestffl-border-thin: 1px;
  --bestffl-border-normal: 1.5px;
  --bestffl-border-thick: 2px;
  
  /* === ELEVATIONS (box-shadow depths) === */
  --bestffl-shadow-sm: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  
  --bestffl-shadow-md: 
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  
  --bestffl-shadow-lg: 
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  
  --bestffl-shadow-xl: 
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  
  --bestffl-shadow-glow-gold: 
    0 0 20px rgba(240, 216, 96, 0.2),
    0 0 40px rgba(240, 216, 96, 0.1);
  
  --bestffl-shadow-glow-lime: 
    0 0 20px rgba(200, 230, 27, 0.2),
    0 0 40px rgba(200, 230, 27, 0.1);
  
  /* === TRANSITIONS === */
  --bestffl-transition-fast: 150ms ease-out;
  --bestffl-transition-normal: 250ms ease-out;
  --bestffl-transition-slow: 350ms ease-out;
}

/* ============================================================
   GLOBAL BASELINE
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.bestffl-premium-mode {
  background: var(--bestffl-bg-primary);
  color: var(--bestffl-text-primary);
  font-family: var(--bestffl-font-body);
  font-size: var(--bestffl-body-size);
  font-weight: var(--bestffl-body-weight);
  line-height: var(--bestffl-body-line);
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY COMPONENT STYLES
   ============================================================ */

h1, .h1 {
  font-family: var(--bestffl-font-heading);
  font-size: var(--bestffl-h1-size);
  font-weight: var(--bestffl-h1-weight);
  line-height: var(--bestffl-h1-line);
  letter-spacing: -0.02em;
  margin-bottom: var(--bestffl-space-6);
  color: var(--bestffl-text-primary);
}

h2, .h2 {
  font-family: var(--bestffl-font-heading);
  font-size: var(--bestffl-h2-size);
  font-weight: var(--bestffl-h2-weight);
  line-height: var(--bestffl-h2-line);
  letter-spacing: -0.01em;
  margin-bottom: var(--bestffl-space-5);
  color: var(--bestffl-text-primary);
}

h3, .h3 {
  font-family: var(--bestffl-font-heading);
  font-size: var(--bestffl-h3-size);
  font-weight: var(--bestffl-h3-weight);
  line-height: var(--bestffl-h3-line);
  margin-bottom: var(--bestffl-space-4);
  color: var(--bestffl-text-primary);
}

h4, .h4, strong, b {
  font-size: var(--bestffl-h4-size);
  font-weight: var(--bestffl-h4-weight);
  line-height: var(--bestffl-h4-line);
  color: var(--bestffl-text-primary);
}

small, .small {
  font-size: var(--bestffl-small-size);
  font-weight: var(--bestffl-small-weight);
  line-height: var(--bestffl-small-line);
  color: var(--bestffl-text-tertiary);
}

p {
  margin-bottom: var(--bestffl-space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--bestffl-gold);
  text-decoration: underline;
  transition: color var(--bestffl-transition-fast);
}

a:hover {
  color: var(--bestffl-gold-light);
}

a:active {
  color: var(--bestffl-gold-dark);
}

/* ============================================================
   UTILITY CLASSES (COMMON LAYOUTS)
   ============================================================ */

.bestffl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--bestffl-space-6) var(--bestffl-space-4);
}

.bestffl-box {
  background: var(--bestffl-bg-secondary);
  border: var(--bestffl-border-thin) solid var(--bestffl-border-medium);
  border-radius: var(--bestffl-radius-lg);
  padding: var(--bestffl-space-6);
  box-shadow: var(--bestffl-shadow-sm);
  transition: box-shadow var(--bestffl-transition-normal);
}

.bestffl-box:hover {
  box-shadow: var(--bestffl-shadow-md);
}

/* ============================================================
   WORD THEME INTEGRATION RESETS
   ============================================================ */

body.bestffl-premium-mode .wp-site-blocks,
body.bestffl-premium-mode .wp-block-post-content,
body.bestffl-premium-mode .entry-content {
  max-width: none !important;
  width: 100% !important;
}

body.bestffl-premium-mode .wp-site-blocks {
  padding-top: 0 !important;
}

body.bestffl-premium-mode main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.bestffl-premium-mode .wp-block-post-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.bestffl-premium-mode .wp-block-post-title,
body.bestffl-premium-mode h1.entry-title {
  display: none !important;
}
