/* LITTLESITE · PARTS — startMenu's look: the five layouts startMenu.js makes,
   each theme's own under its .theme-* class. */
/* Dedicated OS Start Menu */
.start-menu {
  position: fixed;
  bottom: 54px;
  left: 10px;
  width: 320px;
  background: rgba(18, 18, 38, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.start-menu.hidden {
  display: none !important;
}

.start-menu-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.25), rgba(139, 92, 246, 0.15));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.start-menu-user { cursor: pointer; }
.start-menu-user:hover,
.start-menu-user:focus { outline: 2px solid var(--accent, #6c63ff); outline-offset: -2px; filter: brightness(1.12); }
.start-menu-user:focus:not(:focus-visible) { outline: none; }
.start-menu-username { overflow-wrap: anywhere; }

.start-menu-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent, #6c63ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 12px var(--accent-glow, rgba(108, 99, 255, 0.4));
}

.start-menu-user-info {
  display: flex;
  flex-direction: column;
}

.start-menu-username {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.start-menu-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.start-menu-section {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.start-menu-section-title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.15s ease, color 0.15s ease;
}

.start-menu-item:hover,
.start-menu-item:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

/* the item the keyboard is on, in every theme's menu */
.start-menu-item:focus-visible,
.metro-tile:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: -2px;
}

.start-menu-icon {
  width: 22px;
  text-align: center;
  font-size: 14px;
}

.start-menu-footer {
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: space-around;
}

.start-menu-footer .start-menu-item {
  flex: 1;
  justify-content: center;
  padding: 6px;
}

/* --- Theme-Specific Start Menus --- */

/* Windows 95 Start Menu */
.theme-win95 .start-menu {
  background: #c0c0c0 !important;
  border: 2px solid !important;
  border-color: #ffffff #000000 #000000 #ffffff !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 #000000 !important;
  color: #000000 !important;
  width: 240px !important;
}

.win95-start-wrapper {
  display: flex;
  background: #c0c0c0;
}

.win95-sidebar-banner {
  background: linear-gradient(to top, #000080, #1084d0);
  width: 32px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 4px;
  color: #ffffff;
  font-family: 'MS Sans Serif', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
}

.win95-sidebar-banner b { color: #ffffff; margin-top: 4px; }

.win95-menu-items {
  flex: 1;
  padding: 4px;
}

/* Windows XP Luna Start Menu */
.theme-winxp .start-menu {
  background: #ffffff !important;
  border: 2px solid #0053e1 !important;
  border-radius: 8px 8px 0 0 !important;
  width: 380px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

.xp-start-header {
  background: linear-gradient(to bottom, #2272e7, #0053e1);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid #e5a010;
}

.xp-avatar {
  width: 36px;
  height: 36px;
  background: #e5a010;
  border: 2px solid #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.xp-start-body {
  display: flex;
  background: #ffffff;
}

.xp-left-column {
  flex: 1;
  background: #ffffff;
  padding: 6px;
}

.xp-right-column {
  flex: 1;
  background: #d3e5fa;
  border-left: 1px solid #95bdee;
  padding: 6px;
}

.xp-start-footer {
  background: linear-gradient(to bottom, #2f66b8, #0053e1);
  padding: 8px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #1048b0;
}

/* XP's footer items are white on its blue (the theme makes the menu's other items black) */
.theme-winxp .xp-start-footer .start-menu-item { color: #ffffff; }

/* Windows 8 Metro Tile Menu */
.theme-win8 .start-menu {
  background: #000000 !important;
  border: 2px solid #008a00 !important;
  border-radius: 0 !important;
  width: 340px !important;
}

.win8-metro-start {
  padding: 16px;
  color: #ffffff;
}

.metro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.metro-title {
  font-size: 22px;
  font-weight: 300;
}

/* Windows 8 put the name at the top right of Start, beside its picture. */
.metro-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  font-size: 13px;
  min-width: 0;
}
.metro-user-name { overflow-wrap: anywhere; text-align: right; }
.metro-user-avatar { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; background: #2d89ef; font-size: 18px; }

.metro-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metro-tile {
  padding: 14px;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  border-radius: 0;
  transition: transform 0.1s;
}

.metro-tile:hover { transform: scale(1.03); }
.metro-tile.green { background: #008a00; }
.metro-tile.blue { background: #2d89ef; }
.metro-tile.purple { background: #7e3878; }
.metro-tile.orange { background: #da532c; }
.metro-tile.teal { background: #00aba9; }
.metro-tile.magenta { background: #ff00a0; }
.metro-tile.darkblue { background: #2b5797; }
.metro-tile.red { background: #ee1111; }

/* Mac Apple Menu Bar */
.mac-apple-menu {
  padding: 6px;
  background: #e8e8e8;
  color: #000000;
}

.theme-mac-sonoma .mac-apple-menu {
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
}

.start-menu-divider {
  height: 1px;
  background: rgba(128,128,128,0.3);
  margin: 4px 0;
}

/* No theme's start menu is wider than the screen (XP's is 380px). */
.start-menu {
  max-width: calc(100vw - 20px);
}
