@import '_content/Sorcha.UI.Components.User/Sorcha.UI.Components.User.txxfne8gai.bundle.scp.css';

/* /Components/OfflineBanner.razor.rz.scp.css */
/* SPDX-License-Identifier: MIT
   Copyright (c) 2026 Sorcha Contributors
   Slim offline status strip. Amber, full-bleed, sits at the top of the content
   region under the app bar. Honours the iOS safe-area when it lands at the very
   top of the viewport. */

.offline-banner[b-0na8pnb8md] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #5a3d00;
    background: #ffe6a8;
    border-bottom: 1px solid #e9c869;
}

.offline-banner[b-0na8pnb8md]  .mud-icon-root {
    flex: 0 0 auto;
    color: #5a3d00;
}
/* /Pages/Cards.razor.rz.scp.css */
/* SPDX-License-Identifier: MIT
   Copyright (c) 2026 Sorcha Contributors
   Cards listing screen. Single thumb-scrollable column of full credential
   cards. Surfaces/text follow the active MudBlazor palette (light/dark). */

.cards-header[b-2z1ajyxtmd] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.cards-header__count[b-2z1ajyxtmd] {
    font-size: 13px;
    font-weight: 700;
    color: var(--mud-palette-text-secondary, #5a607a);
}

.cards-list[b-2z1ajyxtmd] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The shared card insets -24px to sit into the Home hero; there's no hero here,
   so neutralise it (::deep pierces into the child component). */
.cards-list[b-2z1ajyxtmd]  .credential-wallet-card {
    margin-top: 0;
}

/* ── Skeleton ─────────────────────────────────────────────────────────── */
.credential-card-skeleton[b-2z1ajyxtmd] {
    height: 158px;
    border-radius: 16px;
    background: linear-gradient(100deg,
        var(--mud-palette-action-default-hover, rgba(120, 130, 170, .10)) 30%,
        var(--mud-palette-lines-default, rgba(120, 130, 170, .18)) 50%,
        var(--mud-palette-action-default-hover, rgba(120, 130, 170, .10)) 70%);
    background-size: 200% 100%;
    animation: cards-shimmer-b-2z1ajyxtmd 1.3s ease-in-out infinite;
}

@keyframes cards-shimmer-b-2z1ajyxtmd {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Empty state ──────────────────────────────────────────────────────── */
.cards-empty[b-2z1ajyxtmd] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cards-empty__ghost[b-2z1ajyxtmd] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    padding: 32px 20px;
    border-radius: 16px;
    border: 2px dashed var(--mud-palette-lines-default, rgba(120, 130, 170, .35));
    color: var(--mud-palette-text-secondary, #5a607a);
}

/* ── Add affordances ──────────────────────────────────────────────────── */
.cards-add-cta[b-2z1ajyxtmd] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--sorcha-gradient, linear-gradient(135deg, #4F46E5 0%, #818CF8 100%));
}

.cards-add-tile[b-2z1ajyxtmd] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    border-radius: 16px;
    border: 2px dashed var(--mud-palette-lines-default, rgba(120, 130, 170, .35));
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--mud-palette-text-secondary, #5a607a);
}

.cards-add-tile:hover[b-2z1ajyxtmd],
.cards-add-cta:hover[b-2z1ajyxtmd] {
    filter: brightness(1.03);
}

@media (prefers-reduced-motion: reduce) {
    .credential-card-skeleton[b-2z1ajyxtmd] {
        animation: none;
    }
}
/* /Pages/Index.razor.rz.scp.css */
/* SPDX-License-Identifier: MIT
   Copyright (c) 2026 Sorcha Contributors
   Feature 141 — wallet Home layout glue. */

/* Header affordances inside the gradient hero (inbox bell + scan), rendered
   white-on-gradient. FOLLOWUP polish — both icons land in matched 34×34
   translucent buttons with a 6px gap so the right edge reads as a balanced
   pair rather than two unrelated controls. */
.wallet-hero-actions[b-2pa3qnxphi] {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.wallet-hero-actions[b-2pa3qnxphi]  .mud-icon-button {
    width: 34px;
    height: 34px;
    padding: 0;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-radius: 10px;
}

    .wallet-hero-actions[b-2pa3qnxphi]  .mud-icon-button:hover {
        background: rgba(255, 255, 255, .22);
    }

    .wallet-hero-actions[b-2pa3qnxphi]  .mud-icon-button .mud-icon-root {
        width: 17px;
        height: 17px;
        font-size: 17px;
        color: #fff;
    }

/* The big Present / Verify action pair — two equal columns, 10px gap
   (handoff: gridTemplateColumns 1fr 1fr, gap 10). */
.wallet-action-pair[b-2pa3qnxphi] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* FOLLOWUP #4 — matched ghost-button pair below the Present/Verify grid. */
.wallet-secondary-pair[b-2pa3qnxphi] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

/* Sync is now the sole secondary action (demo-mint button removed). */
.wallet-secondary-pair--single[b-2pa3qnxphi] {
    grid-template-columns: 1fr;
}

/* Ghost button surface follows the active MudBlazor palette so the chrome
   is visible on both light and dark page backgrounds. mud-palette-action-
   default-hover sits ~6% on top of the surface in both themes, which matches
   the FOLLOWUP spec's "subtle on light / barely-there on dark" intent. */
.wallet-ghost-button[b-2pa3qnxphi] {
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--mud-palette-lines-default, rgba(255, 255, 255, .10));
    background: var(--mud-palette-action-default-hover, rgba(255, 255, 255, .08));
    color: var(--mud-palette-text-primary, #f3f4fa);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
    text-transform: none;
    /* MudButton minimum-width default would let one tile stretch — pin both. */
    width: 100%;
}

.wallet-ghost-button[disabled][b-2pa3qnxphi] {
    opacity: .6;
    cursor: default;
}

/* Freshness hint under the Sync / Add row. Quiet, secondary, centred. */
.wallet-sync-meta[b-2pa3qnxphi] {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--mud-palette-text-secondary, rgba(255, 255, 255, .55));
}

/* FOLLOWUP #1 — credential stack: top card is full; the rest fan out beneath
   it as overlapping card lips so a multi-credential wallet reads as a deck,
   not a list of thin strips. */
.credential-stack[b-2pa3qnxphi] {
    display: flex;
    flex-direction: column;
}

.credential-peek[b-2pa3qnxphi] {
    height: 40px;
    border-radius: 18px;
    /* Pull each lip up under the card above so only its top edge shows, and
       inset progressively so the deck tapers — the classic fanned-cards read.
       The negative top margin grows on later cards via :nth-of-type below. */
    margin-top: -22px;
    padding: 0 18px;
    display: flex;
    align-items: flex-start;
    padding-top: 7px;
    color: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 22px rgba(80, 90, 150, .22);
    transition: margin-top .15s ease, transform .15s ease;
}

/* Each successive lip insets slightly so the deck tapers toward the back. */
.credential-peek:nth-of-type(3)[b-2pa3qnxphi] { width: 96%; margin-left: 2%; }
.credential-peek:nth-of-type(4)[b-2pa3qnxphi] { width: 92%; margin-left: 4%; }
.credential-peek:nth-of-type(n+5)[b-2pa3qnxphi] { width: 88%; margin-left: 6%; }

/* Hover/focus lifts the lip a touch so it's clear it's an independent card. */
.credential-peek:hover[b-2pa3qnxphi],
.credential-peek:focus-visible[b-2pa3qnxphi] {
    margin-top: -16px;
    transform: translateY(-1px);
    outline: none;
}

.credential-peek__eyebrow[b-2pa3qnxphi] {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
