/* =========================================================================
 * tanin-theme — Fuji recolour for libadwaita / GTK4.
 * Drop-in at ~/.config/gtk-4.0/gtk.css. Overrides libadwaita's NAMED colors,
 * which recolours every libadwaita app (tsettings/thub, Nautilus, …) without a
 * full custom theme. Palette is 1:1 with eww.scss / the greeter.
 * ========================================================================= */

/* ---- Fuji palette -------------------------------------------------------- */
@define-color fuji_bg     #0f0f0f;
@define-color fuji_bg_alt #191919;
@define-color fuji_bg_hi  #242424;
@define-color fuji_fg     #f0f0f0;
@define-color fuji_muted  #8a8a8a;
@define-color fuji_accent #a39ec4;

/* ---- accent -------------------------------------------------------------- */
@define-color accent_color        #a39ec4;
@define-color accent_bg_color     #a39ec4;
@define-color accent_fg_color     #0f0f0f;   /* dark text on the light violet */

/* ---- window / base surfaces --------------------------------------------- */
@define-color window_bg_color   #0f0f0f;
@define-color window_fg_color   #f0f0f0;
@define-color view_bg_color     #141414;
@define-color view_fg_color     #f0f0f0;

/* ---- headerbar ----------------------------------------------------------- */
@define-color headerbar_bg_color       #0f0f0f;
@define-color headerbar_fg_color       #f0f0f0;
@define-color headerbar_border_color   #f0f0f0;
@define-color headerbar_backdrop_color #0f0f0f;
@define-color headerbar_shade_color    rgba(0, 0, 0, 0.5);

/* ---- cards / dialogs / popovers / sidebar ------------------------------- */
@define-color card_bg_color     #191919;
@define-color card_fg_color     #f0f0f0;
@define-color card_shade_color  rgba(0, 0, 0, 0.45);
@define-color dialog_bg_color   #141414;
@define-color dialog_fg_color   #f0f0f0;
@define-color popover_bg_color  #191919;
@define-color popover_fg_color  #f0f0f0;
@define-color sidebar_bg_color       #131313;
@define-color sidebar_fg_color       #f0f0f0;
@define-color sidebar_backdrop_color #0f0f0f;
@define-color sidebar_shade_color    rgba(0, 0, 0, 0.45);

/* ---- semantic ------------------------------------------------------------ */
@define-color destructive_color    #e0a3a3;
@define-color destructive_bg_color #b45c5c;
@define-color destructive_fg_color #0f0f0f;
@define-color success_color #9ec4a3;
@define-color warning_color #c4bd9e;
@define-color error_color   #e0a3a3;

@define-color shade_color   rgba(0, 0, 0, 0.4);
@define-color scrollbar_outline_color rgba(255, 255, 255, 0.06);

/* ---- pill-shaped controls (Fuji house style) --------------------------- *
 * Buttons, entries and toggles become stadium pills like the bar/greeter. */
button,
button.toggle,
menubutton > button,
dropdown > button,
splitbutton > button,
entry,
spinbutton,
.pill {
  border-radius: 999px;
  min-height: 0;
}
/* containers stay softly rounded, not stadium-shaped */
.card,
popover > contents,
.osd { border-radius: 14px; }
