/* style.css - FINAL VERSION */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap'); /* Für Polizei-Berichte */

:root {
    /* Vorn / Hacker Theme */
    --hacker-green: #33ff00;
    --hacker-dim: #1a8000;
    --bg-color: #050505;
    
    /* Polizei Theme */
    --police-blue: #66ccff;
    --police-dim: #224466;
    --police-bg: #001122;
    --police-text: #ddeeff;
    
    /* Global */
    --glow-strength: 0 0 8px;
    --font-term: 'VT323', monospace;
    --font-doc: 'Courier Prime', monospace;
}

/* --- BASIS SETUP --- */
body {
    background-color: var(--bg-color);
    color: var(--hacker-green);
    font-family: var(--font-term);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    text-shadow: var(--glow-strength) var(--hacker-green);
    font-size: 1.2rem;
}

/* CRT Scanlines Effekt (Der Retro-Look) */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 999;
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* Container Layout */
.container {
    max-width: 1000px;
    margin: 20px auto;
    border: 2px solid var(--hacker-dim);
    padding: 20px;
    height: calc(100vh - 80px); /* Platz für Rand lassen */
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(51, 255, 0, 0.1);
    background: rgba(0, 20, 0, 0.3);
    position: relative;
    z-index: 10;
}

/* Typografie & Links */
h1, h2, h3 { 
    text-transform: uppercase; 
    margin-top: 0; 
    border-bottom: 1px solid var(--hacker-dim); 
    padding-bottom: 10px;
    letter-spacing: 2px;
}

a { 
    color: inherit; 
    text-decoration: none; 
    border: 1px solid var(--hacker-dim); 
    padding: 5px 15px; 
    transition: 0.2s;
}
a:hover { background: var(--hacker-green); color: black; box-shadow: 0 0 10px var(--hacker-green); }


/* Inputs & Buttons */
input[type="text"], input[type="password"] {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--hacker-dim);
    color: var(--hacker-green);
    font-family: var(--font-term);
    font-size: 1.5rem;
    outline: none;
    padding: 5px;
    width: 60%;
}
input:focus { border-bottom-color: var(--hacker-green); }

button {
    background: var(--hacker-dim);
    color: black;
    border: 1px solid var(--hacker-green);
    font-family: var(--font-term);
    font-size: 1.3rem;
    padding: 5px 25px;
    margin-top: 10px;
    cursor: pointer;
    text-transform: uppercase;
}
button:hover { background: var(--hacker-green); box-shadow: 0 0 15px var(--hacker-green); }

/* --- POLIZEI THEME OVERRIDES (Für uplink.html) --- */
body.theme-police {
    background-color: var(--police-bg);
    color: var(--police-text);
    text-shadow: none; /* Behörden-Software leuchtet nicht so stark */
}

body.theme-police .container {
    border-color: var(--police-dim);
    background: rgba(0, 10, 30, 0.5);
    box-shadow: 0 0 15px rgba(100, 200, 255, 0.1);
}

body.theme-police h1, body.theme-police h3 { border-bottom-color: var(--police-dim); color: var(--police-blue); }
body.theme-police a { border-color: var(--police-dim); }
body.theme-police a:hover { background: var(--police-blue); color: #000; box-shadow: 0 0 10px var(--police-blue); }
body.theme-police input { border-bottom-color: var(--police-dim); color: var(--police-blue); }
body.theme-police button { background: var(--police-dim); color: var(--police-text); border-color: var(--police-blue); }
body.theme-police button:hover { background: var(--police-blue); color: #000; }

/* Chat Styles (Spezifisch für Uplink) */
.chat-window {
    flex-grow: 1;
    border: 1px solid var(--police-dim);
    background: rgba(0,0,0,0.6);
    padding: 15px;
    overflow-y: auto;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 4px;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
}

/* KHK Bauer Nachrichten */
.msg.cop {
    align-self: flex-start;
    background: #1a2a44;
    border-left: 4px solid var(--police-blue);
    color: #fff;
}
.msg.cop strong { color: var(--police-blue); display: block; margin-bottom: 5px; font-size: 0.9em; }

/* User Nachrichten */
.msg.user {
    align-self: flex-end;
    background: #2a2a2a;
    border-right: 4px solid #888;
    color: #ccc;
    text-align: right;
}

/* Audio Player Customizing (Retro Look) */
audio {
    width: 100%;
    height: 30px;
    margin-top: 5px;
    filter: invert(100%) hue-rotate(180deg) saturate(0%); /* Schwarz-Weiß Look */
    opacity: 0.8;
}

/* Utility */
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.hidden { display: none; }
.code-reveal {
    border: 2px dashed #ff5555;
    color: #ffaaaa;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    background: rgba(50,0,0,0.5);
}