/* ===== RESET AND BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.4;
  height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/*
a {
    opacity: 0.7;
    color: rgb(136, 136, 136);
    text-decoration: none;
    cursor: text;
}
a.hover {
    opacity: 1;
    color: rgb(255, 255, 255);
}
    */

.link {
  color: inherit;
  text-decoration: none;
  position: relative;
  cursor: text;
  transition: all 0.2s ease;
  border-bottom: 1px dashed;
}
.link-show {
  border-bottom: 1px dashed;
}

/* Show it's a link when modifier key is held */
.modifier-held .link:hover {
  color: #6b8acd;
  text-decoration: none;
  border-bottom: 1px solid;
  cursor: pointer;
}

/* Hover state when modifier is held */
.modifier-held .link:hover {
  /* background-color: rgba(142, 192, 124, 0.2); */
  /* text-shadow: 0 0 3px rgba(142, 192, 124, 0.5); */
  /* padding: 1px 2px; */
  /* margin: -1px -2px; */
  /* border-radius: 2px; */
}

/* Theme-specific link colors */
body.theme-dark .modifier-held .link {
  color: #00ff00;
}

body.theme-light .modifier-held .link {
  color: #286983;
}

body.theme-a11y .modifier-held .link {
  color: #00ddff;
}







/* ===== LAYOUT STRUCTURE ===== */
.terminal {
  /*
  padding: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  */
  height: 100%;
  padding-bottom: 20px;
  overflow: scroll;
  padding: 20px;
  padding-top: 45px;
  background-size: 100% 4px;
}

.header {
  opacity: 0.8;
}

.prompt-line {
  align-items: center;
  display: flex;
}

.prompt-line:last-child {
  padding-bottom: 10px;
}

.prompt {
  font-weight: bold;
  margin-right: 8px;
  white-space: nowrap;
}
.terminal-title .prompt {
  margin-right: 0;
}
.input-area {
  background: transparent;
  border: none;
  flex: 1;
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.input-area:focus {
  background: transparent;
}

.info {
  font-size: 14px;
  margin-top: 20px;
  opacity: 0.6;
}

/* ===== CONTENT STYLING ===== */
pre {
  margin: 5px 0 10px;
}

pre.hide {
  display: none;
}

/* ===== TRANSITIONS ===== */
.prompt, .input-area, .response-line, .date {
  transition: color 0.3s ease;
}

/* ===== SEMANTIC CLASSES (structure only) ===== */
.command {
  font-weight: bold;
}

.flag {
  font-weight: bold;
}

.header {
  font-size: 1.1em;
}

.section {
  font-weight: bold;
}

.number {
  font-weight: bold;
}

.company {
  font-style: italic;
}

.directory {
  font-weight: bold;
}

.error {
  font-weight: bold;
}

.tip {
  font-style: italic;
}

.terminal-container {
  position: relative;
  height: 100vh;
  width: 100%;
}
/* Header Bar */
.terminal-header {
  align-items: center;
  background: linear-gradient(180deg, #3c3c3c 0%, #2a2a2a 100%);
  border-bottom: 1px solid #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  height: 40px;
  height: 40px;
  left: 0;
  padding: 0 16px;
  position: absolute;
  right: 0;
  top: 0;
  width: 100vw;
  z-index: 10;
}

.window-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.window-control {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1),
  0 1px 2px rgba(0, 0, 0, 0.3);
}

.window-control:hover {
  transform: scale(1.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2),
  0 2px 4px rgba(0, 0, 0, 0.4);
}

.close {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
}

.close:hover::after {
  content: '×';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #8b0000;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
}

.minimize {
  background: linear-gradient(135deg, #ffd93d 0%, #ffb74d 100%);
}

.minimize:hover::after {
  content: '−';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #b8860b;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
}

.maximize {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
}

.maximize:hover::after {
  content: '⛶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #2d5a2d;
  font-size: 8px;
  font-weight: bold;
  line-height: 1;
}

.terminal-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #c9d1d9;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  user-select: none;
}

pre em { font-style: normal; }
pre i  { font-style: normal; }
pre b  { font-weight: normal; }
