﻿:root {
    --node-primary: #ee6f02;
    --node-bg: #09090b;
    --node-text: #ffffff;
    --node-muted: #a1a1aa;
}

/* Full Screen Loader Wrapper */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--node-bg);
    z-index: 9999; /* Ensures this sits on top of Blazor/MudBlazor */
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--node-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --- Main Center Block --- */
.intro-body {
    display: flex;
    flex-direction: row; /* Desktop: Side-by-side */
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateY(-20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    padding: 20px;
}

/* --- The Animated Node Rectangle --- */
.logo-graphic {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Center Square Node */
.node-core {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid rgba(238, 111, 2, 0.5);
    overflow: hidden;
    background: rgba(238, 111, 2, 0.05);
    box-shadow: 0 0 20px rgba(238, 111, 2, 0.1);
}

.node-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--node-primary);
    transition: height 0.1s linear;
}

/* Pulse Animation */
@keyframes pulse-core {
    0%, 100% {
        box-shadow: 0 0 20px rgba(238, 111, 2, 0.1);
        border-color: rgba(238, 111, 2, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(238, 111, 2, 0.3);
        border-color: rgba(238, 111, 2, 0.8);
    }
}

.animate-core {
    animation: pulse-core 2s infinite ease-in-out;
}

/* --- Branding Text --- */
.brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Desktop: Left align */
    text-align: left;
}

.intro-main-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    color: var(--node-text);
}

.intro-main-title span {
    color: var(--node-primary);
}

.intro-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--node-muted);
    margin-top: 0.25rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Footer Info --- */
.footer-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 30px;
    width: 100%;
    color: var(--node-muted);
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
    font-family: 'Roboto', sans-serif; /* Roboto for footer */
    font-size: 0.8rem;
    transition: opacity 0.5s ease;
    text-align: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.separator {
    color: #3f3f46;
}

/* --- Exit Animation State --- */
.page-exit {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 600px) {
    .intro-body {
        flex-direction: column; /* Mobile: Stacked */
        gap: 1rem;
        text-align: center;
    }

    .brand-block {
        align-items: center; /* Mobile: Center align */
        text-align: center;
    }

    .intro-main-title {
        font-size: 2.5rem;
    }

    .intro-subtitle {
        font-size: 0.875rem;
    }

    .footer-container {
        font-size: 0.7rem;
        gap: 8px;
        bottom: 20px;
    }

    .separator {
        opacity: 0.5;
    }
}

@media (max-height: 500px) {
    .intro-body {
        transform: translateY(-10px);
        gap: 1rem;
    }

    .intro-main-title {
        font-size: 2rem;
    }

    .footer-container {
        bottom: 10px;
    }
}