/*
    core.css 
    Global design tokens + base element rules. 
    Keep ALL theme variables here.
*/

:root {
  /* --- Background Layers --- */
  --bg: #050608;
  --bg-soft: #101118;
  --bg-elevated: #101018;
  --bg-elevated-soft: #151521;
  --bg-gradient-one: #19192a;

  /* --- Text Colours --- */
  --text-main: #f5f1ff;
  --text-muted: #b4adc7;
  --text-soft: #8c849f;

  /* --- Accent (Pink Theme) --- */
  --accent: #ff4fae;
  --accent-strong: #ff7bc2;
  --accent-soft: rgba(255,79,174,0.16);

  /* --- Accent (Purple Theme – future toggle) --- */
  --accent-alt: #a37dff;
  --accent-alt2: #7651cd;

  /* --- Borders & Shadows --- */
  --border-subtle: #25253a;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.8);
  --shadow-subtle: 0 0 0 1px rgba(255, 255, 255, 0.04);

  /* --- Radius --- */
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-card: 1.6rem;

  /* --- Motion --- */
  --transition-fast: 140ms ease-out;
  --transition-med: 190ms ease-out;
  --transition-slow: 320ms ease-out;

  /* --- Surfaces --- */
  --surface: #151626;
  --surface-soft: #191a2a;

  /* =========================
     NAV TOKENS
     ========================= */

  /* NAV: card + pills */
  --nav-card-radius: 1.9rem;
  --nav-card-width: 520px;
  --nav-card-bg-top: #25152f;
  --nav-card-bg-bottom: #070712;
  --nav-card-border: rgba(255,255,255,0.08);
  --nav-card-shadow:
    0 26px 60px rgba(0,0,0,0.92),
    0 0 32px rgba(255,255,255,0.9);

  /* darker buttons than old mock */
  --nav-pill-bg: #0d0e18;
  --nav-pill-hover-bg: rgba(255,79,174,0.55);
  --nav-pill-border: rgba(255,255,255,0.10);

  /* active gradient */
  --nav-pill-active-left: rgba(163,125,255,0.7);
  --nav-pill-active-right: #ff4fae;

  /* holographic sweep colours */
  --nav-holo-main: rgba(255,79,174,0.55);
  --nav-holo-alt: rgba(163,125,255,0.55);

  /* backdrop */
  --nav-overlay-dark: rgba(0,0,0,0.80);
  --nav-overlay-pink: rgba(255,79,174,0.22);
  --nav-overlay-purple: rgba(163,125,255,0.22);

  /* NAV CLOSE BUTTON (X) */
  --nav-close-size: 48px;
  --nav-close-btn-bg: rgba(0,0,0,0);
  --nav-close-btn-radius: 50px;
  --nav-close-btn-shadow: 0 0 30px rgba(247,149,29,0);
  --nav-close-bar-width: 48px;
  --nav-close-bar-height: 6px;
  --nav-close-bar-radius: 6px;
  --nav-close-bar-left: 16px;

  /* Idle */
  --nav-close-bar-bg: #ff4fae;
  --nav-close-circle-bg: #cb4a8f;

  /* Hover */
  --nav-close-hover-bar-bg: #a37dff;
  --nav-close-hover-circle-bg: #7651cd;
  --nav-close-circle-offset: 48px;

  /* shared motion curve */
  --nav-close-transition: all 0.4s cubic-bezier(.215,.61,.355,1);
}

:root[data-theme="ruby-default"] {
  /* (keep expanding later; only overriding the essentials for now) */
  --bg: #050509;
  --bg-elevated: #101018;
  --bg-elevated-soft: #151521;

  --accent: #ff7fb7;
  --accent-soft: rgba(255, 127, 183, 0.15);
  --accent-strong: rgba(255, 127, 183, 0.25);

  --text-main: #f7f7ff;
  --text-soft: #b9b9d3;
  --text-muted: #7a7a9b;

  --border-subtle: #25253a;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
}

:root[data-theme="nari-deepwhisper"] {
  --bg: #05030a;
  --bg-elevated: #161024;
  --bg-elevated-soft: #221335;

  --accent: #b76aff;
  --accent-soft: rgba(183, 106, 255, 0.18);
  --accent-strong: rgba(183, 106, 255, 0.3);

  --text-main: #f5f2ff;
  --text-soft: #c3b7f2;
  --text-muted: #8f83c4;

  --border-subtle: #30274f;
  --shadow-soft: 0 22px 55px rgba(0, 0, 0, 0.55);
}

/* =========================
   Base rules
   ========================= */

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

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, var(--bg-gradient-one) 0, var(--bg) 55%, #020208 100%);
}

.footer {
	margin-top: 40px;
  margin-bottom: -20px;
	font-size: 0.75rem;
	text-align: center;
	color: var(--text-muted);
}

.footer-credit {
	margin-top: 30px;
	font-size: 0.10rem;
	line-height: 0.7rem;
	text-align: center;
	color: var(--text-muted);
	user-select: none;
}











/* ------------------------------
   Autofill / browser override
-------------------------------- */

input,
textarea {
  background-color: transparent;
  color: var(--text-main);
}

/* Chrome / Edge / Safari */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-main);
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 1000px transparent inset;
  caret-color: var(--text-main);
}

/* Firefox */
input:-moz-autofill,
textarea:-moz-autofill {
  box-shadow: 0 0 0 1000px transparent inset;
  -moz-text-fill-color: var(--text-main);
}

/* Prevent internal autofill styling */
input:autofill,
textarea:autofill {
  box-shadow: 0 0 0 1000px transparent inset;
}
