/* theme-amiga.css: 1987 Commodore Amiga 500 / Workbench 1.3 Desktop */

body[data-theme-layout="amiga"],
[data-theme-layout="amiga"] body {
  background-color: #0055aa;
  background-image: none !important;
  color: #000000;
  min-height: 100vh;
  box-sizing: border-box;
}

body[data-theme-layout="amiga"] .bg,
body[data-theme-layout="amiga"]::before {
  display: none !important;
}

body[data-theme-layout="amiga"]::after {
  content: "  Amiga Workbench 1.3  ·  Window  Tools  Icons  Help                                                                            DF0: 880K Free";
  position: fixed;
  top: var(--dock-height, 54px);
  left: 0;
  right: 0;
  height: 26px;
  line-height: 26px;
  background: #ffffff;
  color: #000000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.54rem;
  padding: 0 1rem;
  border-bottom: 2px solid #000000;
  box-shadow: 0 2px 0 #0055aa;
  z-index: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

body[data-theme-layout="amiga"] main,
[data-theme-layout="amiga"] body main {
  position: relative;
  max-width: 800px;
  margin: calc(var(--dock-height, 54px) + 2rem) auto 3rem;
  background: #ffffff;
  border: 3px solid #000000;
  box-shadow:
    inset 2px 2px 0 #ffffff,
    inset -2px -2px 0 #0055aa,
    6px 6px 0 rgba(0, 0, 0, 0.45);
  padding: 0 0 1.5rem;
}

body[data-theme-layout="amiga"] .player {
  position: relative;
  background: #ffffff;
  padding: 0 1.25rem 1.25rem;
  margin-bottom: 0;
  text-align: center;
}

body[data-theme-layout="amiga"] .player::before {
  content: "■  Furphy:Projects (Drawer)                              [▲][▼]";
  display: block;
  background: #ff8800;
  color: #000000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.64rem;
  line-height: 28px;
  height: 28px;
  margin: 0 -1.25rem 1.25rem;
  padding: 0 0.85rem;
  border-bottom: 2px solid #000000;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #cc6600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

body[data-theme-layout="amiga"] #sun,
body[data-theme-layout="amiga"] #moon {
  display: none !important;
}

body[data-theme-layout="amiga"] .avatar-slot {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border: 2px solid #0055aa;
  box-shadow: 3px 3px 0 #ff8800;
  animation: none;
  margin-bottom: 0.6rem;
}

body[data-theme-layout="amiga"] .avatar-slot img,
body[data-theme-layout="amiga"] .avatar-slot canvas {
  width: 80px;
  height: 80px;
}

body[data-theme-layout="amiga"] h1 {
  color: #0055aa;
  font-size: 1.65rem;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 #ff8800;
  margin: 0.2rem 0;
}

body[data-theme-layout="amiga"] .kana {
  color: #000000;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

body[data-theme-layout="amiga"] .tagline {
  color: #000000;
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
}

body[data-theme-layout="amiga"] .socials {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

body[data-theme-layout="amiga"] .slot-btn {
  width: 46px;
  height: 46px;
  background: #ffffff;
  border: 2px solid #0055aa;
  box-shadow: 2px 2px 0 #000000;
  border-radius: 0;
  transition: transform 0.06s steps(2, end), background-color 0.06s steps(2, end);
}

body[data-theme-layout="amiga"] .slot-btn:hover {
  background: #ff8800;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000000;
}

body[data-theme-layout="amiga"] .slot-btn:active {
  background: #0055aa;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000000;
}

body[data-theme-layout="amiga"] .divider {
  position: relative;
  background: #e8e8e8;
  border: 2px solid #000000;
  padding: 0.6rem 1rem;
  margin: 0 1.25rem 1.1rem;
  color: #000000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #888888;
}

body[data-theme-layout="amiga"] .divider::before {
  content: "[=== DF0: DRIVE SLOT ===]";
  color: #444444;
  letter-spacing: 0.08em;
  border-top: none;
  opacity: 1;
}

body[data-theme-layout="amiga"] .divider::after {
  content: "● DF0: READY";
  margin-left: auto;
  color: #009900;
  font-size: 0.52rem;
  text-shadow: 0 0 6px #00ff00;
  border-top: none;
  opacity: 1;
}

body[data-theme-layout="amiga"] main:has(.world:hover) .divider::after,
body[data-theme-layout="amiga"] main:has(.world:focus-visible) .divider::after {
  content: "● DF0: READING DISK...";
  color: #ff3300;
  text-shadow: 0 0 8px #ff3300;
  animation: amiga-drive-led 0.3s steps(2, start) infinite;
}

@keyframes amiga-drive-led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

body[data-theme-layout="amiga"] .worlds {
  padding: 0 1.25rem;
  gap: 0.85rem;
}

body[data-theme-layout="amiga"] .world {
  background: #ffffff;
  border: 2px solid #0055aa;
  box-shadow: 3px 3px 0 #ff8800, 5px 5px 0 #000000;
  padding: 0.85rem 1rem;
  color: #000000;
  border-radius: 0;
  animation: none;
  transition: background-color 0.06s ease, color 0.06s ease, transform 0.06s ease;
}

body[data-theme-layout="amiga"] .world:hover,
body[data-theme-layout="amiga"] .world:focus-visible {
  background: #0055aa;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #ff8800, 6px 6px 0 #000000;
}

body[data-theme-layout="amiga"] .world:hover .wname,
body[data-theme-layout="amiga"] .world:focus-visible .wname,
body[data-theme-layout="amiga"] .world:hover .blurb,
body[data-theme-layout="amiga"] .world:focus-visible .blurb {
  color: #ffffff;
}

body[data-theme-layout="amiga"] .world:hover .chip,
body[data-theme-layout="amiga"] .world:focus-visible .chip {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

body[data-theme-layout="amiga"] .world:hover .badge,
body[data-theme-layout="amiga"] .world:focus-visible .badge {
  background: #ff8800;
  color: #000000;
  border-color: #ffffff;
}

body[data-theme-layout="amiga"] .world:nth-of-type(1) .wname::before {
  content: "[IMG] ";
  color: #0055aa;
}

body[data-theme-layout="amiga"] .world:nth-of-type(1) .titlerow::after {
  content: "· 2,048 KB (IFF-ILBM)";
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  color: #555555;
}

body[data-theme-layout="amiga"] .world:nth-of-type(2) .wname::before {
  content: "[APP] ";
  color: #0055aa;
}

body[data-theme-layout="amiga"] .world:nth-of-type(2) .titlerow::after {
  content: "· 512 KB (Executable)";
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  color: #555555;
}

body[data-theme-layout="amiga"] .world:nth-of-type(3) .wname::before {
  content: "[EXE] ";
  color: #0055aa;
}

body[data-theme-layout="amiga"] .world:nth-of-type(3) .titlerow::after {
  content: "· 1,024 KB (Game)";
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  color: #555555;
}

body[data-theme-layout="amiga"] .world:nth-of-type(4) .wname::before {
  content: "[DOC] ";
  color: #0055aa;
}

body[data-theme-layout="amiga"] .world:nth-of-type(4) .titlerow::after {
  content: "· 69 KB (Document)";
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  color: #555555;
}

body[data-theme-layout="amiga"] .world:nth-of-type(5) .wname::before {
  content: "[GUIDE] ";
  color: #0055aa;
}

body[data-theme-layout="amiga"] .world:nth-of-type(5) .titlerow::after {
  content: "· 777 KB (AmigaGuide)";
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  color: #555555;
}

body[data-theme-layout="amiga"] .world:nth-of-type(6) .wname::before {
  content: "[DB] ";
  color: #0055aa;
}

body[data-theme-layout="amiga"] .world:nth-of-type(6) .titlerow::after {
  content: "· 880 KB (Database)";
  font-family: 'Press Start 2P', monospace;
  font-size: 0.48rem;
  color: #555555;
}

body[data-theme-layout="amiga"] .world:hover .wname::before,
body[data-theme-layout="amiga"] .world:focus-visible .wname::before,
body[data-theme-layout="amiga"] .world:hover .titlerow::after,
body[data-theme-layout="amiga"] .world:focus-visible .titlerow::after {
  color: #ffffff;
}

body[data-theme-layout="amiga"] .icon-slot {
  background: #ffffff;
  border: 2px solid #0055aa;
  box-shadow: 2px 2px 0 #ff8800;
}

body[data-theme-layout="amiga"] .wname {
  color: #0055aa;
  font-size: 0.78rem;
}

body[data-theme-layout="amiga"] .badge {
  background: #ff8800;
  color: #000000;
  border: 1px solid #000000;
  box-shadow: 2px 2px 0 #0055aa;
  font-size: 0.5rem;
}

body[data-theme-layout="amiga"] .blurb {
  color: #000000;
  font-size: 0.94rem;
  line-height: 1.4;
}

body[data-theme-layout="amiga"] .chip {
  border: 1px solid #0055aa;
  color: #0055aa;
  background: #f0f5ff;
  box-shadow: 1px 1px 0 #ff8800;
  font-size: 0.7rem;
}

body[data-theme-layout="amiga"] footer {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem 0;
  border-top: 2px solid #0055aa;
  color: #333333;
  font-size: 0.88rem;
}

body[data-theme-layout="amiga"] footer .press {
  color: #0055aa;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

body[data-theme-layout="amiga"] a:focus-visible,
body[data-theme-layout="amiga"] button:focus-visible {
  outline: 3px solid #ff8800 !important;
  outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme-layout="amiga"] *,
  body[data-theme-layout="amiga"] *::before,
  body[data-theme-layout="amiga"] *::after {
    animation: none !important;
    transition: none !important;
  }
}
