/* styles.css - 90s hacking aesthetic with neon colors and CRT effects, including new easter eggs */

/* CSS Custom Properties for easy theming */
:root {
    --neon-cyan: #00ffff;
    --neon-magenta: #ff00ff;
    --neon-green: #00ff00;
    --neon-yellow: #ffff00;
    --neon-red: #ff0000;
    --neon-orange: #ff8800;
    --bg-dark: #000000;
    --bg-dark-alpha: rgba(0, 0, 0, 0.9);
    --terminal-bg: rgba(0, 20, 0, 0.95);
    --window-bg: rgba(0, 0, 20, 0.9);
    --glow-size: 0 0 10px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--bg-dark);
    color: var(--neon-cyan);
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Matrix background animation */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(transparent 50%, rgba(0, 255, 0, 0.03) 50%);
    background-size: 100% 4px;
    animation: scan 0.1s linear infinite;
}

.matrix-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse at center, transparent 50%, rgba(0, 255, 0, 0.1) 70%),
        linear-gradient(90deg, transparent 50%, rgba(0, 255, 0, 0.02) 50%);
    background-size: 100% 100%, 4px 100%;
}

/* Container */
.container {
    height: 100vh;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    grid-template-rows: 1fr auto;
    gap: 20px;
    position: relative;
}

/* Terminal Panel */
.terminal-panel {
    background: var(--terminal-bg);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    box-shadow: var(--glow-size) var(--neon-green), inset 0 0 20px rgba(0, 255, 0, 0.1);
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 255, 0, 0.2);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-green);
}

.terminal-title {
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

.terminal-status {
    color: var(--neon-green);
    font-size: 0.9em;
    animation: pulse 2s infinite;
}

.terminal-content {
    padding: 16px;
    height: calc(100% - 40px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#terminal-output {
    flex: 1;
    margin-bottom: 16px;
}

.terminal-line {
    color: var(--neon-green);
    margin-bottom: 4px;
    opacity: 0;
    animation: typewriter 0.5s forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(2) { animation-delay: 1.0s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }
.terminal-line:nth-child(4) { animation-delay: 2.0s; }
.terminal-line:nth-child(5) { animation-delay: 2.5s; }

.terminal-input-line {
    display: flex;
    align-items: center;
}

.prompt {
    color: var(--neon-green);
    margin-right: 8px;
    text-shadow: 0 0 5px var(--neon-green);
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--neon-green);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    text-shadow: 0 0 3px var(--neon-green);
}

/* Draggable Window */
.hack-window {
    background: var(--window-bg);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: var(--glow-size) var(--neon-cyan);
    position: relative;
    cursor: move;
    max-height: 400px;
}

.window-titlebar {
    background: rgba(0, 255, 255, 0.2);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-cyan);
    cursor: move;
}

.window-title {
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.window-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.window-content {
    padding: 20px;
}

/* Login Form */
.login-form h2 {
    color: var(--neon-cyan);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: var(--neon-cyan);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    color: var(--neon-cyan);
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    box-shadow: 0 0 10px var(--neon-cyan);
    background: rgba(0, 255, 255, 0.2);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: inherit;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.login-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.login-attempts {
    text-align: center;
    margin-top: 12px;
    color: var(--neon-yellow);
    font-size: 12px;
    opacity: 0;
}

/* Hidden Terminal */
.hidden-terminal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    background: var(--terminal-bg);
    border: 2px solid var(--neon-magenta);
    border-radius: 8px;
    box-shadow: var(--glow-size) var(--neon-magenta);
    display: none;
    z-index: 1000;
}

.hidden-terminal .terminal-title {
    color: var(--neon-magenta);
    text-shadow: 0 0 5px var(--neon-magenta);
}

.hidden-terminal .terminal-status {
    color: var(--neon-magenta);
}

.hidden-terminal .terminal-header {
    background: rgba(255, 0, 255, 0.2);
    border-bottom: 1px solid var(--neon-magenta);
}

.hidden-terminal .terminal-line {
    color: var(--neon-magenta);
}

/* FBI Overlay */
.fbi-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark-alpha);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: glitch 0.5s infinite;
}

.fbi-content {
    background: var(--bg-dark);
    border: 3px solid var(--neon-red);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 20px var(--neon-red);
    max-width: 500px;
}

.fbi-content h1 {
    color: var(--neon-red);
    margin-bottom: 20px;
    font-size: 24px;
    text-shadow: 0 0 10px var(--neon-red);
}

.fbi-content p {
    color: var(--neon-red);
    margin-bottom: 10px;
    font-size: 16px;
}

.fbi-close {
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--neon-red);
    color: var(--neon-red);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fbi-close:hover {
    background: var(--neon-red);
    color: var(--bg-dark);
}

/* Konami Easter Egg */
.konami-easter-egg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-dark);
    border: 3px solid var(--neon-green);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    display: none;
    z-index: 9999;
    box-shadow: 0 0 30px var(--neon-green);
}

.ascii-skull {
    color: var(--neon-green);
    font-size: 12px;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--neon-green);
}

.root-access {
    color: var(--neon-green);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--neon-green);
    animation: pulse 1s infinite;
}

/* Hack the Planet Easter Egg */
.hack-planet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.hack-planet-content {
    text-align: center;
    animation: hackPlanetPulse 2s ease-in-out;
}

.hack-planet-text {
    font-size: 4em;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    margin-bottom: 20px;
    animation: textGlow 1s infinite alternate;
}

.hack-planet-quote {
    font-size: 1.5em;
    color: var(--neon-cyan);
    margin-bottom: 30px;
}

.planet-ascii {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

/* UNIX System */
.unix-system {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: var(--terminal-bg);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: var(--glow-size) var(--neon-cyan);
    display: none;
    z-index: 1000;
}

.unix-header {
    background: rgba(0, 255, 255, 0.2);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-weight: bold;
}

.unix-close {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 3px;
}

.unix-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100% - 50px);
    padding: 20px;
    gap: 20px;
}

.file-tree {
    color: var(--neon-cyan);
}

.folder, .file {
    padding: 5px;
    margin: 2px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.folder:hover, .file:hover {
    background: rgba(0, 255, 255, 0.2);
}

.folder-contents {
    margin-left: 20px;
}

.file-info h3 {
    color: var(--neon-cyan);
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.fake-3d-display {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.cube {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta));
    border: 1px solid var(--neon-cyan);
    animation: rotate3d 3s infinite linear;
}

/* Hacker Profiles */
.hacker-profiles {
    position: fixed;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    background: var(--terminal-bg);
    border: 2px solid var(--neon-magenta);
    border-radius: 8px;
    box-shadow: var(--glow-size) var(--neon-magenta);
    display: none;
    z-index: 1000;
}

.profile-header {
    background: rgba(255, 0, 255, 0.2);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-magenta);
    color: var(--neon-magenta);
    font-weight: bold;
}

.profiles-close {
    background: transparent;
    border: 1px solid var(--neon-magenta);
    color: var(--neon-magenta);
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 3px;
}

.profiles-content {
    padding: 20px;
    color: var(--neon-magenta);
    overflow-y: auto;
    height: calc(100% - 50px);
}

.profile-card {
    border: 1px solid var(--neon-magenta);
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    background: rgba(255, 0, 255, 0.1);
}

.profile-name {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--neon-magenta);
    text-shadow: 0 0 5px var(--neon-magenta);
}

/* Virus Scanner */
.virus-scanner {
    position: fixed;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: var(--terminal-bg);
    border: 2px solid var(--neon-red);
    border-radius: 8px;
    box-shadow: var(--glow-size) var(--neon-red);
    display: none;
    z-index: 1000;
}

.scanner-header {
    background: rgba(255, 0, 0, 0.2);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-red);
    color: var(--neon-red);
    font-weight: bold;
}

.scanner-close {
    background: transparent;
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 3px;
}

.scanner-content {
    padding: 20px;
    color: var(--neon-red);
}

.progress-bar {
    width: 100%;
    height: 20px;
    border: 1px solid var(--neon-red);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-red), var(--neon-orange));
    width: 0%;
    transition: width 0.3s ease;
}

.scan-results {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* System Monitor */
.system-monitor {
    position: fixed;
    top: 10%;
    right: 10%;
    width: 400px;
    height: 500px;
    background: var(--terminal-bg);
    border: 2px solid var(--neon-yellow);
    border-radius: 8px;
    box-shadow: var(--glow-size) var(--neon-yellow);
    display: none;
    z-index: 1000;
}

.monitor-header {
    background: rgba(255, 255, 0, 0.2);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    font-weight: bold;
}

.monitor-close {
    background: transparent;
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 3px;
}

.monitor-content {
    padding: 20px;
}

.monitor-grid {
    display: grid;
    gap: 20px;
}

.monitor-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    gap: 10px;
    color: var(--neon-yellow);
}

.meter {
    height: 15px;
    border: 1px solid var(--neon-yellow);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 0, 0.1);
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-yellow), var(--neon-red));
    width: 0%;
    transition: width 0.5s ease;
}

/* Network Trace */
.network-trace {
    position: fixed;
    top: 10%;
    left: 5%;
    width: 50%;
    height: 70%;
    background: var(--terminal-bg);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    box-shadow: var(--glow-size) var(--neon-cyan);
    display: none;
    z-index: 1000;
}

.trace-header {
    background: rgba(0, 255, 255, 0.2);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-weight: bold;
}

.trace-close {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 3px;
}

.trace-content {
    padding: 20px;
}

.trace-output {
    color: var(--neon-cyan);
    font-family: 'Courier New', monospace;
    overflow-y: auto;
    height: calc(100% - 40px);
}

.trace-line {
    margin: 5px 0;
    opacity: 0;
    animation: typewriter 0.3s forwards;
}

/* Password Cracker */
.password-cracker {
    position: fixed;
    top: 15%;
    right: 5%;
    width: 45%;
    height: 70%;
    background: var(--terminal-bg);
    border: 2px solid var(--neon-green);
    border-radius: 8px;
    box-shadow: var(--glow-size) var(--neon-green);
    display: none;
    z-index: 1000;
}

.cracker-header {
    background: rgba(0, 255, 0, 0.2);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-weight: bold;
}

.cracker-close {
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    width: 25px;
    height: 25px;
    cursor: pointer;
    border-radius: 3px;
}

.cracker-content {
    padding: 20px;
    color: var(--neon-green);
}

.target-info {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid var(--neon-green);
    border-radius: 5px;
    background: rgba(0, 255, 0, 0.1);
}

.password-attempts {
    height: 300px;
    overflow-y: auto;
    border: 1px solid var(--neon-green);
    padding: 10px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background: rgba(0, 255, 0, 0.05);
}

.crack-status {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Screen Flash */
.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    z-index: 10000;
    pointer-events: none;
}

.screen-flash.active {
    animation: flashEffect 0.5s ease-in-out;
}

/* Pi Backdoor */
.the-net {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    /*background: var(--bg-dark);
    border: 1px solid var(--neon-cyan);
    border-radius: 50%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*cursor: pointer;*/
    color: white; /*var(--neon-cyan);*/
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.the-net:hover {
    /*background: var(--neon-cyan);*/
    color: var(--neon-cyan);
    /*
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.1);
    */
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.03) 50%
    );
    background-size: 100% 4px;
    animation: scan 0.1s linear infinite;
}

/* Animations */
@keyframes typewriter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    30% { transform: translate(2px, 2px); }
    40% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    70% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, -2px); }
    90% { transform: translate(2px, 2px); }
}

.glitch-text {
    animation: textGlitch 0.3s infinite;
}

@keyframes textGlitch {
    0% { text-shadow: 0 0 10px var(--neon-red); }
    25% { text-shadow: -2px 0 var(--neon-red), 2px 0 var(--neon-cyan); }
    50% { text-shadow: 2px 0 var(--neon-red), -2px 0 var(--neon-cyan); }
    75% { text-shadow: -2px 0 var(--neon-cyan), 2px 0 var(--neon-red); }
    100% { text-shadow: 0 0 10px var(--neon-red); }
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes hackPlanetPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px var(--neon-green); }
    100% { text-shadow: 0 0 30px var(--neon-green), 0 0 40px var(--neon-green); }
}

@keyframes flashEffect {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(90deg) rotateX(45deg); }
    50% { transform: rotateY(180deg) rotateX(90deg); }
    75% { transform: rotateY(270deg) rotateX(135deg); }
    100% { transform: rotateY(360deg) rotateX(180deg); }
}

/* Glitch mode styles */
.glitch-mode {
    animation: screenShake 0.5s infinite;
}

.glitch-mode .scanlines {
    background: linear-gradient(
        transparent 50%,
        rgba(255, 0, 0, 0.1) 50%
    );
    animation: fastScan 0.05s linear infinite;
}

@keyframes screenShake {
    0%, 100% { transform: translate(0); }
    25% { transform: translate(-3px, 3px); }
    50% { transform: translate(3px, -3px); }
    75% { transform: translate(-3px, -3px); }
}

@keyframes fastScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(2px); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .hack-window {
        max-height: 300px;
    }
    
    .hidden-terminal {
        width: 90%;
        max-width: 400px;
    }
    
    .unix-system,
    .hacker-profiles,
    .virus-scanner,
    .network-trace,
    .password-cracker {
        width: 95%;
        height: 80%;
        top: 10%;
        left: 2.5%;
    }
    
    .system-monitor {
        width: 90%;
        right: 5%;
    }
}