/* ================================================================
   light-theme.css — Aurigga Technology
   Loaded AFTER all page-specific styles (via footer.php).
   Overrides only. Does not rewrite any page.
   ================================================================ */

/* ── 1. Design tokens ──────────────────────────────────────────── */
:root {
  /* Surfaces */
  --obsidian:      #f7f5f0;   /* main page background */
  --slate:         #ffffff;   /* cards, panels, form wrapper */
  --slate-light:   #f0ede6;   /* secondary surface / slate sections */

  /* Text */
  --text-primary:  #17171a;
  --text-secondary:#4a4a52;
  --text-muted:    #7a7a82;

  /* Borders */
  --border-subtle: rgba(0,0,0,0.08);

  /* Gold — darkened slightly for AA contrast on white */
  --gold:          #9a7432;
  --gold-hover:    #866327;
  --gold-dim:      rgba(154,116,50,0.10);
  --gold-border:   rgba(154,116,50,0.35);

  --success: #2a9d4a;
}

/* ── 2. Global body ────────────────────────────────────────────── */
body {
  background: var(--obsidian);
  color: var(--text-secondary);
}

/* ── 3. Header / nav (hardcoded dark in khda-gateway.php too) ──── */
.aug-nav,
#augNav {
  background: rgba(247,245,240,0.85) !important;
  border-bottom-color: rgba(0,0,0,0.08) !important;
}
.aug-nav.scrolled,
#augNav.scrolled {
  background: rgba(247,245,240,0.98) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
}
.aug-nav__links > li > a:hover,
.aug-dropdown__item:hover {
  background: rgba(0,0,0,0.04);
}

/* ── 4. Hero grid + glow (hardcoded white lines) ───────────────── */
.aug-hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
}
.aug-hero-glow {
  background: radial-gradient(circle, rgba(154,116,50,0.08) 0%, transparent 70%);
}

/* ── 5. Cards, plans, dropdowns, drawer ───────────────────────── */
.aug-card,
.aug-plan,
.aug-metric-box,
.aug-node,
.aug-seq,
.aug-api,
.aug-rules,
.aug-merchant-card,
.aug-segment-tile {
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.aug-dropdown {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.aug-drawer { background: var(--obsidian); }

/* Section slate variant */
.aug-section--slate { background: var(--slate-light); }

/* ── 6. Forms ─────────────────────────────────────────────────── */
.aug-form-group input,
.aug-form-group select,
.aug-form-group textarea {
  background: #ffffff;
  border-color: rgba(0,0,0,0.12);
  color: var(--text-primary);
}
.aug-form-group input::placeholder,
.aug-form-group textarea::placeholder { color: #9a9aa2; }

/* ── 7. Code blocks (khda-gateway hardcodes #07090c) ──────────── */
.aug-code {
  background: #f4f1ea;
  border-color: rgba(0,0,0,0.08);
  color: #2a2a2a;
}
.aug-code .k { color: #1a1a1a; }
.aug-code .s { color: #9a7432; }
.aug-code .c { color: #888; }

/* ── 8. CRITICAL: text-on-gold must stay dark ──────────────────
   These use `color: var(--obsidian)` — which now becomes light.
   Force them back to dark so gold buttons remain legible.        */
.aug-nav__cta,
.aug-btn--primary,
.aug-plan__badge,
.aug-merchant-node--center,
.aug-eco-center {
  color: #1a1a1a !important;
}
.aug-steps li:last-child::before {
  color: #1a1a1a;
}

/* ── 9. Alerts ─────────────────────────────────────────────────── */
.aug-alert--success {
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.35);
  color: #15803d;
}
.aug-alert--error {
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.35);
  color: #b91c1c;
}

