@import 'variables.css';

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    color: var(--text-body);
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-title);
    color: var(--text);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

h4, h5, h6 {
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text);
}

p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-body);
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--gold); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.3); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: rgba(99,102,241,0.3) transparent; }

/* --- Blazor error UI --- */
#blazor-error-ui {
    display: none;
}

#blazor-error-ui[style*="display: block"] {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: .875rem 1.5rem;
    border-radius: var(--radius-md);
    z-index: 9999;
    font-family: var(--font-ui);
    font-size: .875rem;
    backdrop-filter: blur(8px);
}

/* --- Blazor boot loading screen --- */
.blazor-boot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 1.25rem;
    background: var(--bg);
}

.blazor-boot__rune {
    font-size: 2.5rem;
    color: var(--gold);
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
    animation: rune-float 2.5s ease-in-out infinite;
}

.blazor-boot__text {
    font-family: var(--font-ui);
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-faint);
}

@keyframes rune-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* --- Utility --- */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.not-found {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    font-family: var(--font-ui);
    color: var(--text-muted);
}
