/* Terminal/CRT Screen Styles */

@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');

/* CRT Screen Background - Full screen */
.crt-screen {
  min-height: 100vh;
  background: #0a0a0a;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scanlines Effect - Thicker and more visible */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.35) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* Add CRT flicker animation */
@keyframes flicker {
  0% { opacity: 0.97; }
  5% { opacity: 1; }
  10% { opacity: 0.97; }
  15% { opacity: 1; }
  20% { opacity: 0.97; }
  100% { opacity: 0.97; }
}

.crt-screen::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 999;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

/* Terminal Container */
.terminal-container {
  position: relative;
  z-index: 3;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Terminal Title */
.terminal-title {
  font-family: 'Major Mono Display', monospace;
  font-size: 3rem;
  color: #00ff41;
  text-shadow: 
    0 0 10px #00ff41,
    0 0 20px #00ff41,
    0 0 30px #00ff41,
    0 0 40px #00ff41;
  letter-spacing: 0.5rem;
  animation: glow 2s ease-in-out infinite alternate;
  text-align: center !important;
  margin-bottom: 3rem !important;
  white-space: nowrap;
}

@keyframes glow {
  from {
    text-shadow: 
      0 0 10px #00ff41,
      0 0 20px #00ff41,
      0 0 30px #00ff41,
      0 0 40px #00ff41;
  }
  to {
    text-shadow: 
      0 0 20px #00ff41,
      0 0 30px #00ff41,
      0 0 40px #00ff41,
      0 0 50px #00ff41,
      0 0 60px #00ff41;
  }
}

/* Terminal Window - Remove border and background */
.terminal-window {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  font-family: 'Courier New', monospace;
}

/* Terminal Lines */
.terminal-line {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

.terminal-section {
  margin-bottom: 2rem;
}

.category-header {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #ffff00;
  text-shadow: 0 0 10px #ffff00;
  font-weight: bold;
}

.category-line {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.file-line {
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 255, 65, 0.3);
}

.subcategory-line {
  margin-left: 2rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 0, 0.3);
  font-weight: bold;
  font-size: 1.1rem;
}

.subfile-line {
  margin-left: 4rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(0, 255, 255, 0.3);
}

/* Terminal window wrapper to match title width */
.terminal-window {
  width: 100%;
  text-align: left;
}

/* Terminal Prompt */
.prompt {
  color: #ffff00;
  text-shadow: 0 0 5px #ffff00;
  margin-right: 0.5rem;
  font-weight: bold;
}

.indent {
  color: #00ff41;
  text-shadow: 0 0 5px #00ff41;
  margin-right: 0.5rem;
}

/* Terminal Text */
.text {
  color: #00ff41;
  text-shadow: 0 0 5px #00ff41;
}

/* Terminal Links */
.terminal-link {
  color: #00ff41;
  text-decoration: none;
  text-shadow: 0 0 5px #00ff41;
  transition: all 0.3s ease;
  position: relative;
}

.terminal-link:hover {
  color: #ffff00;
  text-shadow: 
    0 0 10px #ffff00,
    0 0 20px #ffff00;
  text-decoration: none;
}

.terminal-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffff00;
  box-shadow: 0 0 5px #ffff00;
  transition: width 0.3s ease;
}

.terminal-link:hover::after {
  width: 100%;
}

/* Markdown Content in Terminal Style */
.terminal-content {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #00ff41;
}

.markdown-content {
  color: #00ff41;
  text-shadow: 0 0 3px #00ff41;
  line-height: 1.8;
  font-family: 'Courier New', monospace;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  color: #ffff00;
  text-shadow: 0 0 10px #ffff00;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: 'Major Mono Display', monospace;
  letter-spacing: 0.2rem;
}

.markdown-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid #00ff41;
  padding-bottom: 0.5rem;
}

.markdown-content h2 {
  font-size: 1.5rem;
}

.markdown-content h3 {
  font-size: 1.2rem;
}

.markdown-content p {
  margin-bottom: 1.5rem;
}

.markdown-content a {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff;
  text-decoration: underline;
}

.markdown-content a:hover {
  color: #ffff00;
  text-shadow: 0 0 10px #ffff00;
}

.markdown-content code {
  background: rgba(0, 255, 65, 0.1);
  color: #ffff00;
  padding: 0.2rem 0.5rem;
  border: 1px solid #00ff41;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 5px #ffff00;
}

.markdown-content pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #00ff41;
  border-radius: 5px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.2);
}

.markdown-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #00ff41;
  text-shadow: 0 0 3px #00ff41;
}

.markdown-content ul,
.markdown-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.markdown-content li {
  margin: 0.5rem 0;
}

.markdown-content li::marker {
  color: #ffff00;
  text-shadow: 0 0 5px #ffff00;
}

.markdown-content blockquote {
  border-left: 3px solid #ffff00;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #00ff41;
  font-style: italic;
  opacity: 0.9;
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.markdown-content table th,
.markdown-content table td {
  border: 1px solid #00ff41;
  padding: 0.75rem;
  text-align: left;
}

.markdown-content table th {
  background: rgba(0, 255, 65, 0.2);
  color: #ffff00;
  text-shadow: 0 0 5px #ffff00;
  font-weight: bold;
}

.markdown-content hr {
  border: none;
  border-top: 1px solid #00ff41;
  margin: 2rem 0;
  box-shadow: 0 0 5px #00ff41;
}

/* Responsive Design */
@media (max-width: 768px) {
  .terminal-title {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
  }
  
  .terminal-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .terminal-line {
    font-size: 0.9rem;
  }
  
  .markdown-content h1 {
    font-size: 1.5rem;
  }
  
  .markdown-content h2 {
    font-size: 1.2rem;
  }
}

/* Cursor Blink Effect - Only on hover */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.terminal-line .terminal-link::before {
  content: '';
  margin-right: 0;
}

.terminal-line .terminal-link:hover::before {
  content: '█';
  color: #ffff00;
  animation: blink 1s infinite;
  margin-right: 0.2rem;
  text-shadow: 0 0 10px #ffff00;
}

/* Override Bootstrap container centering */
.crt-screen .container {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.crt-screen .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: fit-content;
  margin: 0 auto !important;
}

.crt-screen .col-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

