/* =====================================
   GLOBAL / BACKGROUND (XP)
   ===================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Keep your clouds, but more XP-ish overall */
body {
  background-color: #3a6ea5; /* XP blue behind clouds */
  background-image: url("../img/bg-bliss.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  image-rendering: pixelated;

  font-family: "Tahoma", "MS Sans Serif", Verdana, sans-serif;
  min-height: 100vh;
  padding: 30px 0 60px; /* room for taskbar */
}

/* =====================================
   MAIN WINDOW (XP CHROME)
   ===================================== */

.window {
  background: #ece9d8; /* XP beige */
  border-radius: 6px;
  border: 1px solid #31528f;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.35),
    3px 3px 6px rgba(0,0,0,0.6);
  width: min(850px, 100vw - 40px);
  padding: 0;
  margin: 40px auto;
  overflow: hidden;
}

.title-bar {
  background: linear-gradient(180deg, #4c7dbd, #24539c); /* XP active title bar */
  color: #ffffff;
  padding: 3px 6px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title-bar-buttons {
  display: flex;
  gap: 2px;
}

.title-btn {
  width: 18px;
  height: 16px;
  background: linear-gradient(180deg, #f2f2f2, #c0c0c0);
  border-radius: 3px;
  border: 1px solid #3f3f3f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #000;
}

.window-body {
  padding: 12px;
  background: #ece9d8;
}

/* =====================================
   HEADING
   ===================================== */

.heading {
  text-align: center;
  margin-bottom: 12px;
  font-size: 32px;
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: 3px;
  color: #24539c;
  text-shadow: 1px 1px 0 #ffffff;
}

/* =====================================
   PRODUCT GRID
   ===================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .heading {
    font-size: 24px;
  }
}

.panel {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #9e9e9e;
  box-shadow:
    inset 0 0 0 1px #f6f6f6,
    1px 1px 2px rgba(0,0,0,0.25);
  padding: 8px;
}

.panel-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6px;
  align-items: center;
}

.panel-text {
  font-size: 13px;
  color: #000;
}

.panel-title {
  font-size: 18px;
  font-weight: 900;
  color: #1f3d7a;
}

.price {
  color: #c00000;
}

.panel-sub {
  font-size: 11px;
  margin-top: 6px;
  color: #333;
}

.panel-img-wrapper {
  text-align: center;
}

.panel-img {
  max-width: 100%;
  border-radius: 3px;
  border: 1px solid #7f9db9;
  image-rendering: pixelated;
}

/* =====================================
   BUTTON ROW
   ===================================== */

.button-row {
  margin-top: 16px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn {
  padding: 6px 24px;
  background: linear-gradient(180deg, #fefefe, #dcdcdc);
  border-radius: 20px;
  border: 1px solid #7f9db9;
  box-shadow:
    0 0 0 1px #ffffff,
    1px 1px 2px rgba(0,0,0,0.4);
  text-decoration: none;
  color: #1f3d7a;
  font-weight: 900;
  font-size: 16px;
}

.btn:active {
  background: linear-gradient(180deg, #dcdcdc, #fefefe);
  box-shadow:
    inset 1px 1px 2px rgba(0,0,0,0.3);
}

/* =====================================
   TASKBAR (XP LUNA BLUE)
   ===================================== */

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, #3b6ea5, #2454a1);
  border-top: 1px solid #ffffff;
  box-shadow:
    0 -1px 0 #123765,
    0 -2px 0 rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  z-index: 100;
}

/* Start Button (XP Green) */

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 14px;
  background: linear-gradient(180deg, #4cd24c, #2c7a32);
  border-radius: 14px;
  border: 1px solid #0f3c15;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.35),
    1px 1px 2px rgba(0,0,0,0.6);
  cursor: pointer;
  font-size: 13px;
  color: #ffffff;
  font-weight: bold;
}

.start-logo {
  font-weight: bold;
  color: #ffffff;
}

.start-button:active {
  background: linear-gradient(180deg, #2c7a32, #4cd24c);
  box-shadow:
    inset 1px 1px 2px rgba(0,0,0,0.5);
}

.taskbar-spacer {
  flex: 1;
}

.taskbar-clock {
  padding: 2px 8px;
  background: transparent;
  color: #ffffff;
  font-size: 11px;
}

/* =====================================
   START MENU (XP STYLE)
   ===================================== */

.start-menu {
  position: fixed;
  bottom: 30px;
  left: 4px;
  width: 280px;
  display: none;
  z-index: 200;
  background: #f0f0f0;
  border-radius: 6px 6px 0 0;
  border: 1px solid #31528f;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.4),
    3px 3px 6px rgba(0,0,0,0.7);
  overflow: visible;
}

.start-menu.open {
  display: block;
}

/* Left blue sidebar */

.start-menu-sidebar {
  float: left;
  width: 40px;
  height: 100%;
  background: linear-gradient(180deg, #2454a1, #16396b);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.start-menu-brand {
  writing-mode: vertical-rl;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 11px;
  padding: 8px 0;
  letter-spacing: 1px;
}

/* Main area */

.start-menu-main {
  margin-left: 40px;
  padding: 6px;
  font-size: 12px;
}

.start-menu-section {
  margin-bottom: 8px;
}

.start-menu-section-title {
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 2px;
  color: #31528f;
}

.start-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.start-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  color: #000000;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  text-align: left;
}

.start-menu-item:hover {
  background: #316ac5;
  color: #ffffff;
  border-color: #316ac5;
}

.start-menu-item.disabled {
  opacity: 0.6;
  cursor: default;
}

.start-menu-item.disabled:hover {
  background: none;
  color: #000000;
  border-color: transparent;
}

.start-menu-icon {
  width: 18px;
  text-align: center;
  margin-right: 4px;
}

.start-menu-label {
  flex: 1;
}

.start-menu-arrow {
  margin-left: auto;
  font-size: 10px;
}

/* =====================================
   SUBMENU (XP FLYOUT)
   ===================================== */

.has-submenu {
  position: relative;
}

.start-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 220px;
  background: #f0f0f0;
  border-radius: 4px;
  border: 1px solid #31528f;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.4),
    3px 3px 6px rgba(0,0,0,0.7);
  display: none;
  padding: 4px;
  z-index: 300;
}

.start-submenu.open {
  display: block;
}

/* =====================================
   DREAM TAX / PASSWORD POPUP (XP)
   ===================================== */

.popup-window {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 360px;
  transform: translate(-50%, -50%);
  background: #ece9d8;
  border-radius: 6px;
  border: 1px solid #31528f;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.4),
    4px 4px 8px rgba(0,0,0,0.8);
  z-index: 400;
  display: none;
  overflow: hidden;
}

.popup-window.open {
  display: block;
}

/* Reuse XP title bar for popup (inherits .title-bar styles) */

.popup-body {
  padding: 10px;
  background: #ece9d8;
  font-size: 12px;
}

.popup-sub {
  font-size: 11px;
  margin: 6px 0 10px;
}

.popup-label {
  display: inline-block;
  margin-right: 4px;
}

.popup-input {
  border-radius: 3px;
  border: 1px solid #7f9db9;
  background: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 12px;
  padding: 2px 4px;
  margin: 4px 0;
}

.popup-input.full {
  width: 100%;
}

.popup-row {
  margin-top: 6px;
}

.popup-buttons {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

/* Small XP-style buttons */

.btn-small {
  padding: 3px 10px;
  background: linear-gradient(180deg, #fefefe, #dcdcdc);
  border-radius: 12px;
  border: 1px solid #7f9db9;
  font-size: 11px;
  cursor: pointer;
  color: #1f3d7a;
}

.btn-small:active {
  background: linear-gradient(180deg, #dcdcdc, #fefefe);
  box-shadow:
    inset 1px 1px 2px rgba(0,0,0,0.3);
}

.popup-hint {
  margin-top: 8px;
  font-size: 10px;
  color: #555;
}

