/* Base reset + typography for the Doomy dark theme. Loaded after Bootstrap so these rules win. */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 10% -10%, rgba(57, 160, 255, 0.06), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(139, 92, 246, 0.05), transparent 55%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    margin: 0;
}

h5 {
    font-size: 15px;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: #6cbcff;
}

small, .text-muted {
    color: var(--text-secondary) !important;
}

hr {
    border-color: var(--border);
    opacity: 1;
}

::selection {
    background: var(--accent-blue-25);
    color: #fff;
}

/* Scrollbars, dark-themed */
* {
    scrollbar-width: thin;
    scrollbar-color: #2a3441 transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    background: #2a3441;
    border-radius: var(--radius-pill);
}

*::-webkit-scrollbar-thumb:hover {
    background: #37455a;
}

/* Focus visibility - kept obvious for accessibility, styled to match the theme */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Glass-panel utility, reused by cards/header/sidebar */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.eyebrow {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-content {
    padding: 28px clamp(16px, 3vw, 36px) 48px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

.page-title {
    font-size: 26px;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Terminal log lines (Console page + Dashboard mini preview) - JS only ever sets textContent and
   the data-level attribute on these (console.js), so recoloring is done purely via this attribute. */
.log-line {
    padding: 1px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.log-line[data-level="Info"] { color: var(--accent-green); }
.log-line[data-level="Warning"] { color: var(--accent-orange); }
.log-line[data-level="Error"] { color: var(--accent-red); }
.log-line[data-level="Player"] { color: var(--accent-blue); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
