/* =========================================================================
 * Windows 1.0/2.0/3.0 — an optional, per-visitor skin for the Member Home
 * Page, a sibling to the seven Mac/BeOS skins already in this switcher (see
 * theme-classic.css, which this file depends on for the shared switcher CSS
 * and the .win-zoom/.win-minimize base rules).
 *
 * Recreates early Windows (1985-1992): the iconic flat teal desktop,
 * chunky grey "3D" bevel chrome (introduced properly in 3.0's Program
 * Manager look and used here as the representative visual for the whole
 * 1.0-3.0 span, since 1.0/2.0 were flatter still), a solid navy title bar
 * with left-aligned white bold text (Windows has always set its title text
 * left, unlike the Mac themes in this switcher, which center it), and the
 * bitmap-era "MS Sans Serif" font stack. Every rule here is original CSS --
 * nothing is traced from or bundles any Microsoft asset.
 *
 * Scope: only takes effect under body.theme-win123, so it never touches the
 * default design or any other theme unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background
   The famous flat teal (#008080) Windows desktop color, long before photo
   wallpapers existed. */
body.theme-win123 {
  background: #008080;
}

/* --- Windows 1.0/2.0/3.0 switcher dropdown --- */
body.theme-win123 .bb-theme-toggle-label {
  font-family: 'MS Sans Serif', Tahoma, Geneva, sans-serif;
  font-size: 12px;
  color: #fff;
}
body.theme-win123 .bb-theme-toggle {
  font-family: 'MS Sans Serif', Tahoma, Geneva, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #000;
  background: #c0c0c0;
  border: none;
  border-radius: 0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #000,
    inset 2px 2px 0 #dfdfdf,
    inset -2px -2px 0 #808080;
  padding: 6px 14px;
}
body.theme-win123 .bb-theme-toggle:active {
  box-shadow:
    inset 1px 1px 0 #000,
    inset -1px -1px 0 #fff,
    inset 2px 2px 0 #808080,
    inset -2px -2px 0 #dfdfdf;
}
body.theme-win123 .bb-theme-toggle option {
  color: #000;
  background: #fff;
}

/* @section Window chrome for the four cards + the Feed box
   Grey, square-cornered, with the classic raised 3D bevel (light top/left,
   dark bottom/right) standing in for a border -- no soft shadow, since
   this era's windows read as solid and opaque rather than floating. */
body.theme-win123 .profile-card,
body.theme-win123 .certifications-card,
body.theme-win123 .conferences-card,
body.theme-win123 .activity-card,
body.theme-win123 .elsewhere-card,
body.theme-win123 #member-feed {
  position: relative;
  background: #c0c0c0;
  border-radius: 0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #000,
    inset 2px 2px 0 #dfdfdf,
    inset -2px -2px 0 #808080;
  overflow: hidden;
  font-family: 'MS Sans Serif', Tahoma, Geneva, sans-serif;
  color: #000;
}

/* The title bar: solid navy blue, left-aligned bold white text -- Windows
   title bars have never centered their text, the one consistent
   difference from every Mac-era theme in this switcher. Minimize/zoom
   sit at the right as two small bevelled boxes (3.0's Program Manager
   convention); there was no close box on the title bar itself yet, so
   .win-close stays hidden (the shared default from theme-classic.css). */
body.theme-win123 .win-titlebar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  margin: 2px;
  padding: 0 4px;
  background: #000080;
}
body.theme-win123 .win-minimize,
body.theme-win123 .win-zoom {
  display: block;
  flex: none;
  width: 14px;
  height: 12px;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #000;
}
body.theme-win123 .win-minimize {
  order: 2;
}
body.theme-win123 .win-zoom {
  order: 3;
}
body.theme-win123 .win-title {
  display: block;
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  margin-right: auto;
}

/* Push each card's own content below the title bar. */
body.theme-win123 .profile-card,
body.theme-win123 .certifications-card,
body.theme-win123 .conferences-card,
body.theme-win123 .activity-card,
body.theme-win123 .elsewhere-card {
  padding: 0 0 var(--ds-space-md);
}
body.theme-win123 .profile-card > *:not(.win-titlebar),
body.theme-win123 .certifications-card > *:not(.win-titlebar),
body.theme-win123 .conferences-card > *:not(.win-titlebar),
body.theme-win123 .activity-card > *:not(.win-titlebar),
body.theme-win123 .elsewhere-card > *:not(.win-titlebar) {
  margin-left: var(--ds-space-md);
  margin-right: var(--ds-space-md);
}
body.theme-win123 .profile-card-head,
body.theme-win123 .activity-stats,
body.theme-win123 .certifications-card-head {
  margin-top: var(--ds-space-md);
}

/* The in-card headings are redundant once the title bar already says the
   same thing (same reasoning as every other theme in this switcher). */
body.theme-win123 .certifications-heading,
body.theme-win123 .activity-heading,
body.theme-win123 .member-feed-row-heading,
body.theme-win123 .member-feed-heading {
  display: none;
}

body.theme-win123 #member-feed > *:not(.win-titlebar) {
  padding-left: var(--ds-space-md);
  padding-right: var(--ds-space-md);
}
body.theme-win123 #member-feed .feed-filters {
  margin-top: var(--ds-space-md);
}
body.theme-win123 #member-feed .feed-list {
  padding-bottom: var(--ds-space-md);
}

/* @section Bevelled grey controls
   Buttons, tags, badges and pills get the same raised 3D bevel as the
   window chrome -- the one consistent "control" look this whole era
   shared, buttons and windows alike. Anything "active"/selected inverts
   to the pressed (sunken) bevel rather than changing color, since this
   era had no per-widget accent colors to reach for. */
body.theme-win123 .atechs-btn,
body.theme-win123 .feed-tag,
body.theme-win123 .feed-filter,
body.theme-win123 .cert-since-badge,
body.theme-win123 .feed-item-longform-badge,
body.theme-win123 .activity-stat,
body.theme-win123 .profile-status-item,
body.theme-win123 .atechs-tag {
  background: #c0c0c0;
  color: #000;
  border-radius: 0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #000;
}
body.theme-win123 .feed-filter.is-active {
  background: #c0c0c0;
  color: #000;
  box-shadow:
    inset 1px 1px 0 #000,
    inset -1px -1px 0 #fff;
}
body.theme-win123 .elsewhere-link,
body.theme-win123 .elsewhere-label,
body.theme-win123 .elsewhere-value,
body.theme-win123 .feed-item-title a,
body.theme-win123 .cert-since-value,
body.theme-win123 .activity-value {
  color: #000080 !important;
}

/* @section Feed items */
body.theme-win123 .feed-item {
  background: #c0c0c0;
  border-radius: 0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #000;
  font-family: 'MS Sans Serif', Tahoma, Geneva, sans-serif;
}
body.theme-win123 .feed-item + .feed-item {
  margin-top: var(--ds-space-sm);
}
