/* Showcase-local polish. Component chrome comes from MudBlazor + the brand theme;
   this only styles the loading splash + a couple of gallery affordances. */

html, body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ci-showcase-splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #0a0e14;
    color: #9fb0c3;
    font-size: 0.95rem;
}

.ci-showcase-splash__spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(159, 176, 195, 0.25);
    border-top-color: #34d8a4;
    border-radius: 50%;
    animation: ci-showcase-spin 0.9s linear infinite;
}

@keyframes ci-showcase-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ci-showcase-splash__spinner { animation: none; }
}

/* Brand swatch grid (Tokens / AllBrands pages). */
.ci-swatch {
    border-radius: 8px;
    height: 64px;
    display: flex;
    align-items: flex-end;
    padding: 6px 8px;
    font-size: 0.7rem;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border: 1px solid var(--mud-palette-lines-default, rgba(127,127,127,0.25));
}

.ci-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 900px) {
    .ci-split { grid-template-columns: 1fr; }
}

/* The light/dark split panes need their own surface so both render at once. */
.ci-split-pane {
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(127, 127, 127, 0.25);
}

.ci-split-pane--light { background: #f4f7fa; color: #0a0e14; }
.ci-split-pane--dark { background: #0a0e14; color: #eaf0f6; }

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    background: #b3261e;
    color: #fff;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; float: right; }
