/* ==========================================
   1990s RETRO COMPUTER NERD BLOG STYLES
   ========================================== */

/* Font Variable Overrides for Bootstrap */
:root {
  /* Retro Font Stack */
  --retro-terminal-font: 'VT323', monospace;
  --retro-mono-font: 'IBM Plex Mono', 'Courier Prime', monospace;
  --retro-pixel-font: 'Press Start 2P', monospace;
  
  /* Retro Color Palette */
  --terminal-green: #00ff41;
  --terminal-amber: #ffb000;
  --terminal-blue: #0099ff;
  --terminal-red: #ff4444;
  --terminal-bg: #0a0a0a;
  --terminal-dark: #1a1a1a;
  --terminal-gray: #333333;
  --crt-glow: 0 0 5px currentColor;
  
  /* Override Bootstrap Variables */
  --bs-body-font-family: var(--retro-mono-font);
  --bs-body-font-size: 14px;
  --bs-body-line-height: 1.4;
}

/* Global Body Styling */
.retro-body {
  font-family: var(--retro-mono-font) !important;
  background: 
    radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 65, 0.03) 2px,
      rgba(0, 255, 65, 0.03) 4px
    );
  background-attachment: fixed;
  color: var(--terminal-green);
  min-height: 100vh;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--retro-pixel-font) !important;
  color: var(--terminal-amber);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: var(--crt-glow);
  line-height: 1.2;
}

h1 { font-size: 16px !important; margin: 20px 0; }
h2 { font-size: 14px !important; margin: 16px 0; }
h3 { font-size: 12px !important; margin: 12px 0; }
h4 { font-size: 10px !important; margin: 10px 0; }
h5, h6 { font-size: 8px !important; margin: 8px 0; }

p, .card-text, .lead {
  font-family: var(--retro-mono-font) !important;
  color: var(--terminal-green);
  line-height: 1.6;
  font-size: 13px;
}

/* Links */
a {
  color: var(--terminal-blue) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

a:hover {
  color: white !important;
  text-shadow: var(--crt-glow);
  text-decoration: underline !important;
}
/* ==========================================
   GENERAL STYLING
   ========================================== */
   
span.half-space {
    margin-right: .3rem !important;
}

.retro-brand-name {
  font-family: "VT323", monospace !important;
}

#navbarNav .dropdown-menu.show
 {
  left: unset !important;
  right: 0 !important;
  z-index: 1051 !important;
}

/* ==========================================
   NAVIGATION STYLING
   ========================================== */

.retro-navbar {
  background: var(--terminal-dark) !important;
  border-bottom: 2px solid var(--terminal-green);
  font-family: var(--retro-terminal-font);
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 255, 65, 0.3);
  z-index: 2;
}

.retro-brand {
  color: var(--terminal-green) !important;
  font-size: 16px !important;
  /* text-shadow: var(--crt-glow); */
}

.terminal-prompt {
  color: var(--terminal-amber);
}

.brand-text {
  color: var(--terminal-blue);
}

.retro-link {
  color: var(--terminal-green) !important;
  font-size: 14px;
  transition: all 0.3s ease;
}

.retro-link:hover {
  color: var(--terminal-amber) !important;
  text-shadow: var(--crt-glow);
}

.command {
  color: var(--terminal-blue);
  font-weight: bold;
}

/* Toggler */
.retro-toggler {
  border: 1px solid var(--terminal-green) !important;
  background: transparent;
}

.retro-toggler-icon {
  color: var(--terminal-green);
  font-size: 20px;
}

/* Search */
.retro-search .terminal-input {
  display: flex;
  align-items: center;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-green);
  padding: 5px;
  border-radius: 3px;
}

.search-prompt {
  color: var(--terminal-amber);
  white-space: nowrap;
  margin-right: 5px;
}

.retro-input {
  background: transparent !important;
  border: none !important;
  color: var(--terminal-green) !important;
  font-family: var(--retro-terminal-font) !important;
  box-shadow: none !important;
  outline: none !important;
}

.retro-input::placeholder {
  color: var(--terminal-gray) !important;
}

.retro-btn {
  background: var(--terminal-gray) !important;
  border: 1px solid var(--terminal-green) !important;
  color: var(--terminal-green) !important;
  font-family: var(--retro-terminal-font) !important;
  margin-left: 5px;
  transition: all 0.3s ease;
}

.retro-btn:hover {
  background: var(--terminal-green) !important;
  color: var(--terminal-bg) !important;
  text-shadow: none;
}

/* Dropdown */
.retro-dropdown {
  background: var(--terminal-dark) !important;
  border: 1px solid var(--terminal-green) !important;
  box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3);
}

.retro-dropdown-item {
  color: var(--terminal-green) !important;
  font-family: var(--retro-terminal-font) !important;
  background: transparent !important;
}

.retro-dropdown-item:hover {
  background: var(--terminal-green) !important;
  color: var(--terminal-bg) !important;
}

.retro-divider {
  border-color: var(--terminal-green) !important;
}

/* ==========================================
   HERO/TERMINAL WINDOW
   ========================================== */

.retro-hero {
  background: var(--terminal-bg);
  padding: 40px 0;
  border-bottom: 2px solid var(--terminal-green);
}

.terminal-window {
  background: var(--terminal-dark);
  border: 2px solid var(--terminal-green);
  border-radius: 8px;
  box-shadow: 
    0 0 20px rgba(0, 255, 65, 0.3),
    inset 0 0 20px rgba(0, 255, 65, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.terminal-header {
  background: var(--terminal-gray);
  padding: 8px 15px;
  border-bottom: 1px solid var(--terminal-green);
  display: flex;
  align-items: center;
  border-radius: 6px 6px 0 0;
}

.terminal-buttons {
  display: flex;
  gap: 5px;
}

.btn-close-terminal,
.btn-minimize,
.btn-maximize {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.btn-close-terminal { background: var(--terminal-red); }
.btn-minimize { background: var(--terminal-amber); }
.btn-maximize { background: var(--terminal-green); }

.terminal-title {
  color: var(--terminal-green);
  font-family: var(--retro-terminal-font);
  font-size: 14px;
  margin-left: 15px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--retro-terminal-font);
  font-size: 16px;
  line-height: 1.4;
  background-color: rgb(0 0 0 / 90%);
}

.terminal-line {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.prompt {
  color: var(--terminal-amber);
  margin-right: 8px;
}

.output {
  color: var(--terminal-green);
}

.cursor-blink {
  color: var(--terminal-blue);
  animation: typing 3s steps(20) infinite;
}

.cursor {
  color: var(--terminal-green);
  animation: blink 1s infinite;
}



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

@keyframes typing {
  0% { width: 0; }
  50% { width: 100%; }
  100% { width: 0; }
}

/* ==========================================
   CONTENT CARDS
   ========================================== */

.card {
  background: var(--terminal-dark) !important;
  border: 1px solid var(--terminal-green) !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 10px rgba(0, 255, 65, 0.2);
  margin-bottom: 20px;
}

.card-header {
  background: var(--terminal-gray) !important;
  border-bottom: 1px solid var(--terminal-green) !important;
  color: var(--terminal-amber) !important;
  font-family: var(--retro-pixel-font) !important;
  font-size: 10px !important;
  text-transform: uppercase;
}

.card-body {
  color: var(--terminal-green) !important;
}

.card-title {
  color: var(--terminal-amber) !important;
  font-family: var(--retro-pixel-font) !important;
}

/* ==========================================
   BUTTONS AND BADGES
   ========================================== */

.btn-primary {
  background: var(--terminal-green) !important;
  border: 1px solid var(--terminal-green) !important;
  color: var(--terminal-bg) !important;
  font-family: var(--retro-terminal-font) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0 !important;
}

.btn-primary:hover {
  background: var(--terminal-amber) !important;
  border-color: var(--terminal-amber) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 255, 65, 0.3);
}

.btn-outline-primary {
  border: 1px solid var(--terminal-green) !important;
  color: var(--terminal-green) !important;
  background: transparent !important;
}

.btn-outline-primary:hover {
  background: var(--terminal-green) !important;
  color: var(--terminal-bg) !important;
}

.badge {
  font-family: var(--retro-terminal-font) !important;
  border-radius: 0 !important;
  padding: 4px 8px;
  font-size: 10px;
}

.bg-primary { background: var(--terminal-blue) !important; }
.bg-success { background: var(--terminal-green) !important; }
.bg-secondary { background: var(--terminal-gray) !important; }

/* ==========================================
   ALERTS
   ========================================== */

.retro-alert {
  background: var(--terminal-dark) !important;
  border: 1px solid var(--terminal-green) !important;
  border-radius: 0 !important;
  color: var(--terminal-green) !important;
  font-family: var(--retro-terminal-font) !important;
}

.alert-prompt {
  color: var(--terminal-amber);
  font-weight: bold;
}

.retro-close {
  color: var(--terminal-red) !important;
  font-family: var(--retro-terminal-font) !important;
  font-size: 18px !important;
  background: none !important;
  border: none !important;
  opacity: 1 !important;
}

.alert-info {
    color: #007991;
    background-color: #122432;
    border-color: #54686d;
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
  font-family: var(--retro-terminal-font) !important;
}

.page-link {
  background: var(--terminal-dark) !important;
  border: 1px solid var(--terminal-green) !important;
  color: var(--terminal-green) !important;
  border-radius: 0 !important;
}

.page-link:hover {
  background: var(--terminal-green) !important;
  color: var(--terminal-bg) !important;
  border-color: var(--terminal-green) !important;
}

.page-item.active .page-link {
  background: var(--terminal-amber) !important;
  border-color: var(--terminal-amber) !important;
  color: var(--terminal-bg) !important;
}

/* ==========================================
   FOOTER
   ========================================== */

.retro-footer {
  background: var(--terminal-dark);
  border-top: 2px solid var(--terminal-green);
  padding: 30px 0;
  margin-top: 50px;
}

.footer-terminal {
  font-family: var(--retro-terminal-font);
  font-size: 14px;
}

/* ===========================================
   ASCII ART
   ========================================== */

.ascii-art {
  text-align: center;
}

.ascii-text {
  color: var(--terminal-green);
  font-family: var(--retro-terminal-font);
  font-size: 10px;
  line-height: 1;
  text-shadow: var(--crt-glow);
  width: fit-content;
  margin: 0 auto;
}

/* ==========================================
   FORMS
   ========================================== */

.form-control {
  background: var(--terminal-bg) !important;
  border: 1px solid var(--terminal-green) !important;
  color: var(--terminal-green) !important;
  font-family: var(--retro-terminal-font) !important;
  border-radius: 0 !important;
}

.form-control:focus {
  background: var(--terminal-bg) !important;
  border-color: var(--terminal-amber) !important;
  color: var(--terminal-green) !important;
  box-shadow: 0 0 5px rgba(0, 255, 65, 0.5) !important;
}

.form-label {
  color: var(--terminal-amber) !important;
  font-family: var(--retro-terminal-font) !important;
  text-transform: uppercase;
  font-size: 12px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
  .retro-navbar {
    font-size: 14px;
  }
  
  .terminal-window {
    margin: 0 15px;
  }
  
  .ascii-text {
    font-size: 8px;
  }
  
  h1 { font-size: 14px !important; }
  h2 { font-size: 12px !important; }
  h3 { font-size: 10px !important; }
  
  .retro-search {
    width: 100%;
    margin-top: 10px;
  }
}

/* ==========================================
   SCANLINES EFFECT (Optional)
   ========================================== */

.retro-body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 2px,
    rgba(0, 255, 65, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
  animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* ==========================================
   CRT MONITOR EFFECT
   ========================================== */

.container {
  position: relative;
  z-index: 1;
}

/* Screen flicker effect */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  98%, 99% { opacity: 0.98; }
}

.retro-body {
  animation: flicker 3s infinite;
}

.loading-screen {
    background: var(--terminal-bg);
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
}

.terminal-window-small {
    font-family: var(--retro-terminal-font);
    font-size: 12px;
}

.file-tree {
    color: var(--terminal-green);
    font-family: var(--retro-terminal-font);
}

.file-listing .terminal-line {
    font-family: var(--retro-terminal-font);
    font-size: 11px;
    margin-bottom: 2px;
}

.file-permissions {
    color: var(--terminal-blue);
    margin-right: 8px;
}

.file-size {
    color: var(--terminal-amber);
    margin-right: 8px;
    min-width: 40px;
    display: inline-block;
}

.file-date {
    color: var(--terminal-gray);
    margin-right: 8px;
    min-width: 50px;
    display: inline-block;
}

.file-name {
    color: var(--terminal-green) !important;
}

.info-label {
    color: var(--terminal-amber);
    min-width: 40px;
    display: inline-block;
    margin-right: 8px;
}

.info-value {
    color: var(--terminal-green);
}

.progress-bar-retro {
    font-family: var(--retro-terminal-font);
    font-size: 10px;
}

.progress-label {
    color: var(--terminal-amber);
    margin-bottom: 2px;
}

.progress-track {
    display: flex;
    align-items: center;
}

.progress-fill {
    color: var(--terminal-green);
}

.progress-empty {
    color: var(--terminal-gray);
}

.progress-percent {
    color: var(--terminal-blue);
    margin-left: 8px;
}

.tag-cloud-retro {
    margin: 10px 0;
}

.retro-tag {
    display: inline-block;
    background: var(--terminal-dark);
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green) !important;
    padding: 2px 6px;
    margin: 2px;
    font-family: var(--retro-terminal-font);
    font-size: 10px;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.retro-tag:hover {
    background: var(--terminal-green);
    color: var(--terminal-bg) !important;
}

.ascii-art-small {
    color: var(--terminal-green);
    font-family: var(--retro-terminal-font);
    font-size: 8px;
    line-height: 1;
    text-align: center;
    margin: 0;
}

.command-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.retro-search-form .input-group-text {
    background: var(--terminal-gray);
    border: 1px solid var(--terminal-green);
    color: var(--terminal-amber);
    font-family: var(--retro-terminal-font);
    font-size: 11px;
}

/* Additional CSS for Sidebar Components */

.terminal-window-small {
    font-family: var(--retro-terminal-font);
    font-size: 12px;
}

.file-tree {
    color: var(--terminal-green);
    font-family: var(--retro-terminal-font);
}

.file-listing .terminal-line {
    font-family: var(--retro-terminal-font);
    font-size: 11px;
    margin-bottom: 2px;
}

.file-permissions {
    color: var(--terminal-blue);
    margin-right: 8px;
}

.file-size {
    color: var(--terminal-amber);
    margin-right: 8px;
    min-width: 40px;
    display: inline-block;
}

.file-date {
    color: var(--terminal-gray);
    margin-right: 8px;
    min-width: 50px;
    display: inline-block;
}

.file-name {
    color: var(--terminal-green) !important;
}

/* Process Display Styling */
.process-display .terminal-line {
    font-family: var(--retro-terminal-font);
    font-size: 10px;
    margin-bottom: 2px;
}

.process-user, .process-pid, .process-cpu, .process-mem {
    display: inline-block;
    margin-right: 8px;
    min-width: 60px;
}

.process-user {
    color: var(--terminal-amber);
    min-width: 50px;
}

.process-pid {
    color: var(--terminal-blue);
    min-width: 40px;
}

.process-cpu, .process-mem {
    color: var(--terminal-green);
    min-width: 35px;
}

.process-command {
    color: var(--terminal-green);
    font-family: var(--retro-mono-font);
}

/* First line headers */
.process-display .terminal-line:first-child .process-user,
.process-display .terminal-line:first-child .process-pid,
.process-display .terminal-line:first-child .process-cpu,
.process-display .terminal-line:first-child .process-mem,
.process-display .terminal-line:first-child .process-command {
    color: var(--terminal-amber);
    font-weight: bold;
    text-decoration: underline;
}

.info-label {
    color: var(--terminal-amber);
    min-width: 60px;
    display: inline-block;
    margin-right: 8px;
}

.info-value {
    color: var(--terminal-green);
}

.progress-bar-retro {
    font-family: var(--retro-terminal-font);
    font-size: 10px;
}

.progress-label {
    color: var(--terminal-amber);
    margin-bottom: 2px;
}

.progress-track {
    display: flex;
    align-items: center;
}

.progress-fill {
    color: var(--terminal-green);
}

.progress-empty {
    color: var(--terminal-gray);
}

.progress-percent {
    color: var(--terminal-blue);
    margin-left: 8px;
}

.tag-cloud-retro {
    margin: 10px 0;
}

.retro-tag {
    display: inline-block;
    background: var(--terminal-dark);
    border: 1px solid var(--terminal-green);
    color: var(--terminal-green) !important;
    padding: 2px 6px;
    margin: 2px;
    font-family: var(--retro-terminal-font);
    font-size: 10px;
    text-decoration: none !important;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.retro-tag:hover {
    background: var(--terminal-green);
    color: var(--terminal-bg) !important;
}

.ascii-art-small {
    color: var(--terminal-green);
    font-family: var(--retro-terminal-font);
    font-size: 6px;
    line-height: 1;
    text-align: center;
    margin: 0;
}

.command-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.retro-search-form .input-group-text {
    background: var(--terminal-gray);
    border: 1px solid var(--terminal-green);
    color: var(--terminal-amber);
    font-family: var(--retro-terminal-font);
    font-size: 11px;
}

@media (max-width: 768px) {
    .file-size, .file-date {
        min-width: auto;
    }
    
    .command-grid {
        grid-template-columns: 1fr;
    }
    
    .process-user, .process-pid, .process-cpu, .process-mem {
        min-width: 30px;
        margin-right: 4px;
    }
    
    .process-command {
        font-size: 9px;
    }
}
