:root {
  --bg: #0b0b0b;
  --fg: #33ff33;
  --prompt: #33ff33;
  --cursor: #33ff33;
  --link: #33ff33;
  --link-hover: #fff;
}
body.light {
  --fg: #ffbf00;
  --prompt: #ffbf00;
  --cursor: #ffbf00;
  --link: #ffbf00;
  --link-hover: #fff;
  --bg: #000;
}
html, body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Fira Code", monospace;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #222;
  color: #fff;
  padding: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}
/* Terminal dış kap: tam ekran */
.terminal-root {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  box-sizing: border-box;
}
/* Terminal pencere */
.terminal-window {
  width: min(1200px, 100%);
  min-height: min(800px, 90vh);
  height: auto;
  border-radius: 10px;
  margin: 0 auto;
}
.terminal-header {
  display: flex;
  align-items: center;
  background: #111;
  padding: 4px 8px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.buttons {
  display: flex;
  gap: 4px;
}
.btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.btn.close { background: #ff5f56; }
.btn.min { background: #ffbd2e; }
.btn.max { background: #27c93f; }
.title {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: var(--fg);
}
/* Terminal içerik alanı */
.terminal-body {
  background: #000;
  padding: 10px;
  max-height: calc(90vh - 48px);
  overflow: auto;
  border-left: 1px solid #222;
  border-right: 1px solid #222;
}
.terminal-input {
  display: flex;
  align-items: center;
  background: #000;
  padding: 8px 10px;
  border-left: 1px solid #222;
  border-right: 1px solid #222;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.prompt {
  color: var(--prompt);
  margin-right: 4px;
}
#cmdInput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  caret-color: var(--cursor);
}
#cmdInput:focus {
  outline: 1px solid var(--fg);
}
a {
  color: var(--link);
  text-decoration: underline;
  position: relative;
}
a:hover {
  animation: wiggle 0.3s ease-in-out;
  color: var(--link-hover);
}
@keyframes wiggle {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}
.copy-btn {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 12px;
}
/* Mobil tipografi uyumu */
@media (max-width: 480px) {
  .terminal-window { width: 100%; min-height: 92vh; border-radius: 0; }
  .terminal-body { max-height: calc(92vh - 44px); }
}
@media (max-width: 600px) {
  .terminal-body { min-height: 50vh; font-size: 14px; }
  #cmdInput { font-size: 14px; }
}
