/* TECHNODADA GLOBAL STYLES */

:root {
  --terminal-green: #00ff00;
  --error-red: #ff0040;
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
  --gray-1: #1a1a1a;
  --gray-2: #333333;
  --gray-3: #666666;
  --gray-4: #999999;
  --gray-5: #cccccc;
  --white: #ffffff;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Typography */
body {
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
  background: var(--bg-black);
  color: var(--terminal-green);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'VT323', monospace;
  font-weight: normal;
  text-transform: uppercase;
}

/* Links */
a {
  color: var(--gray-4);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: var(--terminal-green);
  text-shadow: 0 0 5px var(--terminal-green);
}

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
  background: var(--bg-black);
  border: 1px solid var(--gray-3);
  color: var(--gray-5);
  padding: 8px 16px;
  transition: all 0.2s;
}

button:hover {
  border-color: var(--terminal-green);
  color: var(--terminal-green);
  box-shadow: 0 0 5px var(--terminal-green);
}

button.active {
  background: var(--terminal-green);
  color: var(--bg-black);
  border-color: var(--terminal-green);
}

/* Cursor Animation */
.cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: var(--terminal-green);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* CRT Effect */
.crt-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 0, 0.03) 2px,
    rgba(0, 255, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Matrix Background */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.05;
  z-index: 0;
  font-family: 'VT323', monospace;
  font-size: 20px;
  overflow: hidden;
}

.matrix-column {
  position: absolute;
  top: -100%;
  animation: matrixFall 20s linear infinite;
  color: var(--terminal-green);
  line-height: 1.2;
}

@keyframes matrixFall {
  to {
    top: 100%;
  }
}

/* Terminal Window */
.terminal-window {
  background: var(--gray-1);
  border: 1px solid var(--terminal-green);
  padding: 20px;
  margin: 20px 0;
  position: relative;
}

.terminal-header {
  font-size: 0.8rem;
  color: var(--gray-4);
  margin-bottom: 15px;
  text-align: left;
}

.terminal-body {
  background: var(--bg-black);
  border: 1px solid var(--gray-2);
  padding: 15px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  text-align: left;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--terminal-green);
}

/* Error Messages */
.error-message {
  color: var(--error-red);
  font-size: 0.9rem;
  margin: 10px 0;
}

.success-message {
  color: var(--terminal-green);
  font-size: 0.9rem;
  margin: 10px 0;
}

/* Loading States */
.loading {
  color: var(--gray-4);
}

.loading::after {
  content: '...';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0% {
    content: '.';
  }
  33% {
    content: '..';
  }
  66% {
    content: '...';
  }
}

/* Glitch Effect */
.glitch {
  position: relative;
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(-2px, 2px);
  }
  94% {
    transform: translate(2px, -2px);
  }
  96% {
    transform: translate(-2px, -2px);
  }
  98% {
    transform: translate(2px, 2px);
  }
}
