/* ============================================================
   TurnierStream.Web.Shared — Ciblu Brand Tokens
   Canonical source for brand colors and design tokens.
   Both AdminSite and PublicSite must reference this file.
   ============================================================ */

/* --- Brand Tokens (Pantone 7629 / Pantone 200) --- */
:root {
    --ciblu-primary: #5F0912;
    --ciblu-primary-700: #4A070E;
    --ciblu-primary-800: #3A050B;
    --ciblu-secondary: #BA0C2F;
    --ciblu-primary-rgb: 95, 9, 18;
    --ciblu-secondary-rgb: 186, 12, 47;
}

/* --- Semantic Color Tokens (Light) --- */
:root {
    --color-primary: var(--ciblu-primary);
    --color-primary-hover: var(--ciblu-primary-700);
    --color-primary-active: var(--ciblu-primary-800);
    --color-accent: var(--ciblu-secondary);

    --background: #F6F7F9;
    --surface: #FFFFFF;
    --surface-alt: #F0F2F5;
    --text-primary: #0B0D12;
    --text-secondary: #5C6472;
    --text-muted: #8B92A0;
    /* Placeholder-TEXT braucht WCAG-1.4.3-Kontrast (>=4.5:1 auf --surface #FFFFFF).
       --text-muted (#8B92A0) erreicht auf Weiß nur 3.13:1 und bleibt echten
       Disabled-Zuständen vorbehalten. --text-placeholder = --text-secondary
       (#5C6472) misst 5.96:1 und ist damit konform. Berechnung: siehe
       PlaceholderContrastTests (measure, don't eyeball). */
    --text-placeholder: var(--text-secondary);
    --border-color: #E2E6ED;
    --border-subtle: #EEF0F4;

    --danger: #B00020;
    --danger-hover: #8B001A;
    --danger-bg: #FFF0F0;
    --success: #2E7D32;
    --success-bg: #F0FFF0;
    --warning: #E65100;
    --warning-bg: #FFF8E1;
    --info: #0277BD;
    --info-bg: #E8F4FD;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --overlay: rgba(0, 0, 0, 0.5);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;

    /* --- Spacing Scale --- */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;

    /* --- Typography Scale --- */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    --font-size-2xl: clamp(2rem, 1.6rem + 1.8vw, 3rem);
}

/* ============================================================
   Breakpoint Reference Constants (documentation only)
   ------------------------------------------------------------
   CSS custom properties CANNOT be used inside @media queries,
   so breakpoints are fixed pixel constants. These values are the
   canonical breakpoints for BOTH hosts — keep any @media rule in
   app.css aligned to exactly these widths:

     --bp-sm   : 576px   (small / large phones)
     --bp-md   : 768px   (tablets / mobile-desktop boundary)
     --bp-lg   : 992px   (desktop)
     --bp-xl   : 1200px  (wide desktop)
   ============================================================ */

/* --- Bootstrap Overrides --- */
:root,
[data-bs-theme="ciblu"] {
    --bs-primary: var(--ciblu-primary);
    --bs-primary-rgb: var(--ciblu-primary-rgb);
    --bs-link-color: var(--color-accent);
    --bs-link-color-rgb: var(--ciblu-secondary-rgb);
    --bs-link-hover-color: var(--color-primary);
    --bs-danger: var(--danger);
    --bs-danger-rgb: 176, 0, 32;
    --bs-body-color: var(--text-primary);
    --bs-body-bg: var(--background);
    --bs-tertiary-bg: var(--surface-alt);
    --bs-border-color: var(--border-color);
    --bs-focus-ring-color: rgba(var(--ciblu-secondary-rgb), 0.35);
    --bs-primary-bg-subtle: #F6E6EA;
    --bs-primary-border-subtle: #EBC2CD;
}
