/*
 * Albufora palette. Brand values are the exact colors in the painted layers of
 * assets/svg/Albufora_logo_big_{light,dark}.svg. No tints are synthesized.
 * Keep brand primitives here and use the semantic theme tokens in components.
 */
:root {
    /* Original mountain gradients: hill1, hill2, foreground. */
    --brand-green-summit: #d6fa4a;
    --brand-green-bright: #78d92b;
    --brand-green-leaf: #149540;
    --brand-green-lime: #baf943;
    --brand-green-grass: #39c831;
    --brand-green-deep: #097a37;
    --brand-green-bank: #149e38;
    --brand-green-forest: #00682d;
    --brand-green-dark: #004e32;
    /* Original water and reflection gradients. */
    --brand-blue: #0068f2;
    --brand-blue-sky: #20b1fb;
    --brand-blue-clear: #55d9ff;
    --brand-blue-water: #008bea;
    --brand-blue-reflection: #007bec;
    --brand-blue-light: #6fe0ff;
    --brand-blue-glint: #dcfbff;
    --brand-riverbank: #003e47;

    --accent-blue: #118ef7;
    --neutral-white: #ffffff;
    --neutral-black: #000000;
    /* Fixed caption colors for the two unchanged application screenshots. */
    --preview-light-bg: #ffffff;
    --preview-light-text: #24272b;
    --preview-dark-bg: #22262b;
    --preview-dark-text: #eceff2;
    --preview-dark-line: #484f58;
    --shadow-faint: rgb(0 0 0 / 0.03);
    --shadow-soft: rgb(0 0 0 / 0.07);
    --shadow-medium: rgb(0 0 0 / 0.13);
    --shadow-strong: rgb(0 0 0 / 0.2);
    --shadow-product-color: rgb(0 0 0 / 0.27);
    --overlay: #000000;
    /* The existing Bootstrap chevron, used as an alpha mask for theme color. */
    --chevron-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

:root,
[data-bs-theme='light'] {
    color-scheme: light;
    --page: #f7f9fc;
    --surface: #ffffff;
    --soft: #eef2f7;
    --surface-hover: #e7edf4;
    --text: #24272b;
    --muted: #59677a;
    --line: #d6dfe9;
    --control-border: #77869a;
    --accent: var(--brand-green-deep);
    --accent-hover: #07632d;
    --accent-icon: var(--accent);
    --focus-ring: var(--accent);
    --button: #24272b;
    --button-text: #ffffff;
    --button-hover: #373c43;
    --primary-button: var(--accent);
    --primary-button-text: var(--neutral-white);
    --primary-button-hover: var(--accent-hover);
    --selection: var(--accent);
    --selection-text: #ffffff;
    --status-dot: var(--muted);
    --header: rgb(247 249 252 / 0.97);
    --wash: #e7edf4;
    --shadow: 0 12px 36px -22px rgb(24 39 62 / 0.16);
    --logo-a: var(--neutral-black);
    --primary-rgb: 9, 122, 55;
    --body-rgb: 247, 249, 252;
    --text-rgb: 36, 39, 43;
}

[data-bs-theme='dark'] {
    color-scheme: dark;
    --page: #121417;
    --surface: #1a1d21;
    --soft: #22262b;
    --surface-hover: #2b3036;
    --text: #f2f3f5;
    --muted: #b0b7bf;
    --line: #343a42;
    --control-border: #747b84;
    --accent: var(--accent-blue);
    --accent-hover: #4ca9fa;
    --accent-icon: var(--accent);
    --focus-ring: var(--accent);
    --button: #f2f3f5;
    --button-text: #1a1d21;
    --button-hover: #ffffff;
    --primary-button: var(--accent);
    --primary-button-text: var(--page);
    --primary-button-hover: var(--accent-hover);
    --selection: var(--accent);
    --selection-text: #121417;
    --status-dot: var(--muted);
    --header: rgb(18 20 23 / 0.94);
    --wash: #22262b;
    --shadow: 0 12px 36px -22px rgb(0 0 0 / 0.36);
    --logo-a: var(--neutral-white);
    --primary-rgb: 17, 142, 247;
    --body-rgb: 18, 20, 23;
    --text-rgb: 242, 243, 245;
}

/* Bind Bootstrap's used surfaces and components to the same theme. */
:root,
[data-bs-theme] {
    --bs-body-bg: var(--page);
    --bs-body-bg-rgb: var(--body-rgb);
    --bs-body-color: var(--text);
    --bs-body-color-rgb: var(--text-rgb);
    --bs-body-font-family: Manrope, Segoe UI, Arial, sans-serif;
    --bs-emphasis-color: var(--text);
    --bs-emphasis-color-rgb: var(--text-rgb);
    --bs-secondary-color: var(--muted);
    --bs-secondary-bg: var(--soft);
    --bs-tertiary-bg: var(--surface);
    --bs-border-color: var(--line);
    --bs-primary: var(--accent);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-link-color: var(--accent);
    --bs-link-color-rgb: var(--primary-rgb);
    --bs-link-hover-color: var(--accent);
    --bs-link-hover-color-rgb: var(--primary-rgb);
    --bs-focus-ring-color: var(--focus-ring);
}
