/* ==========================================================================
   BINAFARM MASTER DESIGN SYSTEM (Gold & Obsidian Edition)
   Sistem de Design bazat pe prototipurile Zenith & Clinical Humanism
   ========================================================================== */

:root {
  /* Paletă Culori Fundal & Suprafețe */
  --bg-void-black: #050505;
  --surface-container-lowest: #110e07;
  --surface-container-low: #1f1b13;
  --surface-container: #231f17;
  --surface-container-high: #2d2a21;
  --surface-container-highest: #38342b;

  /* Culori Principale Gold (Auriu Lichid) */
  --color-gold-primary: #f2ca50;
  --color-gold-bright: #ffe088;
  --color-gold-dim: #d4af37;
  --color-gold-dark: #735c00;
  --color-gold-glow: rgba(212, 175, 55, 0.25);

  /* Culori Terțiare & Vitalitate */
  --color-vitality: #004D40;
  --color-vitality-light: #9bdbc9;
  --color-vitality-bright: #afefdd;

  /* Text & Contraste */
  --text-on-surface: #eae1d4;
  --text-on-surface-muted: #d0c5af;
  --text-dim: #99907c;

  /* Sticlă & Sticlire (Glassmorphic) */
  --glass-bg: rgba(18, 18, 18, 0.55);
  --glass-card: rgba(31, 27, 19, 0.65);
  --glass-blur: blur(20px);
  --glass-blur-heavy: blur(40px);
  --border-gold-subtle: rgba(212, 175, 55, 0.18);
  --border-gold-bright: rgba(242, 202, 80, 0.4);
  --border-glass: rgba(255, 255, 255, 0.08);

  /* Dimensiuni & Raza */
  --max-width: 1440px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Animații */
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Bază */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-void-black);
  color: var(--text-on-surface);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: var(--bg-void-black);
  min-height: 100vh;
}

/* Elemente Tipografice */
h1, h2, h3, h4, .font-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--text-on-surface);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

/* Degradé Auriu pentru Text */
.gold-gradient-text, .text-gold-gradient {
  background: linear-gradient(135deg, #ffe088 0%, #f2ca50 45%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold { color: var(--color-gold-primary); }
.text-dim { color: var(--text-dim); }
.text-vitality { color: var(--color-vitality-light); }

/* Panou Sticlă Glassmorphic Zenith */
.glass-panel {
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-gold-bright);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px var(--color-gold-glow);
}

/* Glow Auriu Ambiental */
.ambient-gold-glow {
  position: relative;
}

.ambient-gold-glow::before {
  content: '';
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

/* Carduri Medicale Standardizate */
.bina-card {
  background: var(--surface-container-low);
  border: 1px solid var(--border-gold-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.bina-card:hover {
  border-color: var(--color-gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 0 15px var(--color-gold-glow);
}

/* Embleme & Iconițe */
.logo-emblem {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(242, 202, 80, 0.08);
  border: 1px solid var(--border-gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Butoane de Acțiune VIP */
.btn-gold, .btn-primary {
  background: linear-gradient(135deg, #f2ca50 0%, #d4af37 100%);
  color: #050505;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover, .btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(242, 202, 80, 0.4);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold-primary);
  border: 1px solid var(--color-gold-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: rgba(242, 202, 80, 0.08);
  box-shadow: 0 0 12px var(--color-gold-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-surface-muted);
  border: none;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--color-gold-primary);
}

/* Insigne / Badges */
.bina-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(242, 202, 80, 0.12);
  border: 1px solid var(--color-gold-dim);
  color: var(--color-gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

.bina-badge-vitality {
  background: rgba(155, 219, 201, 0.12);
  border-color: var(--color-vitality-light);
  color: var(--color-vitality-bright);
}

.label-caps {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-primary);
}

/* Modul Senior "Vedere Clară" */
body.vedere-clara {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-size: 115% !important;
}

body.vedere-clara .bina-card,
body.vedere-clara .glass-panel {
  background: #111111 !important;
  border: 2px solid #f2ca50 !important;
}

body.vedere-clara h1, body.vedere-clara h2, body.vedere-clara h3,
body.vedere-clara p, body.vedere-clara span, body.vedere-clara a {
  color: #ffffff !important;
}

body.vedere-clara .text-gold,
body.vedere-clara .gold-gradient-text {
  color: #ffe088 !important;
  -webkit-text-fill-color: initial !important;
}

/* Canvas background WebGL */
#bina-shader-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

#bina-shader-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Meniu Mobil Drawer */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-gold-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  background: #110e07;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-drawer.drawer-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-gold-subtle);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-nav-links a {
  color: var(--text-on-surface);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-links a:hover {
  color: var(--color-gold-primary);
}

/* Bară Accesibilitate Jos */
.accessibility-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
}

.btn-vedere-clara {
  background: var(--surface-container-high);
  border: 1px solid var(--color-gold-primary);
  color: var(--color-gold-bright);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  transition: var(--transition-fast);
}

.btn-vedere-clara:hover {
  background: var(--color-gold-primary);
  color: #050505;
  box-shadow: 0 0 15px var(--color-gold-glow);
}
