/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* =========================================================================
   MainLayout — FICSIT decorations layered onto MudLayout/MudAppBar/
   MudDrawer/MudMainContent. The structural rules (page, sidebar, top-row,
   responsive collapse) that lived here previously are now MudBlazor's job;
   only decorations and the global error UI remain in scoped CSS. MudBlazor
   class overrides live in wwwroot/app.css so they apply consistently
   regardless of where MudBlazor renders the markup.
   ========================================================================= */

/* SYSTEM ONLINE pulse indicator, top-left of the app bar. */
.status-strip[b-s2i2o7u8yo] {
    font-family: 'Bahnschrift', 'Cascadia Mono', 'Consolas', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fx-success);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-strip[b-s2i2o7u8yo]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fx-success);
    box-shadow: 0 0 6px 1px rgba(95, 201, 124, 0.6);
    animation: status-blink-b-s2i2o7u8yo 2.5s ease-in-out infinite;
}

@keyframes status-blink-b-s2i2o7u8yo {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}

/* Blazor's unhandled-error banner. Stays hidden until the framework unhides
   it on a circuit error. */
#blazor-error-ui[b-s2i2o7u8yo] {
    background: var(--fx-danger);
    color: #1B1B1F;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.4);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss[b-s2i2o7u8yo] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* =========================================================================
   NavMenu — FICSIT brand block at the top of MudDrawer, with bespoke SVG
   icons. Nav-link styling lives in wwwroot/app.css against MudBlazor's
   .mud-nav-link class so it applies wherever the nav is rendered.

   The hand-rolled mobile toggle, nav-scrollable, and navbar-toggler that
   lived here are now MudDrawer's responsibility (DrawerVariant.Responsive).
   ========================================================================= */

.brand-block[b-ut59ukakmh] {
    padding: 0.9rem 1rem 0.6rem 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(250, 149, 73, 0.25);
    position: relative;
}

/* Subtle hazard-stripe at the bottom of the brand block. */
.brand-block[b-ut59ukakmh]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 4px;
    background: repeating-linear-gradient(
        135deg,
        #FFC53D 0,
        #FFC53D 8px,
        #1A1A1A 8px,
        #1A1A1A 16px);
    opacity: 0.7;
}

.brand-row[b-ut59ukakmh] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-gear[b-ut59ukakmh] {
    width: 28px;
    height: 28px;
    color: #FA9549;
    flex-shrink: 0;
    display: inline-block;
    filter: drop-shadow(0 0 4px rgba(250, 149, 73, 0.45));
}

.brand-gear svg[b-ut59ukakmh] {
    width: 100%;
    height: 100%;
    fill: currentColor;
    animation: brand-gear-spin-b-ut59ukakmh 24s linear infinite;
    transform-origin: 50% 50%;
}

.brand-block:hover .brand-gear svg[b-ut59ukakmh] {
    animation-duration: 4s;
}

@keyframes brand-gear-spin-b-ut59ukakmh {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.brand-text[b-ut59ukakmh] {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-eyebrow[b-ut59ukakmh] {
    font-size: 0.62rem;
    color: #FFC53D;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: 'Bahnschrift', 'Segoe UI Variable', 'Segoe UI', sans-serif;
    font-weight: 600;
}

.brand-name[b-ut59ukakmh] {
    color: #FA9549 !important;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    font-family: 'Bahnschrift Condensed', 'Bahnschrift', 'Inter Tight', 'Segoe UI Variable', sans-serif;
}

.brand-name:hover[b-ut59ukakmh] {
    color: #FFB070 !important;
    text-decoration: none;
}

.brand-name-dot[b-ut59ukakmh] {
    color: #FFC53D;
}

.brand-sub[b-ut59ukakmh] {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    margin-top: 0.45rem;
    padding-left: calc(28px + 0.6rem);
    font-family: 'Bahnschrift', sans-serif;
    font-weight: 500;
}
/* /Components/Pages/Dashboard.razor.rz.scp.css */
/* Dashboard page (#131) — designed for a narrow side window (~600px).
   Keeps chrome minimal and content compact so the user can keep this open
   while the game has the bulk of the screen. */

.fx-dashboard[b-my2iiepf7z] {
    max-width: 720px;
    padding-right: 0.5rem;
}

.fx-dashboard-header[b-my2iiepf7z] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fx-dashboard-toolbar[b-my2iiepf7z] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.fx-dashboard-alert[b-my2iiepf7z] {
    /* MudAlert wraps content in a flex container; keep our block intact. */
    display: block;
}

.fx-dashboard-source[b-my2iiepf7z] {
    font-size: 0.75rem;
    word-break: break-all;
}
/* /Components/Pages/FactoryMap.razor.rz.scp.css */
.factory-map-shell[b-8egpwbyffu] {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.map-canvas[b-8egpwbyffu] {
    height: 78vh;
    background-color: #0F0F14;
    border: 1px solid var(--fx-border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.map-legend[b-8egpwbyffu] {
    background-color: var(--fx-bg-panel);
    border: 1px solid var(--fx-border);
    border-radius: 4px;
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
}

.legend-heading[b-8egpwbyffu] {
    color: var(--fx-text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.layer-list[b-8egpwbyffu] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.layer-toggle[b-8egpwbyffu] {
    display: grid;
    grid-template-columns: auto 14px 1fr auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.2rem;
    border-radius: 3px;
}

.layer-toggle:hover[b-8egpwbyffu] {
    background-color: rgba(250, 149, 73, 0.06);
}

[b-8egpwbyffu] .layer-checkbox {
    margin: 0;
    padding: 0;
}

[b-8egpwbyffu] .layer-checkbox .mud-icon-button {
    padding: 2px;
}

.layer-swatch[b-8egpwbyffu] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.layer-name[b-8egpwbyffu] {
    font-family: 'Bahnschrift', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
}

.layer-count[b-8egpwbyffu] {
    font-family: 'Cascadia Mono', 'Consolas', monospace;
    font-size: 0.78rem;
    color: var(--fx-text-muted);
}

/* Leaflet popups + tooltips themed. ::deep so the rules pierce the
   scoped-CSS boundary into the JS-attached Leaflet DOM. */
[b-8egpwbyffu] .leaflet-popup-content-wrapper,
[b-8egpwbyffu] .leaflet-tooltip {
    background-color: var(--fx-bg-panel);
    color: var(--fx-text);
    border: 1px solid var(--fx-border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

[b-8egpwbyffu] .leaflet-popup-tip,
[b-8egpwbyffu] .leaflet-tooltip:before {
    background-color: var(--fx-bg-panel);
    border: 1px solid var(--fx-border);
}

[b-8egpwbyffu] .fx-map-tooltip {
    font-family: 'Bahnschrift', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
}

[b-8egpwbyffu] .fx-popup-title {
    font-family: 'Bahnschrift', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    color: var(--fx-orange);
    margin-bottom: 0.15rem;
}

[b-8egpwbyffu] .fx-popup-kind {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

[b-8egpwbyffu] .fx-popup-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.78rem;
}

[b-8egpwbyffu] .fx-popup-row span:first-child {
    color: var(--fx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
}

[b-8egpwbyffu] .leaflet-control-zoom a {
    background-color: var(--fx-bg-panel) !important;
    color: var(--fx-text) !important;
    border-color: var(--fx-border) !important;
}

[b-8egpwbyffu] .leaflet-control-zoom a:hover {
    background-color: var(--fx-bg-elevated) !important;
    color: var(--fx-orange) !important;
}

/* Resource-node markers (#61). DivIcon root has no default background;
   the inner element holds the icon image or the kind-coloured dot. */
[b-8egpwbyffu] .fx-node-divicon {
    background: transparent;
    border: none;
}

[b-8egpwbyffu] .fx-node-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    box-sizing: border-box;
    overflow: hidden;
}

[b-8egpwbyffu] .fx-node-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
}

[b-8egpwbyffu] .fx-node-icon--missing {
    border-radius: 50%;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Per-kind rings for unresolved nodes (#61). The border colour is set
   inline from NODE_KIND_FALLBACK so layer-toggle swatches and markers stay
   in sync; the class adds shape/border-weight cues so the kinds are easy
   to tell apart at a glance. */
[b-8egpwbyffu] .fx-node-icon--kind-mining {
    border-radius: 4px;
    border-width: 2px;
}

[b-8egpwbyffu] .fx-node-icon--kind-geyser {
    border-radius: 50%;
    border-width: 2px;
    box-shadow: 0 0 4px rgba(95, 176, 201, 0.5);
}

[b-8egpwbyffu] .fx-node-icon--kind-fracking-core {
    border-radius: 50%;
    border-width: 2px;
    box-shadow: 0 0 4px rgba(179, 136, 235, 0.5);
}

[b-8egpwbyffu] .fx-node-icon--kind-fracking-satellite {
    border-radius: 50%;
    border-width: 1px;
    opacity: 0.85;
}

[b-8egpwbyffu] .fx-node-dot {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

/* Flora markers (#62). Same div-icon pattern as resource nodes but smaller
   and without the panel background — flora pickups are dense and we want
   them to read as quick visual flecks, not bordered tiles. */
[b-8egpwbyffu] .fx-flora-divicon {
    background: transparent;
    border: none;
}

[b-8egpwbyffu] .fx-flora-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-sizing: border-box;
    overflow: hidden;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
}

[b-8egpwbyffu] .fx-flora-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
}

[b-8egpwbyffu] .fx-flora-icon--missing {
    border: 1px solid rgba(255, 255, 255, 0.35);
}
/* /Components/Pages/Recipes.razor.rz.scp.css */
/* =========================================================================
   Recipes page — page-specific styles. Input/output chip styling lives in
   the shared fx-amount-* classes in wwwroot/app.css (used here, on the
   planner page, and anywhere else the UI lists "N × item").
   ========================================================================= */
