/* Aura theme presets.
   One file, applied app-wide via <html data-theme="...">. Each preset sets BOTH variable-naming
   sets used across the app (home.html uses --surface/--text-dim/--user-bubble; settings/login use
   --card/--dim/--primary2), so every page recolors together. :root[data-theme] out-specifies the
   per-page inline :root, so load order doesn't matter. */

/* 1) DARK — Rarity purple (the default) */
:root[data-theme="dark"]{
  --bg:#0f0e13; --sidebar:#16141c; --surface:#1d1a25; --surface-2:#272233;
  --card:#1b1826; --card2:#241f32; --border:#322d3f;
  --text:#ededf2; --dim:#a39db5; --text-dim:#a39db5; --text-faint:#6f6880;
  --primary:#c9a3f7; --primary-strong:#7c4ddb; --primary2:#7c4ddb;
  --user-bubble:#2a2436; --danger:#ff6b8a; --red:#ff6b8a; --ok:#5fd39a;
  color-scheme:dark;
}

/* 2) LIGHT — clean everyday white */
:root[data-theme="light"]{
  --bg:#f6f7f9; --sidebar:#eef0f4; --surface:#ffffff; --surface-2:#f0f1f4;
  --card:#ffffff; --card2:#f0f1f4; --border:#e2e5ea;
  --text:#1a1a22; --dim:#6b7280; --text-dim:#6b7280; --text-faint:#9aa0ab;
  --primary:#7c4ddb; --primary-strong:#6a3fc0; --primary2:#7c4ddb;
  --user-bubble:#ece7fb; --danger:#d33b57; --red:#d33b57; --ok:#1a9e63;
  color-scheme:light;
}

/* 3) BLACKOUT — pure black / white / gray */
:root[data-theme="blackout"]{
  --bg:#000000; --sidebar:#070707; --surface:#0c0c0c; --surface-2:#161616;
  --card:#0b0b0b; --card2:#151515; --border:#2a2a2a;
  --text:#f4f4f4; --dim:#9a9a9a; --text-dim:#9a9a9a; --text-faint:#6a6a6a;
  --primary:#ffffff; --primary-strong:#cfcfcf; --primary2:#d4d4d4;
  --user-bubble:#1c1c1c; --danger:#ff5c5c; --red:#ff5c5c; --ok:#bdbdbd;
  color-scheme:dark;
}

/* 4) MESSAGES — iPhone texting (light, blue accent, green/blue bubbles) */
:root[data-theme="imessage"]{
  --bg:#ffffff; --sidebar:#f2f2f7; --surface:#ffffff; --surface-2:#e9e9ef;
  --card:#f2f2f7; --card2:#e9e9ef; --border:#d1d1d6;
  --text:#000000; --dim:#8e8e93; --text-dim:#8e8e93; --text-faint:#aeaeb2;
  --primary:#0a84ff; --primary-strong:#0060df; --primary2:#0a84ff;
  --user-bubble:#34c759; --danger:#ff3b30; --red:#ff3b30; --ok:#34c759;
  color-scheme:light;
}
/* iMessage touches: user bubble is the green pill with white text; AI replies sit in a gray pill. */
:root[data-theme="imessage"] .row.user .bubble{background:#34c759;color:#fff;border-color:transparent;}
:root[data-theme="imessage"] .row.ai .bubble{background:#e9e9eb;color:#000;padding:11px 16px;border-radius:18px 18px 18px 6px;width:auto;max-width:80%;}

/* 5) MESSENGER — Facebook Messenger (light, blue bubbles) */
:root[data-theme="messenger"]{
  --bg:#ffffff; --sidebar:#f0f2f5; --surface:#ffffff; --surface-2:#e4e6eb;
  --card:#f0f2f5; --card2:#e4e6eb; --border:#ced0d4;
  --text:#050505; --dim:#65676b; --text-dim:#65676b; --text-faint:#8a8d91;
  --primary:#0084ff; --primary-strong:#0068d1; --primary2:#0084ff;
  --user-bubble:#0084ff; --danger:#fa383e; --red:#fa383e; --ok:#31a24c;
  color-scheme:light;
}
/* Messenger touches: blue outgoing bubble (white text), light-gray incoming bubble. */
:root[data-theme="messenger"] .row.user .bubble{background:#0084ff;color:#fff;border-color:transparent;}
:root[data-theme="messenger"] .row.ai .bubble{background:#f0f0f0;color:#050505;padding:11px 16px;border-radius:18px 18px 18px 6px;width:auto;max-width:80%;}
