/**
 * Amiga 500 Workbench 1.3 Theme
 */

@font-face {
  font-family: 'Topaz';
  src: url('https://cdn.jsdelivr.net/gh/rewtnull/amigafonts@master/ttf/Topaz_a500_v1.0.ttf') format('truetype');
}

:root {
  --amiga-blue: #0055AA;
  --amiga-white: #FFFFFF;
  --amiga-black: #000000;
  --amiga-orange: #FF8800;
  --amiga-grey: #AAAAAA;
  --amiga-dark-blue: #000088;
}

body {
  font-family: 'Topaz', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.2;
}

/* ==========================================
   TERMINAL WINDOW
   Blue Amiga window with borders
   ========================================== */
.terminal {
  background: var(--amiga-blue);
  border: 2px solid var(--amiga-black);
  box-shadow:
    inset 1px 1px 0 var(--amiga-white),
    inset -1px -1px 0 var(--amiga-black),
    3px 3px 0 rgba(0, 0, 0, 0.3);
}

/* ==========================================
   WINDOW CHROME
   Amiga Workbench title bar
   ========================================== */
.title-bar {
  background: var(--amiga-blue);
  border-bottom: 2px solid var(--amiga-black);
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  position: relative;
}

.title-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--amiga-white);
}

/* Window gadgets (buttons) */
.gadget {
  width: 18px;
  height: 16px;
  border: 1px solid var(--amiga-black);
  background: var(--amiga-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.gadget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 1px;
  bottom: 1px;
  border-top: 1px solid var(--amiga-white);
  border-left: 1px solid var(--amiga-white);
}

.gadget:active {
  background: var(--amiga-dark-blue);
}

.gadget:active::before {
  border-color: var(--amiga-black);
}

.close-gadget::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--amiga-orange);
  border: 1px solid var(--amiga-black);
}

.depth-gadget {
  margin-left: auto;
}

.depth-gadget::after {
  content: '';
  width: 10px;
  height: 6px;
  border: 1px solid var(--amiga-black);
  background: var(--amiga-white);
  position: relative;
}

.zoom-gadget::after {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid var(--amiga-black);
  background: transparent;
}

.window-title {
  flex: 1;
  text-align: center;
  color: var(--amiga-white);
  font-size: 14px;
  text-shadow: 1px 1px 0 var(--amiga-black);
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
}

/* Disk activity indicator */
.disk-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--amiga-black);
  border: 2px solid var(--amiga-white);
  padding: 4px 8px;
  font-size: 12px;
  color: var(--amiga-grey);
  display: none;
  z-index: 10;
}

.disk-indicator.active {
  display: block;
  color: var(--amiga-orange);
}

/* ==========================================
   TERMINAL CONTENT
   Black terminal area
   ========================================== */
.terminal-content {
  background: var(--amiga-black);
  color: var(--amiga-white);
  padding: 8px;
}

.prompt {
  color: var(--amiga-white);
  margin-right: 0;
}

#command-input {
  color: var(--amiga-white);
}

.cursor {
  width: 8px;
  height: 14px;
  background: var(--amiga-orange);
  animation-duration: 0.6s;
}

/* Colors */
.color-orange { color: var(--amiga-orange); }
.color-white { color: var(--amiga-white); }
.color-blue { color: #6699FF; }
.color-grey { color: var(--amiga-grey); }

/* Scrollbar - Amiga style */
.output::-webkit-scrollbar {
  width: 16px;
}

.output::-webkit-scrollbar-track {
  background: var(--amiga-blue);
  border-left: 1px solid var(--amiga-black);
}

.output::-webkit-scrollbar-thumb {
  background: var(--amiga-blue);
  border: 1px solid var(--amiga-black);
  border-left-color: var(--amiga-white);
  border-top-color: var(--amiga-white);
}

/* ==========================================
   INSERT DISK SCREEN (special overlay)
   ========================================== */
.insert-disk-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.insert-disk-screen.hidden {
  display: none;
}

.disk-icon-container {
  margin-bottom: 30px;
}

.disk-icon-container img {
  width: 200px;
  height: auto;
  image-rendering: pixelated;
  animation: disk-hover 1.5s ease-in-out infinite;
}

@keyframes disk-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.insert-disk-text {
  font-family: 'Topaz', 'Courier New', monospace;
  font-size: 18px;
  color: #000000;
  text-align: center;
}

.insert-disk-subtext {
  font-family: 'Topaz', 'Courier New', monospace;
  font-size: 14px;
  color: #000000;
  margin-top: 15px;
  animation: blink-text 1s step-end infinite;
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 600px) {
  .window-title {
    font-size: 12px;
  }
}

@media (max-width: 500px) {
  body { font-size: 12px; }
}

@media (max-width: 380px) {
  body { font-size: 10px; }
}
