/* Theme variables - override with data-theme attribute */
:root,
[data-theme="default"] {
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-tertiary: #222222;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #808080;
  --accent-primary: #ffffff;
  --accent-secondary: #4ecdc4;
  --accent-warning: #ffa726;
  --accent-error: #ff6b6b;
  --accent-success: #51cf66;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.2;
  padding-bottom: 60px;
}

.cli-window {
  background: transparent;
  border: none;
  padding: 10px;
  margin: 0;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Remove terminal header decorations */

.line {
  margin-bottom: 0.2rem;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.prompt {
  color: var(--accent-error);
  font-weight: bold;
}

.directory {
  color: var(--accent-secondary);
  font-weight: bold;
}

.input-wrapper {
  padding: 10px 0;
  display: flex;
  align-items: baseline;
  background: transparent;
}

.cursor {
  display: inline-block;
  width: 1px;
  height: 1.2em;
  background: var(--text-primary);
  margin-left: 1px;
  animation: blink 1.2s ease-in-out infinite;
  border-radius: 1px;
}

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

.suggestion {
  color: var(--text-muted);
  pointer-events: none;
  user-select: none;
  font-style: italic;
  margin-left: 2px;
}

/* Terminal content styling */
pre.line {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Remove all fancy UI */

.match-number {
  color: var(--accent-secondary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.folder-item {
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.folder-item:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.folder-icon {
  color: var(--accent-secondary);
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* Code Highlighting Overrides */
pre[class*="language-"] {
  background: var(--bg-primary) !important;
  padding: 1rem !important;
  margin: 0.5rem 0 !important;
  border-radius: 4px !important;
  overflow-x: auto;
  border: 1px solid #333;
}

/* Markdown content styling */
.line pre[class*="language-"] {
  background: var(--bg-secondary) !important;
  border: 1px solid #444;
  margin: 0.5rem 0 !important;
}

.line pre[class*="language-"] code {
  background: transparent !important;
  padding: 0 !important;
}

code[class*="language-"] {
  background: none !important;
}

/* Let Prism handle all token colors */

/* Removed all token overrides - let Prism handle colors */

/* Force highlighting for all code blocks */
pre[class*="language-"] code[class*="language-"] {
  /* Let Prism handle colors */
}

/* Ensure markdown code blocks are highlighted */
.language-markdown .token.code-block {
  background: var(--bg-primary) !important;
  padding: 0.5rem !important;
  border-radius: 4px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
    align-items: flex-start;
  }

  .cli-window {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
  }

  .terminal-header {
    margin-bottom: 1rem;
  }

  .line {
    flex-wrap: wrap;
  }

  .prompt {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .cli-window {
    padding: 1rem;
  }

  .section-content {
    margin: 1rem 0;
  }

  .content-body {
    font-size: 0.85rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

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

/* Focus and Selection */
::selection {
  background: rgba(79, 195, 247, 0.3);
  color: var(--text-primary);
}

body:focus {
  outline: none;
}

/* Subtle animations */
.line {
  animation: fadeIn 0.1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}