/* ClaFlowX brand override v2 — auto-injected via nginx sub_filter
   Aplica paleta premium: Obsidian + Royal Gold + Inter/Playfair */

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

:root, html.light, html.dark {
  /* Brand */
  --claflowx-obsidian:    #0F1626;
  --claflowx-eclipse:     #1A2236;
  --claflowx-mist:        #F4F6FB;
  --claflowx-gold:        #C9A961;
  --claflowx-gold-light:  #E0C079;
  --claflowx-gold-dark:   #9C7E3C;
  --claflowx-indigo:      #3D5AFE;

  /* Suprascriem variabilele Twenty */
  --color-blue:           var(--claflowx-gold) !important;
  --color-blue-10:        #FAF6EC !important;
  --color-blue-20:        #F0E5C5 !important;
  --color-blue-30:        #E0C079 !important;
  --color-blue-40:        #D7B370 !important;
  --color-blue-50:        var(--claflowx-gold) !important;
  --color-blue-60:        var(--claflowx-gold-dark) !important;
  --color-blue-70:        #7A6230 !important;
  --color-blue-80:        #5C4A24 !important;
  --color-blue-90:        #2E2412 !important;

  --background-color-brand:    var(--claflowx-obsidian) !important;
  --background-color-quaternary: var(--claflowx-eclipse) !important;
  --color-link-text:           var(--claflowx-indigo) !important;

  --button-primary-background:        var(--claflowx-gold) !important;
  --button-primary-background-hover:  var(--claflowx-gold-dark) !important;
  --button-primary-text:              var(--claflowx-obsidian) !important;

  --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}

html, body, #root, button, input, select, textarea {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, .font-display, [class*="HeroTitle"], [class*="DisplayHeading"] {
  font-family: 'Playfair Display', Georgia, serif !important;
  letter-spacing: -0.02em;
  font-weight: 700;
}

::selection { background: var(--claflowx-gold); color: var(--claflowx-obsidian); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,169,97,0.3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,169,97,0.6); }

/* Buton CTA aurit cu gradient subtil */
button[class*="primary" i],
button[data-variant="primary"],
button[data-button-variant="primary"] {
  background: linear-gradient(135deg, var(--claflowx-gold-light) 0%, var(--claflowx-gold) 50%, var(--claflowx-gold-dark) 100%) !important;
  color: var(--claflowx-obsidian) !important;
  border: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: all 0.2s ease !important;
}
button[class*="primary" i]:hover,
button[data-variant="primary"]:hover,
button[data-button-variant="primary"]:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(201,169,97,0.35);
  transform: translateY(-1px);
}

/* Sidebar - Obsidian deep */
[data-testid="sidebar"], aside[class*="Sidebar" i], nav[class*="Sidebar" i] {
  background: var(--claflowx-obsidian) !important;
  color: #ffffff !important;
}
[data-testid="sidebar"] a, [data-testid="sidebar"] button {
  color: rgba(255,255,255,0.85) !important;
}
[data-testid="sidebar"] a[aria-current="page"],
[data-testid="sidebar"] [class*="active" i] {
  background: var(--claflowx-eclipse) !important;
  color: var(--claflowx-gold) !important;
  border-left: 3px solid var(--claflowx-gold) !important;
}

/* Logo Twenty inlocuit cu ClaFlowX */
img[alt*="Twenty" i], img[src*="twenty-logo" i] {
  content: url('/brand/claflowx-mark.svg');
  width: 32px;
  height: 32px;
}

/* Tab activ - underline auriu */
[role="tab"][aria-selected="true"] {
  border-bottom-color: var(--claflowx-gold) !important;
  color: var(--claflowx-gold) !important;
}

/* Loading spinner aurit */
[class*="Spinner" i] circle { stroke: var(--claflowx-gold) !important; }

/* Badges premium */
[class*="Badge" i], [class*="Tag" i] {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Ascunde telemetry/analytics daca apar */
[class*="cookie" i][class*="banner" i],
[id*="hubspot" i],
[class*="intercom" i] { display: none !important; }
