/* =========================================================================
   V7b · WINDOWS XP (Luna theme on Bliss wallpaper)
   Single big Control-Panel-style window with category cards.
   Bliss-gradient desktop, blue gradient title bar with rounded top corners,
   green Start button. Tahoma + Trebuchet MS.
   ========================================================================= */

:root {
  --luna-blue-1:   #0A2390;
  --luna-blue-2:   #2161E5;
  --luna-blue-3:   #3A93FF;
  --luna-blue-mid: #1062C7;
  --beige:         #ECE9D8;
  --rail-1:        #7DA5E2;
  --rail-2:        #3565CB;
  --panel-hd-1:    #FEFBD0;
  --panel-hd-2:    #E5D29E;
  --panel-bg-1:    #D7E4FA;
  --panel-bg-2:    #BCC8E8;
  --start-1:       #5DAC5D;
  --start-2:       #3C813A;
  --start-3:       #297828;
  --tray-1:        #1063C6;
  --tray-2:        #2576CD;
  --task-1:        #3C81F3;
  --task-2:        #1751C5;
  --link:          #003DDD;
  --link-hover:    #FF6A00;

  --sys: Tahoma, Verdana, "Lucida Grande", Geneva, sans-serif;
  --display: "Trebuchet MS", Tahoma, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--sys);
  font-size: 11px;
  color: #000000;
  cursor: default;
  min-height: 100vh;
  padding: 60px 32px 60px;
  position: relative;
  overflow-x: hidden;
}

/* ----- Bliss wallpaper approximation (sky + hill gradient) ----- */
body.bliss {
  background:
    radial-gradient(140% 70% at 50% 90%, #B9D979 0%, #94C849 30%, #4F8030 65%, #2E4F1B 100%),
    linear-gradient(180deg, #5B9BD5 0%, #93C7E8 35%, #DDEEF7 55%, transparent 70%);
  background-blend-mode: normal, screen;
  background-attachment: fixed;
}
/* a soft white cloud streak */
body.bliss::before {
  content: "";
  position: fixed;
  top: 18%; left: 12%;
  width: 50vw; height: 14vh;
  background: radial-gradient(ellipse, rgba(255,255,255,0.45), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
body.bliss::after {
  content: "";
  position: fixed;
  top: 8%; right: 8%;
  width: 30vw; height: 10vh;
  background: radial-gradient(ellipse, rgba(255,255,255,0.35), transparent 65%);
  filter: blur(25px);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
p { margin: 0; }
h1, h2 { margin: 0; }
.dim { color: #5A5A5A; }

/* =========================================================================
   XP WINDOW SHELL
   ========================================================================= */

.xp-win {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
  background: var(--beige);
  border: 1px solid var(--luna-blue-1);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* TITLE BAR */
.xp-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 6px 0 8px;
  background:
    linear-gradient(180deg,
      #0A56CC 0%,
      #2683E6 8%,
      #1A6BE0 50%,
      #0954C8 90%,
      #002E89 100%);
  border-top: 1px solid #FFFFFF;
  color: #FFFFFF;
  font-family: var(--display);
  font-weight: bold;
  font-size: 13px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}
.xp-title__l { display: flex; align-items: center; gap: 6px; }
.xp-title__ico { width: 16px; height: 16px; display: inline-flex; }
.xp-title__r { display: flex; gap: 1px; }

.xp-tb {
  width: 22px; height: 22px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.5);
  font-family: var(--sys);
  font-size: 14px;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background:
    linear-gradient(180deg, #5A9CF5 0%, #2A6FD0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  line-height: 18px;
  padding: 0;
}
.xp-tb:hover { background: linear-gradient(180deg, #7AB6FF 0%, #4A8FE5 100%); }
.xp-tb--x { background: linear-gradient(180deg, #E47860 0%, #B33020 100%); }
.xp-tb--x:hover { background: linear-gradient(180deg, #FF9070 0%, #C84030 100%); }

/* MENU BAR */
.xp-menu {
  display: flex;
  gap: 0;
  padding: 2px 4px;
  background: var(--beige);
  font-size: 11px;
  border-bottom: 1px solid #B0AFA0;
}
.xp-menu span {
  padding: 2px 8px;
  cursor: default;
  border-radius: 3px;
}
.xp-menu span:hover { background: #B6BDDB; color: #FFFFFF; }
.xp-menu u { text-decoration: underline; }

/* TOOLBAR */
.xp-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: linear-gradient(180deg, #FAF9F4 0%, #DEDAC4 100%);
  border-bottom: 1px solid #969278;
}
.xp-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sys);
  font-size: 11px;
  color: #000000;
  cursor: pointer;
}
.xp-tool:hover {
  background: linear-gradient(180deg, #FFE9A8 0%, #FFC966 100%);
  border-color: #C09020;
}
.xp-tool--back { font-weight: bold; }
.xp-tool-sep {
  width: 1px;
  height: 20px;
  background: #B0AFA0;
  margin: 0 4px;
}
.xp-address {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.xp-address label { font-size: 11px; padding: 0 4px; color: #5A5A5A; }
.xp-addr-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #FFFFFF;
  border: 1px solid #818175;
  border-radius: 0;
  font-size: 11px;
  color: #000000;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xp-go {
  padding: 3px 10px;
  background: linear-gradient(180deg, #F8F6E0 0%, #E0DCB0 100%);
  border: 1px solid #A09078;
  border-radius: 3px;
  font-size: 11px;
  cursor: pointer;
}

/* BODY: rail + main */
.xp-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

/* LEFT RAIL */
.xp-rail {
  background: linear-gradient(180deg, var(--rail-1) 0%, var(--rail-2) 100%);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
}

.panel {
  background: linear-gradient(180deg, var(--panel-bg-1) 0%, var(--panel-bg-2) 100%);
  border: 1px solid #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}
.panel__hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: linear-gradient(180deg, var(--panel-hd-1) 0%, var(--panel-hd-2) 100%);
  font-family: var(--display);
  font-weight: bold;
  font-size: 11px;
  color: #1062C7;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.panel__chev { color: #4A82C8; font-size: 9px; }
.panel__body {
  list-style: none;
  margin: 0;
  padding: 6px 8px;
  font-size: 11px;
}
.panel__body li {
  padding: 2px 0;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel__body--places li { gap: 8px; }
.pico {
  width: 14px; height: 14px;
  display: inline-block;
  flex-shrink: 0;
}
.pico--folder { background: linear-gradient(180deg, #FFE680 0%, #FFC020 100%); border: 1px solid #B07000; border-radius: 1px; }
.pico--computer { background: linear-gradient(180deg, #FFFFFF, #C0C8D8); border: 1px solid #4A4A4A; border-radius: 1px; }
.pico--web { background: radial-gradient(circle, #6FB7F0, #1062C7); border-radius: 50%; }

.panel--details .panel__body p { margin-bottom: 2px; font-size: 11px; }

/* RIGHT MAIN */
.xp-main {
  background: #FFFFFF;
  padding: 16px 22px 24px;
}
.xp-main__hd { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #E0E0E0; }
.xp-main__kicker {
  font-family: var(--sys);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: #1062C7;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.xp-main__title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: normal;
  color: #1062C7;
  line-height: 1.1;
}

/* CATEGORY GRID */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.cat {
  display: flex;
  gap: 14px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  align-items: flex-start;
  color: #000000;
  cursor: pointer;
}
.cat:hover {
  background: linear-gradient(180deg, #F7F9FE 0%, #E1ECFB 100%);
  border-color: #B5C8E0;
  text-decoration: none;
}
.cat__icon { width: 48px; height: 48px; flex-shrink: 0; }
.cat__icon svg { width: 100%; height: 100%; }
.cat__body h2 {
  font-family: var(--display);
  font-weight: normal;
  font-size: 14px;
  color: #1062C7;
  margin-bottom: 4px;
  text-decoration: underline;
}
.cat:hover .cat__body h2 { color: var(--link-hover); }
.cat__body p { font-size: 11px; line-height: 1.45; color: #303030; }

.xp-tip {
  margin-top: 22px;
  padding: 8px 12px;
  background: #FFFCE0;
  border: 1px solid #E8C880;
  border-radius: 4px;
  font-size: 11px;
  color: #5A4520;
  display: flex;
  gap: 10px;
  align-items: center;
}
.xp-tip__b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FBA127;
  color: #FFFFFF;
  font-weight: bold;
  font-style: italic;
  flex-shrink: 0;
}

/* STATUS BAR */
.xp-status {
  display: flex;
  font-size: 11px;
  padding: 2px 4px;
  background: var(--beige);
  border-top: 1px solid #969278;
  gap: 0;
}
.xp-status span {
  flex: 1;
  padding: 1px 6px;
  border-right: 1px solid #B0AFA0;
}
.xp-status span:last-child { border-right: 0; }

/* RESPONSIVE */
@media (max-width: 760px) {
  body { padding: 32px 12px 70px; }
  .xp-body { grid-template-columns: 1fr; }
  .xp-rail { flex-direction: column; }
  .cat-grid { grid-template-columns: 1fr; }
  .xp-title__t { font-size: 12px; }
  .xp-address label { display: none; }
}

/* =========================================================================
   BALLOON NOTIFICATION
   ========================================================================= */

.balloon {
  position: fixed;
  bottom: 50px;
  right: 22px;
  width: 280px;
  background: #FFFCE0;
  border: 1px solid #5A4520;
  border-radius: 4px;
  padding: 10px 12px 12px;
  font-size: 11px;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  animation: balloon-in 280ms ease-out;
}
.balloon[hidden] { display: none; }
.balloon::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 30px;
  width: 0; height: 0;
  border: 10px solid transparent;
  border-top-color: #FFFCE0;
  border-bottom: 0;
  filter: drop-shadow(0 1px 0 #5A4520);
}
.balloon__x {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  font-size: 13px;
  line-height: 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 2px;
}
.balloon__x:hover { border-color: #888; background: #F0E8B0; }
.balloon__t {
  font-weight: bold;
  margin-bottom: 4px;
  color: #5A4520;
  display: flex;
  align-items: center;
  gap: 6px;
}
.balloon__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FBA127;
  color: #FFFFFF;
  font-weight: bold;
  font-style: italic;
}
.balloon__b { color: #303030; line-height: 1.4; }

@keyframes balloon-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* =========================================================================
   TASKBAR (Luna blue → green Start)
   ========================================================================= */

.xp-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background:
    linear-gradient(180deg,
      #1F6BE0 0%,
      #225FCA 5%,
      #2076E0 20%,
      #1A65D2 50%,
      #1450B8 95%,
      #0A2E80 100%);
  display: flex;
  align-items: stretch;
  gap: 0;
  z-index: 99;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.3);
}

.xp-start {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px 0 8px;
  background:
    linear-gradient(180deg,
      #5DAC5D 0%,
      #4D9F4D 8%,
      #3C813A 50%,
      #297828 95%,
      #1A5A1A 100%);
  border: 0;
  border-radius: 0 14px 14px 0;
  color: #FFFFFF;
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.25);
  height: 100%;
  position: relative;
  left: -2px;
}
.xp-start:hover { filter: brightness(1.10); }
.xp-start__flag { width: 22px; height: 22px; display: inline-flex; }

.xp-task-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  overflow: hidden;
}
.xp-task {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  max-width: 220px;
  padding: 0 10px;
  background: linear-gradient(180deg, var(--task-1) 0%, var(--task-2) 100%);
  border: 1px solid #0A4DC2;
  border-radius: 3px;
  color: #FFFFFF;
  font-family: var(--sys);
  font-size: 11px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.25);
}
.xp-task--active {
  background: linear-gradient(180deg, #1751C5 0%, #0A3FA0 100%);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.4),
    inset 0 -1px 0 rgba(255,255,255,0.15);
}
.xp-task__ico { width: 14px; height: 14px; display: inline-flex; }

.xp-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(180deg, var(--tray-1) 0%, var(--tray-2) 50%, #0A3FA0 100%);
  border-left: 1px solid #5A8AD0;
  box-shadow: inset 1px 0 0 #0A2A6C;
  color: #FFFFFF;
  font-size: 11px;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  min-width: 110px;
  justify-content: flex-end;
}
.xp-tray__ico { display: inline-flex; }
.xp-tray__time { font-family: var(--sys); }
