/* /layout/terminal-errors.css */
:root {
  overscroll-behavior-y: none;
}

body.standalone-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.terminal-box {
  --status-color: #f85149; /* Standaard rood voor errors */
  --prompt-color: var(--status-color);
  --box-width: 62ch;

  width: var(--box-width);
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
  transition: all 0.3s ease;
  color: var(--term-text);
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1);
}

.header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--term-border);
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: var(--status-color);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95em;
}

.header span.glitch { animation: glitch 3s linear infinite; }
@keyframes glitch {
  2%, 64% { transform: translate(2px,0) skew(0deg); }
  4%, 60% { transform: translate(-2px,0) skew(0deg); }
  62% { transform: translate(0,0) skew(5deg); }
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Icons & Theepotjes */
.icon-container {
  position: relative;
  font-size: 4rem;
  margin: 5px 0 20px 0;
  color: var(--status-color);
}

.teacup-container, .teapot-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 10px 0 30px 0;
  transition: all 0.3s ease;
}

.steam {
  opacity: 0;
  animation: rise 3s 7 ease-in forwards;
}
.steam:nth-child(2) { animation-delay: 1s; }
.steam:nth-child(3) { animation-delay: 2s; }

@keyframes rise {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  20% { opacity: 0.7; }
  100% { transform: translateY(-40px) scaleX(1.5); opacity: 0; }
}

/* Terminal Tekst & Lijnen */
.terminal-text { width: 100%; }

.line {
  margin: 6px 0;
  min-height: 1.2em;
  line-height: 1.5;
  word-break: break-word;
  font-family: 'JetBrains Mono', Consolas, monospace;
}

.prompt { color: var(--prompt-color); font-weight: bold; }
.cmd { color: var(--term-text); }
.sub-response { color: var(--term-text); margin-left: 2ch; }

.response-error   { color: #f85149; font-weight: bold; }
.response-warning { color: #d29922; font-weight: bold; }
.response-success { color: #4e9a06; font-weight: bold; }
.response-tea     { color: #c48b59; font-weight: bold; }
.response-info    { color: var(--term-link); font-weight: bold; }
.response-teapot  { color: #c678dd; font-weight: bold; }

.cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1em;
  background-color: var(--term-cursor);
  vertical-align: baseline;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

a {
  color: var(--term-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
a:hover { border-bottom-color: var(--term-link-hover); }

/* Light/Dark mode & Responsiveness */
@media (prefers-color-scheme: light) {
  .terminal-box {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .terminal-box { padding: 1.2rem; font-size: 75%; }
  .icon-container { font-size: 3rem; margin-bottom: 15px; }
  .teacup-container, .teapot-container { width: 90px; height: 90px; margin-bottom: 20px; }
  .header { font-size: 0.85em; }
  .sub-response { margin-left: 1ch; }
}
