/* Tokyo Night Theme (Dark) */
:root {
  --bg-primary: #1a1b26;
  --bg-secondary: #16161e;
  --bg-tertiary: #2a2a3a;
  --border-color: #3b3b4d;
  --text-primary: #c0caf5;
  --text-secondary: #a9b1d6;
  --text-dim: #565f89;
  --accent: #7aa2f7;
  --accent-hover: #89a5f8;
  --success: #9ece6a;
  --warning: #e0af68;
  --error: #f7768e;
  --magenta: #bb9af7;
  --cyan: #7dcfff;
  --coffee: #e0af68;
}

/* Tokyo Day Theme (Light) */
.light-mode {
  --bg-primary: #d5d6db;
  --bg-secondary: #eaeaec;
  --bg-tertiary: #f5f5f6;
  --border-color: #b4b4b9;
  --text-primary: #343b58;
  --text-secondary: #565a6e;
  --text-dim: #6c6f93;
  --accent: #2e7de9;
  --accent-hover: #1a6bd6;
  --success: #587539;
  --warning: #8f6c39;
  --error: #b2555b;
  --magenta: #7847bd;
  --cyan: #007baa;
  --coffee: #8f6c39;
}

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

body {
  font-family: "JetBrains Mono", monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  transition: all 0.3s ease;
}

/* Terminal Window */
.terminal {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 1000px;
  transition: all 0.3s ease;
}

.light-mode .terminal {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.terminal-header {
  background: linear-gradient(
    135deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%
  );
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.terminal-title {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-icon {
  color: var(--accent);
}

.terminal-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: scale(1.05);
  border-color: var(--accent);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.theme-toggle:hover::before {
  left: 100%;
}

.terminal-content {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: start;
  min-height: 500px;
}

/* ASCII Art - 1/3 width */
.ascii-art {
  color: var(--coffee);
  font-size: 11px;
  line-height: 1.1;
  white-space: pre;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.light-mode .ascii-art {
  color: var(--coffee);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Info Section - 2/3 width */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  justify-content: center;
}

.info-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  padding: 2px 0;
}

.info-label {
  color: var(--accent);
  font-weight: 600;
  min-width: 165px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.light-mode .info-label {
  text-shadow: none;
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
}

.info-value a:hover::after {
  content: "_";
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.info-value a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-dim);
  transition: all 0.2s ease;
}

.info-value a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.separator {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-color) 50%,
    transparent 100%
  );
  margin: 16px 0;
  grid-column: 1 / -1;
}

/* Prompt */
.prompt-line {
  grid-column: 1 / -1;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.prompt {
  color: var(--success);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.light-mode .prompt {
  text-shadow: none;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: var(--accent);
  animation: blink 1.2s infinite;
  border-radius: 1px;
}

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

  51%,
  100% {
    opacity: 0;
  }
}

/* Color accents for specific elements */
.magenta {
  color: var(--magenta);
}

.cyan {
  color: var(--cyan);
}

.warning {
  color: var(--warning);
}

.coffee-color {
  color: var(--coffee);
}

/* Responsive */
@media (max-width: 768px) {
  .terminal-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ascii-art {
    font-size: 10px;
  }

  .info-line {
    gap: 8px;
  }

  .info-label {
    min-width: 165px;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
