/* ============================================================
   Bayard
   Light "F violet #4D3981" — violet header and footer framing the page, white
   text and yellow logo on violet, violet actions and prices, a barely violet-tinted
   page background with pale lavender cards on top, pale violet bands.
   Dark "Encre et soleil" — yellow buttons with blue text, violet header and
   footer as in light mode, deep violet page background.
   Dark mode uses the same selector as app.css so this file wins by load order.
   ============================================================ */

/* --- Light mode (default) --- */
:root {
    /* Brand */
    --color-primary: #4D3981;
    --color-primary-darker: #3A2A63;
    --color-primary-light: #FF6400;
    --color-primary-text: #FFFFFF;
    --color-logo-icon: #FEEE01;

    /* Surfaces */
    --color-background: #F7F6FA;
    --color-background-secondary: #EEEBF5;
    --color-header: #4D3981;
    --color-footer: #4D3981;
    --color-backdrop: #1E1533;
    --color-card: #F3F0FC;
    --color-card-border: #E4DEF1;
    --color-card-selected: #F4F1FB;

    /* Pickup point map pins: violet, the selected bookstore in yellow (both modes) */
    --color-map-marker: #4D3981;
    --color-map-marker-selected: #FEEE01;
    --color-toast: #FFFFFF;
    --color-logo-baseline: #FFFFFF;
    --color-menu-logo-baseline: #000000;

    /* Text */
    --color-foreground: #332D45;
    --color-foreground-secondary: #5E5774;
    --color-foreground-ternary: #8C86A0;
    --color-header-foreground: #FFFFFF;
    --color-link-highlight: #FEEE01;
    --color-footer-foreground-hover: #FEEE01;
    --color-toast-foreground: #1E1533;
    --color-toast-foreground-secondary: #5E5774;

    /* Sidebar */
    --color-sidebar: #F0EDF7;
    --color-sidebar-foreground: #1E1533;
    --color-sidebar-secondary-foreground: #5E5774;
    --color-sidebar-ternary-foreground: #D2CAE4;
    --color-sidebar-header: #E4DEF1;

    /* Accents */
    --color-badge: #FEEE01;
    --color-badge-foreground: #111111;
    --color-surface-highlight: #E8E2F3;
    --color-surface-highlight-foreground: #1E1533;
    --color-surface-highlight-action: #4D3981;
    --color-surface-highlight-action-foreground: #FFFFFF;

    /* Primary button */
    --color-button: #FEEE01;
    --color-button-text: #000000;
    --color-button-hover: #F5E100;
}

/* --- Dark mode --- */
/* Only what differs from the light values above or from the app.css dark
   defaults (link, badge, button and logo colors already follow primary). */
:where(.dark, .dark *) {
    /* Brand */
    --color-primary: #FEEE01;
    --color-primary-darker: #FFF45C;
    --color-primary-text: #041CB0;

    /* Surfaces */
    --color-background: #1F1639;
    --color-background-secondary: #2A2049;
    --color-header: #4D3981;
    --color-footer: #4D3981;
    --color-backdrop: #000000;
    --color-card: #271D47;
    --color-card-border: #3A2E66;
    --color-toast: #2C2150;

    /* Text */
    --color-foreground: #E2DEEC;
    --color-foreground-secondary: #ABA4C2;
    --color-foreground-ternary: #837B9C;
    --color-header-foreground: #FFFFFF;
    --color-footer-foreground-hover: #FEEE01;
    --color-toast-foreground: #FFF7A8;
    --color-toast-foreground-secondary: #C9C08A;

    /* Sidebar */
    --color-sidebar: #2E2453;
    --color-sidebar-foreground: #EDE9F6;
    --color-sidebar-secondary-foreground: #B3AACB;
    --color-sidebar-ternary-foreground: #7A6FA0;
    --color-sidebar-header: #3A2E66;

    /* Accents */
    --color-surface-highlight: #2B1F4D;
    --color-surface-highlight-foreground: #FFF7A8;
    --color-surface-highlight-action: #FEEE01;
    --color-surface-highlight-action-foreground: #041CB0;
}
