/* VOID-LINK GLOBAL DESIGN SYSTEM 
    This file governs the entire terminal. 
    Use variables to ensure "Starforged" vs "Ironsworn" themes work instantly.
*/

:root {
    /* DEFAULT THEME (STARFORGED NEON) */
    --bg-void: #050508;
    --bg-panel: #0b0d12;
    --bg-input: #161922;
    --accent: #00ff9d;       /* Neon Green */
    --accent-dim: rgba(0, 255, 157, 0.15);
    --text-main: #bcdee7;
    --text-dim: #454d5d;
    --critical: #ff0055;
    --border: #1a1c23;
    --font-header: 'Share Tech Mono', monospace;
    --font-body: 'Exo 2', sans-serif;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; }

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-void);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow: hidden; /* Prevents double scrollbars on the main terminal */
}

/* --- THE TERMINAL SHELL (void-link-term.html) --- */
#terminal-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: 60px 1fr 300px;
    height: 100vh;
    gap: 2px;
    background: var(--border);
}

.header-bar {
    grid-column: 1 / -1;
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--accent);
}

.module-frame {
    background: var(--bg-panel);
    overflow-y: auto;
    position: relative;
    border: 1px solid transparent;
}

/* --- GLOBAL UI COMPONENTS (Used by all modules) --- */

/* Buttons */
button {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 16px;
    font-family: var(--font-header);
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 10px var(--accent-dim);
}

button:disabled {
    border-color: var(--text-dim);
    color: var(--text-dim);
    cursor: not-allowed;
}

/* Inputs & Selects */
input[type="text"], textarea, select {
    background: var(--bg-input);
    border: 1px solid var(--text-dim);
    color: var(--accent);
    padding: 10px;
    font-family: var(--font-header);
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--accent);
}

/* --- MODULE SPECIFIC SCOPING (Prevents Bleeding) --- */

/* Character Sheet Scoping */
#sheet-scope .stat-val {
    font-size: 2rem;
    color: var(--accent);
}

/* Map Scoping */
#map-scope .poi-token {
    position: absolute;
    cursor: pointer;
    filter: drop-shadow(0 0 5px var(--accent));
}

/* Journal Scoping */
#journal-scope textarea {
    width: 100%;
    min-height: 200px;
    border-left: 3px solid var(--accent);
}

/* --- SCROLLBAR CUSTOMIZATION --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- ANIMATIONS --- */
@keyframes pulse-neon {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.online-status {
    color: var(--accent);
    animation: pulse-neon 2s infinite;
}
