/* SPDX-License-Identifier: MIT
   Copyright (c) 2026 Sorcha Contributors */

/* Feature 141 "Bolder" reskin — brand tokens shared by the wallet chrome
   components (WalletHero / BigActionButton / WalletCardStack / FloatingTabBar).
   Surfaces, backgrounds, and text use MudBlazor's own --mud-palette-* variables
   (which the MudThemeProvider keeps in sync with light/dark), so only the
   bespoke, non-palette values live here. Each component also inlines a fallback
   in its var() usage so it renders correctly even when hosted somewhere that
   does not define these (e.g. the /app web host render-sanity path, FR-025). */
:root {
    --sorcha-gradient: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%);
    --sorcha-accent: #48bb78;
    --sorcha-warn: #d69e2e;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* Follow the active MudBlazor palette so dark mode does not flash a light
       page behind the layout; fall back to the light page bg token. */
    background: var(--mud-palette-background, #f4f5fb);
    color: var(--mud-palette-text-primary, #0f1024);
}

/* Feature 141 — reserve space for the floating tab bar so page content is never
   obscured: 56px bar + 14px bottom inset + its ~36px drop-shadow + breathing
   room + iOS home indicator. (Bumped from 92px — the last Settings block was
   peeking under the bar's shadow.) */
.wallet-content {
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px));
}

/* Build-version badge — fixed bottom-right corner on every screen so the running
   build is verifiable after a deploy. Tiny, muted, non-interactive; sits in the
   corner clear of the centred floating tab bar. */
.sorcha-build-badge {
    position: fixed;
    right: 6px;
    bottom: calc(3px + env(safe-area-inset-bottom, 0px));
    z-index: 1300;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    color: var(--mud-palette-text-disabled, rgba(0, 0, 0, .45));
    opacity: .6;
    pointer-events: none;
    user-select: none;
}

/* On Home the gradient hero is the header (no app bar), so content starts at
   the very top — drop MudMainContent's app-bar top padding. */
.wallet-content--home {
    padding-top: 0;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
