/* ============================================================
   Boot-splash — getoond tijdens WASM-bootstrap (.NET runtime
   downloaden + initialiseren). Leeft in #app; Blazor vervangt
   de inhoud daarvan zodra de eerste route gerenderd wordt.

   Bron: design_handoff_derde_helft/DerdeHelft-Loading.html
   ============================================================ */

/* Boot-splash matcht dezelfde breakpoints als .phone-shell zodat de "app" niet
   ineens ultra-breed laadt en daarna naar 420px springt.
     < 768px         → vol-breed of 420px gecentreerd op iets bredere mobile
     768–1199 px     → vol-breed (iPad-mode, geen borders)
     ≥ 1200px        → 1200px gecentreerd met side-borders
   De ruimte naast de splash krijgt een iets donkerder body-tint zodat de splash
   visueel als kaart staat. */
html, body { background: #050810; }
.boot {
    position: fixed;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 420px;
    background: #0a0d1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 28px 36px;
    overflow: hidden;
    z-index: 9999;
    border-left: 1.5px solid rgba(255,255,255,0.06);
    border-right: 1.5px solid rgba(255,255,255,0.06);
}
@media (max-width: 420px) {
    .boot {
        max-width: 100%;
        border-left: none;
        border-right: none;
    }
}
@media (min-width: 768px) {
    .boot {
        max-width: none;
        left: 0;
        transform: none;
        border-left: none;
        border-right: none;
    }
}
@media (min-width: 1200px) {
    .boot {
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 1.5px solid rgba(255,255,255,0.06);
        border-right: 1.5px solid rgba(255,255,255,0.06);
    }
}

/* Subtiel grid in de achtergrond — past bij brutalist-stijl */
.boot::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.boot-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    flex: 1;
    justify-content: center;
}

/* ── Bliksem-bolt ── */
.boot .bolt-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.boot .bolt-stage svg {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 0 0px rgba(255,210,74,0));
    animation: boot-bolt-strike 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes boot-bolt-strike {
    0%   { transform: scale(0.2) rotate(-12deg); opacity: 0; filter: drop-shadow(0 0 0px rgba(255,210,74,0)); }
    35%  { transform: scale(1.3) rotate(8deg);   opacity: 1; filter: drop-shadow(0 0 40px rgba(255,210,74,1)); }
    55%  { transform: scale(0.92) rotate(-4deg); opacity: 1; filter: drop-shadow(0 0 12px rgba(255,210,74,0.6)); }
    100% { transform: scale(1) rotate(0);        opacity: 1; filter: drop-shadow(0 0 24px rgba(255,210,74,0.5)); }
}

/* Radiale flits wanneer de bolt landt */
.boot .bolt-stage::after {
    content: '';
    position: absolute;
    inset: 50% 50% 50% 50%;
    width: 0; height: 0;
    background: radial-gradient(circle, rgba(255,210,74,0.4) 0%, transparent 60%);
    border-radius: 50%;
    animation: boot-flash-radial 1.6s ease-out forwards;
    pointer-events: none;
}
@keyframes boot-flash-radial {
    0%, 30% { width: 0; height: 0; opacity: 0; }
    35%     { width: 600px; height: 600px; inset: calc(50% - 300px) calc(50% - 300px); opacity: 1; }
    100%    { width: 800px; height: 800px; inset: calc(50% - 400px) calc(50% - 400px); opacity: 0; }
}

/* ── Wordmark "DERDE HELFT." ── */
.boot .wordmark {
    text-align: center;
    opacity: 0;
    animation: boot-fade-up 0.7s ease 0.9s forwards;
}
.boot .wordmark .display-text {
    font-family: var(--font-display, 'Bricolage Grotesque', system-ui, sans-serif);
    font-size: 76px;
    font-weight: 800;
    letter-spacing: -3.5px;
    line-height: 0.85;
    margin: 0;
}
.boot .wordmark .display-text .dot {
    color: #ffd24a;
}
.boot .wordmark .tagline {
    font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 9px;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
    text-transform: uppercase;
}
@keyframes boot-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Laad-log onderaan ── */
.boot .load-log {
    opacity: 0;
    animation: boot-fade-up 0.5s ease 1.5s forwards;
}
.boot .load-log .step {
    font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 10px;
    letter-spacing: 1.4px;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    opacity: 0;
    transform: translateX(-6px);
}
.boot .load-log .step.active {
    color: rgba(255,255,255,0.92);
    opacity: 1;
    transform: translateX(0);
    transition: all 0.2s;
}
.boot .load-log .step.done {
    color: rgba(255,255,255,0.55);
    opacity: 1;
    transform: translateX(0);
}
.boot .load-log .step .marker {
    display: inline-block;
    width: 8px; height: 8px;
    flex-shrink: 0;
}
.boot .load-log .step.active .marker {
    background: #2b5cff;
    animation: boot-pulse 0.8s ease-in-out infinite;
}
.boot .load-log .step.done .marker {
    background: #34E27A;
}
@keyframes boot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(0.6); opacity: 0.6; }
}

/* ── Charge-bar ── */
.boot .charge-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.boot .charge-row .label {
    font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 9px;
    letter-spacing: 1.6px;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}
.boot .charge-row .charge {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}
.boot .charge-row .charge .fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #2b5cff, #ffd24a);
    animation: boot-charge-fill 4s cubic-bezier(0.65, 0, 0.35, 1) forwards 0.6s;
}
@keyframes boot-charge-fill {
    0%   { width: 0%; }
    30%  { width: 22%; }
    50%  { width: 48%; }
    75%  { width: 78%; }
    100% { width: 100%; }
}
.boot .charge-row .pct {
    font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #ffd24a;
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: right;
}

/* ── Soratus brand-strip ── */
.boot .brand-strip {
    text-align: center;
    font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
    margin-top: 18px;
    opacity: 0;
    animation: boot-fade-up 0.5s ease 1.9s forwards;
}
.boot .brand-strip .dots {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 6px;
}
.boot .brand-strip .dots span {
    width: 4px; height: 4px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 1px;
}
.boot .brand-strip .dots .d1 { background: #2A2FCC; }
.boot .brand-strip .dots .d2 { background: #5C82FF; }
.boot .brand-strip .dots .d3 { background: #34E27A; }
