/* =========================================================================
 * Windows 95 — an optional, per-visitor skin for the Member Home Page, a
 * sibling to the other 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 Windows 95/98's look (1995-2001): the same flat teal desktop as
 * the earlier Windows skin, but with its defining upgrade -- a real title
 * bar close/minimize/maximize trio at the top-right, each drawn with its
 * own glyph, a gradient (not flat) navy title bar, and "Tahoma"-era chunky
 * bevel chrome throughout. Every rule here is original CSS; nothing is
 * traced from or bundles any Microsoft asset.
 *
 * Scope: only takes effect under body.theme-win95, so it never touches the
 * default design or any other theme unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background */
body.theme-win95 {
  background: #008080;
}

/* --- Windows 95 switcher dropdown --- */
body.theme-win95 .bb-theme-toggle-label {
  font-family: Tahoma, 'MS Sans Serif', Geneva, sans-serif;
  font-size: 12px;
  color: #fff;
}
body.theme-win95 .bb-theme-toggle {
  font-family: Tahoma, 'MS Sans Serif', Geneva, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #000;
  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;
  padding: 6px 14px;
}
body.theme-win95 .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-win95 .bb-theme-toggle option {
  color: #000;
  background: #fff;
}

/* @section Window chrome for the four cards + the Feed box */
body.theme-win95 .profile-card,
body.theme-win95 .certifications-card,
body.theme-win95 .conferences-card,
body.theme-win95 .activity-card,
body.theme-win95 .elsewhere-card,
body.theme-win95 #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: Tahoma, 'MS Sans Serif', Geneva, sans-serif;
  color: #000;
}

/* The title bar: a gradient navy-to-blue fill (95's titlebars weren't
   flat the way 3.0's were), left-aligned bold white text, and -- the big
   upgrade this skin recreates -- a real three-button cluster at the
   right, each a small bevelled square with its own glyph via
   ::before (a dash, a box, an X), rather than 3.0's plain unlabeled pair. */
body.theme-win95 .win-titlebar {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  margin: 2px;
  padding: 0 3px;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
}
body.theme-win95 .win-close,
body.theme-win95 .win-minimize,
body.theme-win95 .win-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #000;
  font-family: Tahoma, 'MS Sans Serif', Geneva, sans-serif;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  color: #000;
}
body.theme-win95 .win-minimize {
  order: 2;
}
body.theme-win95 .win-minimize::before {
  content: '_';
  transform: translateY(3px);
}
body.theme-win95 .win-zoom {
  order: 3;
}
body.theme-win95 .win-zoom::before {
  content: '\25A1';
  font-size: 8px;
}
body.theme-win95 .win-close {
  order: 4;
}
body.theme-win95 .win-close::before {
  content: '\2715';
  font-size: 9px;
}
body.theme-win95 .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;
  padding-left: 2px;
}

/* Push each card's own content below the title bar. */
body.theme-win95 .profile-card,
body.theme-win95 .certifications-card,
body.theme-win95 .conferences-card,
body.theme-win95 .activity-card,
body.theme-win95 .elsewhere-card {
  padding: 0 0 var(--ds-space-md);
}
body.theme-win95 .profile-card > *:not(.win-titlebar),
body.theme-win95 .certifications-card > *:not(.win-titlebar),
body.theme-win95 .conferences-card > *:not(.win-titlebar),
body.theme-win95 .activity-card > *:not(.win-titlebar),
body.theme-win95 .elsewhere-card > *:not(.win-titlebar) {
  margin-left: var(--ds-space-md);
  margin-right: var(--ds-space-md);
}
body.theme-win95 .profile-card-head,
body.theme-win95 .activity-stats,
body.theme-win95 .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-win95 .certifications-heading,
body.theme-win95 .activity-heading,
body.theme-win95 .member-feed-row-heading,
body.theme-win95 .member-feed-heading {
  display: none;
}

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

/* @section Bevelled grey controls, same 3D push-button look as the window
   chrome; "active"/selected inverts to the pressed (sunken) bevel. */
body.theme-win95 .atechs-btn,
body.theme-win95 .feed-tag,
body.theme-win95 .feed-filter,
body.theme-win95 .cert-since-badge,
body.theme-win95 .feed-item-longform-badge,
body.theme-win95 .activity-stat,
body.theme-win95 .profile-status-item,
body.theme-win95 .atechs-tag {
  background: #c0c0c0;
  color: #000;
  border-radius: 0;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #000;
}
body.theme-win95 .feed-filter.is-active {
  background: #c0c0c0;
  color: #000;
  box-shadow:
    inset 1px 1px 0 #000,
    inset -1px -1px 0 #fff;
}
body.theme-win95 .elsewhere-link,
body.theme-win95 .elsewhere-label,
body.theme-win95 .elsewhere-value,
body.theme-win95 .feed-item-title a,
body.theme-win95 .cert-since-value,
body.theme-win95 .activity-value {
  color: #000080 !important;
}

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