/* =========================================================================
 * Windows XP/Vista/7 — 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).
 *
 * One skin standing in for three releases (2001-2013) that shared a family
 * resemblance more than they differed: XP's glossy "Luna" blue title bars
 * and rounded top corners carried through largely unchanged into Vista and
 * 7, which mainly added a translucent "Aero Glass" blur to that same blue
 * chrome rather than replacing it. This skin leads with Luna's saturated
 * blue gradient and rounded top corners (the most recognizable part of all
 * three) and layers Aero's signature glass blur on top of it, so it reads
 * as the whole era rather than any one release in isolation. Every rule
 * here is original CSS; nothing is traced from or bundles any Microsoft
 * asset.
 *
 * Scope: only takes effect under body.theme-winxpvista7, so it never
 * touches the default design or any other theme unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background
   An abstracted stand-in for XP's default "Bliss" wallpaper -- blue sky
   over green hills -- without needing an actual photo asset. */
body.theme-winxpvista7 {
  background: linear-gradient(180deg, #3a7bc8 0%, #7ab9e8 42%, #bfe0a8 72%, #6ba847 100%);
}

/* --- Windows XP/Vista/7 switcher dropdown
   Luna's glossy capsule look: a blue gradient with a bright highlight
   across the top half. --- */
body.theme-winxpvista7 .bb-theme-toggle-label {
  font-family: Tahoma, 'Segoe UI', Verdana, sans-serif;
  font-size: 12px;
  color: #fff;
}
body.theme-winxpvista7 .bb-theme-toggle {
  font-family: Tahoma, 'Segoe UI', Verdana, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(180deg, #5ba3e8 0%, #2a6fc9 48%, #1a4fa0 52%, #3a7bd5 100%);
  border: 1px solid #14336b;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(10, 30, 60, 0.4);
  padding: 6px 16px;
}
body.theme-winxpvista7 .bb-theme-toggle:hover {
  background: linear-gradient(180deg, #78b9f5 0%, #3a83dd 48%, #2660b5 52%, #4f90e0 100%);
}
body.theme-winxpvista7 .bb-theme-toggle option {
  color: #000;
  background: #fff;
}

/* @section Window chrome for the four cards + the Feed box
   Rounded top corners only (XP/Vista/7 windows were square at the bottom,
   rounded at the top), a blue-tinted border, and a soft drop shadow --
   plus a touch of backdrop blur standing in for Aero Glass's translucency
   on supporting browsers. */
body.theme-winxpvista7 .profile-card,
body.theme-winxpvista7 .certifications-card,
body.theme-winxpvista7 .conferences-card,
body.theme-winxpvista7 .activity-card,
body.theme-winxpvista7 .elsewhere-card,
body.theme-winxpvista7 #member-feed {
  position: relative;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid #6f9bd1;
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 8px 20px rgba(20, 40, 80, 0.25);
  overflow: hidden;
  font-family: Tahoma, 'Segoe UI', Verdana, sans-serif;
  color: #1a1a1a;
}

/* The title bar: Luna's glossy gradient blue with a bright top highlight,
   rounded to match the window's own top corners, left-aligned bold white
   text, and the XP/Vista/7 three-button cluster -- red close, blue-grey
   minimize/maximize -- each with its own glyph. */
body.theme-winxpvista7 .win-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  margin: 0;
  padding: 0 6px;
  border-radius: 9px 9px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #5ba3e8 0%, #2a6fc9 55%, #1a4fa0 100%);
}
body.theme-winxpvista7 .win-close,
body.theme-winxpvista7 .win-minimize,
body.theme-winxpvista7 .win-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 20px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.theme-winxpvista7 .win-minimize {
  order: 2;
  margin-left: auto;
  background: linear-gradient(180deg, #e9f2fc 0%, #b9d4ef 48%, #8fb6e0 52%, #c3dcf3 100%);
  border: 1px solid #5f84ad;
  color: #1a3a5c;
}
body.theme-winxpvista7 .win-minimize::before {
  content: '_';
  transform: translateY(2px);
}
body.theme-winxpvista7 .win-zoom {
  order: 3;
  background: linear-gradient(180deg, #e9f2fc 0%, #b9d4ef 48%, #8fb6e0 52%, #c3dcf3 100%);
  border: 1px solid #5f84ad;
  color: #1a3a5c;
}
body.theme-winxpvista7 .win-zoom::before {
  content: '\25A1';
  font-size: 9px;
}
body.theme-winxpvista7 .win-close {
  order: 4;
  background: linear-gradient(180deg, #ff9d8a 0%, #e8513a 48%, #c23420 52%, #ea6650 100%);
  border: 1px solid #8a2010;
  color: #fff;
}
body.theme-winxpvista7 .win-close::before {
  content: '\2715';
}
body.theme-winxpvista7 .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;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  padding-left: 2px;
}

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

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

/* @section Glossy Luna controls
   Buttons, tags, badges and pills get the same capsule-with-top-highlight
   treatment as the switcher dropdown; anything "active"/selected goes the
   iconic XP taskbar green. */
body.theme-winxpvista7 .atechs-btn,
body.theme-winxpvista7 .feed-tag,
body.theme-winxpvista7 .feed-filter,
body.theme-winxpvista7 .cert-since-badge,
body.theme-winxpvista7 .feed-item-longform-badge,
body.theme-winxpvista7 .activity-stat,
body.theme-winxpvista7 .profile-status-item,
body.theme-winxpvista7 .atechs-tag {
  background: linear-gradient(180deg, #ffffff 0%, #e4edf8 48%, #c7d9ee 52%, #e4edf8 100%);
  color: #1a3a5c;
  border: 1px solid #8fb0d4;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
body.theme-winxpvista7 .feed-filter.is-active {
  background: linear-gradient(180deg, #a6e079 0%, #5fa933 48%, #3f7f1e 52%, #76c24a 100%);
  color: #fff;
  border-color: #2e5c14;
}
body.theme-winxpvista7 .elsewhere-link,
body.theme-winxpvista7 .elsewhere-label,
body.theme-winxpvista7 .elsewhere-value,
body.theme-winxpvista7 .feed-item-title a,
body.theme-winxpvista7 .cert-since-value,
body.theme-winxpvista7 .activity-value {
  color: #1a4fa0 !important;
}

/* @section Feed items */
body.theme-winxpvista7 .feed-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #8fb0d4;
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 3px 10px rgba(20, 40, 80, 0.14);
  font-family: Tahoma, 'Segoe UI', Verdana, sans-serif;
}
body.theme-winxpvista7 .feed-item + .feed-item {
  margin-top: var(--ds-space-sm);
}
