/* Apex Theme System — GTK4 / Libadwaita */
/* v2 spine: red = danger · violet = attention · cyan = info */


/* Scheme: Apex Neon (dark) */

@media (prefers-color-scheme: dark) {

  :root {
    /* Core Surfaces */
    @define-color window_bg_color #070709;
    @define-color window_fg_color #e6e8ec;

    @define-color view_bg_color #070709;
    @define-color view_fg_color #e6e8ec;

    @define-color headerbar_bg_color #101218;
    @define-color headerbar_fg_color #e6e8ec;
    @define-color headerbar_border_color #262a34;
    @define-color headerbar_backdrop_color @window_bg_color;
    @define-color headerbar_shade_color rgba(0, 0, 0, 0.07);

    @define-color popover_bg_color #101218;
    @define-color popover_fg_color #e6e8ec;

    @define-color card_bg_color #101218;
    @define-color card_fg_color #e6e8ec;
    @define-color card_shade_color rgba(0, 0, 0, 0.07);

    @define-color dialog_bg_color #101218;
    @define-color dialog_fg_color #e6e8ec;

    /* Accents */
    @define-color accent_color #00eaff;
    @define-color accent_bg_color #00eaff;
    @define-color accent_fg_color #070709;

    /* Destructive = danger red (spec §5,6) */
    @define-color destructive_color #ff0044;
    @define-color destructive_bg_color #ff0044;
    @define-color destructive_fg_color #070709;

    @define-color success_color #00ff99;
    @define-color success_bg_color #00ff99;
    @define-color success_fg_color #070709;

    @define-color warning_color #ffb700;
    @define-color warning_bg_color #ffb700;
    @define-color warning_fg_color #070709;

    @define-color error_color #ff0044;
    @define-color error_bg_color #ff0044;
    @define-color error_fg_color #070709;

    /* UI Elements */
    @define-color borders #262a34;
    @define-color sidebar_bg_color #101218;
    @define-color sidebar_fg_color #e6e8ec;
    @define-color sidebar_backdrop_color @window_bg_color;
    @define-color sidebar_shade_color rgba(0, 0, 0, 0.07);

    /* Custom Apex Palette */
    @define-color apex_focus #d68fff;
    @define-color apex_void #070709;
    @define-color apex_subtle #383d49;
  }
}

/* Scheme: Apex Aeon (light) */

@media (prefers-color-scheme: light) {

  :root {
    /* Core Surfaces */
    @define-color window_bg_color #f1f3f7;
    @define-color window_fg_color #16181d;

    @define-color view_bg_color #f1f3f7;
    @define-color view_fg_color #16181d;

    @define-color headerbar_bg_color #e7eaf0;
    @define-color headerbar_fg_color #16181d;
    @define-color headerbar_border_color #c2c8d4;
    @define-color headerbar_backdrop_color @window_bg_color;
    @define-color headerbar_shade_color rgba(0, 0, 0, 0.07);

    @define-color popover_bg_color #e7eaf0;
    @define-color popover_fg_color #16181d;

    @define-color card_bg_color #e7eaf0;
    @define-color card_fg_color #16181d;
    @define-color card_shade_color rgba(0, 0, 0, 0.07);

    @define-color dialog_bg_color #e7eaf0;
    @define-color dialog_fg_color #16181d;

    /* Accents */
    @define-color accent_color #0080a6;
    @define-color accent_bg_color #0080a6;
    @define-color accent_fg_color #f1f3f7;

    /* Destructive = danger red (spec §5,6) */
    @define-color destructive_color #c8003a;
    @define-color destructive_bg_color #c8003a;
    @define-color destructive_fg_color #f1f3f7;

    @define-color success_color #00875a;
    @define-color success_bg_color #00875a;
    @define-color success_fg_color #f1f3f7;

    @define-color warning_color #a86b00;
    @define-color warning_bg_color #a86b00;
    @define-color warning_fg_color #f1f3f7;

    @define-color error_color #c8003a;
    @define-color error_bg_color #c8003a;
    @define-color error_fg_color #f1f3f7;

    /* UI Elements */
    @define-color borders #c2c8d4;
    @define-color sidebar_bg_color #e7eaf0;
    @define-color sidebar_fg_color #16181d;
    @define-color sidebar_backdrop_color @window_bg_color;
    @define-color sidebar_shade_color rgba(0, 0, 0, 0.07);

    /* Custom Apex Palette */
    @define-color apex_focus #7c2fd6;
    @define-color apex_void #f1f3f7;
    @define-color apex_subtle #c8cdd8;
  }
}
