/* ==========================================================================
   Gold Bottom Ent. LLC — Base Styles
   CSS variables, reset, typography, utilities
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* --- Colors: Backgrounds --- */
  --color-bg:             #0d1117;
  --color-bg-secondary:   #161b22;
  --color-bg-tertiary:    #1c2128;
  --color-bg-elevated:    #21262d;

  /* --- Colors: Borders --- */
  --color-border:         #30363d;
  --color-border-light:   #3b434b;
  --color-border-focus:   rgba(207, 166, 49, 0.45);

  /* --- Colors: Gold Accent (metallic / royal gold) --- */
  --color-gold:           #d4a017;
  --color-gold-dark:      #b8860b;
  --color-gold-light:     #e8c547;
  --color-gold-muted:     rgba(184, 134, 11, 0.15);
  --color-gold-border:    rgba(184, 134, 11, 0.12);

  /* --- Colors: Text --- */
  --color-text:           #e6edf3;
  --color-text-secondary: #8b949e;
  --color-text-muted:     #6e7681;
  --color-text-inverse:   #0d1117;

  /* --- Colors: Semantic --- */
  --color-success:        #3fb950;
  --color-success-muted:  rgba(63, 185, 80, 0.15);
  --color-warning:        #d29922;
  --color-warning-muted:  rgba(210, 153, 34, 0.15);
  --color-danger:         #f85149;
  --color-danger-muted:   rgba(248, 81, 73, 0.15);
  --color-info:           #58a6ff;
  --color-info-muted:     rgba(88, 166, 255, 0.15);

  /* --- Fonts --- */
  --font-heading:         'Montserrat', sans-serif;
  --font-body:            'Inter', sans-serif;
  --font-mono:            'JetBrains Mono', 'Fira Code', monospace;

  /* --- Font Sizes --- */
  --text-xs:    0.75rem;   /* 12px */
  --text-sm:    0.875rem;  /* 14px */
  --text-base:  1rem;      /* 16px */
  --text-md:    1.125rem;  /* 18px */
  --text-lg:    1.25rem;   /* 20px */
  --text-xl:    1.5rem;    /* 24px */
  --text-2xl:   1.875rem;  /* 30px */
  --text-3xl:   2.25rem;   /* 36px */
  --text-4xl:   3rem;      /* 48px */
  --text-5xl:   3.75rem;   /* 60px */

  /* --- Font Weights --- */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extrabold:800;

  /* --- Line Heights --- */
  --lh-tight:   1.2;
  --lh-snug:    1.375;
  --lh-normal:  1.5;
  --lh-relaxed: 1.625;
  --lh-loose:   2;

  /* --- Spacing --- */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;
  --space-4xl:  96px;

  /* --- Border Radius --- */
  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full:9999px;

  /* --- Shadows --- */
  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:    0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg:    0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-xl:    0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold:  0 0 20px rgba(184, 134, 11, 0.18);
  --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.3);

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Z-index Scale --- */
  --z-base:      1;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-fixed:     500;
  --z-overlay:   800;
  --z-modal:     900;
  --z-header:    1000;
  --z-toast:     1100;
  --z-tooltip:   1200;

  /* --- Layout --- */
  --sidebar-width:     260px;
  --sidebar-collapsed: 70px;
  --topbar-height:     60px;
  --header-height:     64px;
  --max-width:         1200px;
  --max-width-narrow:  800px;

  /* --- Accent Aliases (default: gold, overridden by .ent-theme / .biz-theme) --- */
  --color-accent:        var(--color-gold);
  --color-accent-dark:   var(--color-gold-dark);
  --color-accent-light:  var(--color-gold-light);
  --color-accent-muted:  var(--color-gold-muted);
  --color-accent-border: var(--color-gold-border);
  --shadow-accent:       var(--shadow-gold);
}

/* ---------- Vertical Theme Overrides ---------- */

/* Entertainment — warm gold (formalizes the default) + expressive typography */
body.ent-theme {
  --color-accent:        var(--color-gold);
  --color-accent-dark:   var(--color-gold-dark);
  --color-accent-light:  var(--color-gold-light);
  --color-accent-muted:  var(--color-gold-muted);
  --color-accent-border: var(--color-gold-border);
  --shadow-accent:       var(--shadow-gold);
}

body.ent-theme .hero-title {
  text-shadow: 0 0 60px rgba(184, 134, 11, 0.15);
}

body.ent-theme h1,
body.ent-theme h2 {
  font-weight: var(--fw-extrabold);
}

/* Enterprise — cool blue (professional/tech) + precision typography */
body.biz-theme {
  --color-accent:        #58a6ff;
  --color-accent-dark:   #388bfd;
  --color-accent-light:  #79c0ff;
  --color-accent-muted:  rgba(88, 166, 255, 0.15);
  --color-accent-border: rgba(88, 166, 255, 0.12);
  --shadow-accent:       0 0 20px rgba(56, 139, 253, 0.18);
}

body.biz-theme .hero-title {
  letter-spacing: -0.03em;
}

body.biz-theme h1,
body.biz-theme h2,
body.biz-theme h3 {
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
}


/* ---------- Box-Sizing Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ---------- Document Reset ---------- */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  tab-size: 4;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* --- Animated Background Orbs ---
   Rendered via .bg-orbs overlay div in the DOM (see index.html).
   body::before/::after approach was removed because layout wrappers
   (.public-main, .dashboard-main) sit at z-index:1 with opaque
   backgrounds, completely covering z-index:0 pseudo-elements.
   ------------------------------------------------------------ */

/* ---------- Margin / Padding Reset ---------- */
h1, h2, h3, h4, h5, h6,
p, ul, ol, dl, dd,
blockquote, figure, fieldset, pre {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

button {
  cursor: pointer;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}


/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  }
h5 { font-size: var(--text-lg);  }
h6 { font-size: var(--text-md);  }

p {
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
}

p + p {
  margin-top: var(--space-md);
}

strong, b {
  font-weight: var(--fw-semibold);
}

small {
  font-size: var(--text-sm);
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}


/* ---------- Links ---------- */
a:not([class]) {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:not([class]):hover {
  color: var(--color-gold-light);
  text-decoration: underline;
}

a:not([class]):focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ---------- Selection ---------- */
::selection {
  background-color: rgba(184, 134, 11, 0.30);
  color: var(--color-text);
}

::-moz-selection {
  background-color: rgba(184, 134, 11, 0.30);
  color: var(--color-text);
}


/* ---------- Scrollbar (Webkit) ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-light);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-bg);
}


/* ---------- Focus Visible Global ---------- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ---------- Text Utilities ---------- */
.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-secondary {
  color: var(--color-text-secondary);
}

.text-danger {
  color: var(--color-danger);
}

.text-success {
  color: var(--color-success);
}

.text-warning {
  color: var(--color-warning);
}

.text-info {
  color: var(--color-info);
}

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

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

.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); }

.font-heading {
  font-family: var(--font-heading);
}

.font-semibold {
  font-weight: var(--fw-semibold);
}

.font-bold {
  font-weight: var(--fw-bold);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ---------- Display Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none !important;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }

.w-full  { width: 100%; }
.h-full  { height: 100%; }

.relative { position: relative; }


/* ---------- Gradient Text ---------- */
.text-gradient-gold {
  background: linear-gradient(135deg, #d4a017 0%, #e8c547 50%, #b8860b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 50%, #388bfd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Extra Typography ---------- */
.font-extrabold {
  font-weight: var(--fw-extrabold);
}

.text-uppercase-sm {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
}

/* ---------- Section Utilities ---------- */
.section-spacer {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
