/* ============================================================
   Windows 95 Theme — Vintage Computer Repair Website
   ============================================================ */

:root {
  --bg:          #c0c0c0;
  --bg-light:    #dfdfdf;
  --bg-white:    #ffffff;
  --bg-mid:      #808080;
  --bg-dark:     #404040;
  --bg-black:    #000000;
  --titlebar:    #000080;
  --titlebar2:   #1084d0;
  --titlebar-t:  #ffffff;
  --desktop:     #008080;
  --text:        #000000;
  --link:        #0000cc;
  --sel-bg:      #000080;
  --sel-text:    #ffffff;
  --taskbar-h:   34px;
}

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

html { height: 100%; }

body {
  font-family: "MS Sans Serif", "Microsoft Sans Serif", Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: var(--text);
  background: var(--desktop);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =====================  TASKBAR  ===================== */
.taskbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--taskbar-h);
  background: var(--bg);
  border-top: 2px solid var(--bg-white);
  box-shadow: 0 -1px 0 var(--bg-mid);
  display: flex;
  align-items: center;
  padding: 2px 4px;
  gap: 4px;
  z-index: 9000;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 6px;
  height: 26px;
  background: var(--bg);
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light), inset -1px -1px 0 var(--bg-black);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  user-select: none;
  white-space: nowrap;
}
.start-btn:active, .start-btn.pressed {
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  box-shadow: inset 1px 1px 0 var(--bg-black), inset -1px -1px 0 var(--bg-light);
}
.start-btn .win-logo { font-size: 16px; line-height: 1; }

.taskbar-sep {
  width: 1px;
  height: 22px;
  border-left: 1px solid var(--bg-mid);
  border-right: 1px solid var(--bg-white);
}

.taskbar-tasks { flex: 1; display: flex; gap: 3px; overflow: hidden; }

.taskbar-task {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  height: 26px;
  background: var(--bg);
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light), inset -1px -1px 0 var(--bg-black);
  font-size: 11px;
  font-family: inherit;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.taskbar-task.active {
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  box-shadow: inset 1px 1px 0 var(--bg-black), inset -1px -1px 0 var(--bg-light);
  background: var(--bg-light);
}

.taskbar-clock {
  padding: 3px 8px;
  height: 26px;
  border: 1px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  font-size: 11px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* =====================  START MENU  ===================== */
.start-menu {
  position: fixed;
  bottom: var(--taskbar-h);
  left: 0;
  width: 210px;
  background: var(--bg);
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: 2px 2px 0 var(--bg-black);
  z-index: 9100;
  display: none;
}
.start-menu.open { display: flex; }

.sm-sidebar {
  background: linear-gradient(to top, var(--titlebar), var(--bg-mid));
  color: var(--bg-white);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 8px 4px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 3px;
  user-select: none;
  min-height: 200px;
  display: flex;
  align-items: center;
}

.sm-items { flex: 1; padding: 2px 0; }

.sm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.sm-item:hover { background: var(--sel-bg); color: var(--sel-text); }
.sm-item .sm-icon { font-size: 18px; width: 22px; text-align: center; }
.sm-item span.label { font-size: 12px; }
.sm-item.bold .label { font-weight: bold; }

.sm-sep {
  height: 0;
  border-top: 1px solid var(--bg-mid);
  border-bottom: 1px solid var(--bg-white);
  margin: 3px 0;
}

/* =====================  DESKTOP LAYOUT  ===================== */
.desktop {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 8px calc(var(--taskbar-h) + 8px);
}

/* =====================  WINDOW  ===================== */
.window {
  background: var(--bg);
  border: 2px solid;
  border-color: var(--bg-white) var(--bg-black) var(--bg-black) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light), inset -1px -1px 0 var(--bg-mid);
  width: 100%;
  max-width: 920px;
}

.win-titlebar {
  background: linear-gradient(to right, var(--titlebar), var(--titlebar2));
  color: var(--titlebar-t);
  padding: 3px 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.win-titlebar .t-icon { font-size: 14px; }
.win-titlebar .t-text { flex: 1; font-size: 12px; font-weight: bold; }
.win-titlebar .t-text small { font-weight: normal; font-size: 11px; opacity: .85; }

.win-controls { display: flex; gap: 2px; }
.wc-btn {
  width: 16px;
  height: 14px;
  background: var(--bg);
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  color: var(--text);
  cursor: default;
  font-family: "Marlett", "Wingdings", serif;
  line-height: 1;
}
.wc-btn:active {
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  box-shadow: inset -1px -1px 0 var(--bg-light);
}

.win-menubar {
  display: flex;
  padding: 1px 4px;
  border-bottom: 1px solid var(--bg-mid);
  box-shadow: 0 1px 0 var(--bg-white);
  flex-wrap: wrap;
  gap: 0;
}
.mbar-item {
  padding: 3px 8px;
  font-size: 12px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  display: block;
}
.mbar-item:hover, .mbar-item.active {
  background: var(--sel-bg);
  color: var(--sel-text);
}

.win-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  border-bottom: 1px solid var(--bg-mid);
  box-shadow: 0 1px 0 var(--bg-white);
  flex-wrap: wrap;
}
.tb-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid transparent;
  font-size: 11px;
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.tb-btn:hover {
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light);
}
.tb-btn:active {
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
}
.tb-btn .tb-icon { font-size: 16px; line-height: 1; }
.tb-sep {
  width: 1px;
  height: 20px;
  border-left: 1px solid var(--bg-mid);
  border-right: 1px solid var(--bg-white);
  margin: 0 2px;
}

.win-content { padding: 12px; }

.win-statusbar {
  display: flex;
  gap: 4px;
  padding: 3px 6px;
  border-top: 2px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
}
.sb-cell {
  border: 1px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  padding: 1px 8px;
  font-size: 11px;
}

/* =====================  BUTTONS  ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 16px;
  min-width: 75px;
  background: var(--bg);
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light), inset -1px -1px 0 var(--bg-black);
  font-family: inherit;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--bg-light); }
.btn:active {
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  box-shadow: inset 1px 1px 0 var(--bg-black), inset -1px -1px 0 var(--bg-light);
}
.btn-primary {
  font-weight: bold;
  border: 2px solid var(--bg-black);
  box-shadow: inset 1px 1px 0 var(--bg-white), inset -1px -1px 0 var(--bg-mid);
}

/* =====================  FORM ELEMENTS  ===================== */
input[type="text"], input[type="email"], textarea, select {
  background: var(--bg-white);
  border: 1px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  box-shadow: inset 1px 1px 0 var(--bg-black);
  padding: 3px 5px;
  font-family: inherit;
  font-size: 12px;
  color: var(--text);
  outline: none;
}
label { font-size: 12px; display: block; margin-bottom: 3px; }
.field { margin-bottom: 10px; }

/* =====================  PANELS  ===================== */
.panel-raised {
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light);
  background: var(--bg);
  padding: 8px;
  margin-bottom: 10px;
}
.panel-sunken {
  border: 1px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  box-shadow: inset 1px 1px 0 var(--bg-black);
  background: var(--bg-white);
  padding: 8px;
  margin-bottom: 10px;
}
.groupbox {
  border: 1px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  padding: 16px 10px 10px;
  margin-bottom: 12px;
  position: relative;
}
.groupbox-title {
  position: absolute;
  top: -8px;
  left: 8px;
  background: var(--bg);
  padding: 0 4px;
  font-size: 12px;
  font-weight: bold;
}

/* =====================  COMPUTER CARDS (Gallery)  ===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.comp-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light);
  transition: none;
}
.comp-card:hover { border-color: var(--bg-black) var(--bg-light) var(--bg-light) var(--bg-black); }
.comp-card:hover .card-title-bar { background: linear-gradient(to right, var(--titlebar), var(--titlebar2)); }
.card-title-bar {
  background: var(--bg-mid);
  color: var(--bg-white);
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
}
.card-img {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: var(--bg-dark);
  border-top: 1px solid var(--bg-mid);
  border-bottom: 1px solid var(--bg-mid);
}
.card-body { padding: 6px 8px; }
.card-body h3 { font-size: 12px; font-weight: bold; margin-bottom: 2px; }
.card-body p { font-size: 11px; color: var(--bg-dark); margin: 0; }
.card-tag {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 6px;
  font-size: 10px;
  background: var(--titlebar);
  color: var(--bg-white);
}

/* =====================  SALE CARDS  ===================== */
.sale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.sale-card {
  background: var(--bg);
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light);
}
.sale-titlebar {
  background: linear-gradient(to right, var(--titlebar), var(--titlebar2));
  color: var(--bg-white);
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sale-body { padding: 8px; }
.sale-img {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--bg-dark);
  margin-bottom: 8px;
}
.price {
  font-size: 16px;
  font-weight: bold;
  color: #008000;
  margin-bottom: 4px;
}
.sale-detail { font-size: 11px; color: var(--bg-dark); margin-bottom: 2px; }

/* =====================  SERVICES  ===================== */
.svc-table { width: 100%; border-collapse: collapse; }
.svc-table th {
  background: var(--titlebar);
  color: var(--bg-white);
  padding: 4px 10px;
  text-align: left;
  font-size: 12px;
  font-weight: bold;
}
.svc-table td {
  padding: 5px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--bg-mid);
}
.svc-table tr:last-child td { border-bottom: none; }
.svc-table tr:hover td { background: var(--sel-bg); color: var(--sel-text); }
.svc-table .price-col { text-align: right; font-weight: bold; white-space: nowrap; }

/* =====================  ABOUT  ===================== */
.about-layout { display: flex; gap: 12px; flex-wrap: wrap; }
.about-photo {
  width: 150px;
  height: 150px;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: var(--bg-dark);
  border: 1px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
}
.about-text { flex: 1; min-width: 200px; }

/* =====================  SKILL BARS  ===================== */
.skill-row { margin-bottom: 8px; }
.skill-label { font-size: 11px; margin-bottom: 2px; }
.skill-bar {
  height: 16px;
  background: var(--bg-white);
  border: 1px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  box-shadow: inset 1px 1px 0 var(--bg-black);
}
.skill-fill {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--titlebar) 0, var(--titlebar) 6px,
    var(--titlebar2) 6px, var(--titlebar2) 12px
  );
}

/* =====================  COMPUTER DETAIL  ===================== */
.detail-layout { display: flex; gap: 14px; flex-wrap: wrap; }
.detail-img-box {
  width: 200px;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  height: 180px;
  background: var(--bg-dark);
  border: 1px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
}
.detail-info { flex: 1; min-width: 200px; }
.spec-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.spec-table td { padding: 3px 6px; border-bottom: 1px solid var(--bg-light); }
.spec-table td:first-child { font-weight: bold; width: 40%; background: var(--bg-light); }

.repair-log {
  background: var(--bg-white);
  border: 1px solid;
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  box-shadow: inset 1px 1px 0 var(--bg-black);
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
}
.repair-log p { margin-bottom: 6px; }
.repair-log p:last-child { margin-bottom: 0; }

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: bold;
  color: var(--bg-white);
}
.status-working { background: #008000; }
.status-display { background: var(--titlebar); }
.status-sold { background: var(--bg-mid); }

/* =====================  HERO  ===================== */
.hero-banner {
  background: var(--titlebar);
  color: var(--bg-white);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-icon { font-size: 48px; }
.hero-title { font-size: 20px; font-weight: bold; margin-bottom: 4px; }
.hero-sub { font-size: 12px; opacity: .85; }

.quick-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light);
  font-size: 11px;
  text-align: center;
  cursor: pointer;
}
.quick-link:hover {
  background: var(--bg-light);
  border-color: var(--bg-black) var(--bg-light) var(--bg-light) var(--bg-black);
}
.quick-link:active {
  border-color: var(--bg-mid) var(--bg-white) var(--bg-white) var(--bg-mid);
  box-shadow: inset 1px 1px 0 var(--bg-black);
}
.quick-link .ql-icon { font-size: 32px; line-height: 1; }
.quick-link .ql-label { font-weight: bold; }

/* =====================  CONTACT  ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--bg-light); }
.contact-row:last-child { border-bottom: none; }
.contact-icon { font-size: 20px; width: 28px; text-align: center; }
.contact-label { font-weight: bold; font-size: 11px; }
.contact-value { font-size: 12px; }
.contact-value a { color: var(--link); }

/* =====================  TYPOGRAPHY  ===================== */
h1 { font-size: 16px; font-weight: bold; margin-bottom: 10px; }
h2 { font-size: 13px; font-weight: bold; margin-bottom: 8px; }
h3 { font-size: 12px; font-weight: bold; margin-bottom: 5px; }
p { font-size: 12px; line-height: 1.55; margin-bottom: 8px; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); }
hr { border: none; border-top: 1px solid var(--bg-mid); box-shadow: 0 1px 0 var(--bg-white); margin: 10px 0; }
ul { padding-left: 18px; font-size: 12px; line-height: 1.8; }
.text-muted { color: var(--bg-dark); }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }

/* =====================  SCROLLBAR (Chromium)  ===================== */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--bg); border-left: 1px solid var(--bg-mid); }
::-webkit-scrollbar-thumb {
  background: var(--bg);
  border: 1px solid;
  border-color: var(--bg-white) var(--bg-mid) var(--bg-mid) var(--bg-white);
  box-shadow: inset 1px 1px 0 var(--bg-light);
}

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 600px) {
  .card-grid, .sale-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-img-box { width: 100%; min-width: unset; height: 140px; }
  .about-photo { width: 100px; height: 100px; min-width: 100px; font-size: 48px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .card-grid, .sale-grid { grid-template-columns: 1fr; }
}
