/* =========================================================================
 * Windows 11 — 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 11's 2021 redesign: rounded window corners (the single
 * biggest visual change from 8/10's hard squares), a soft translucent
 * "Mica" material standing in for that material's real desktop-sampling
 * blur, a cooler and quieter blue accent than 8/10's saturated one, and
 * Segoe UI Variable's rounder, softer letterforms (approximated here with
 * the regular Segoe UI stack, since the Variable font isn't a guaranteed
 * system font outside Windows). Every rule here is original CSS; nothing
 * is traced from or bundles any Microsoft asset.
 *
 * Scope: only takes effect under body.theme-win11, so it never touches the
 * default design or any other theme unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background
   A soft, blurred multi-tone bloom stands in for Windows 11's default
   "Bloom" wallpaper (soft blues/teals/purples) without needing a photo
   asset. */
body.theme-win11 {
  background-color: #cfe3f2;
  background-image:
    radial-gradient(120% 90% at 10% -10%, rgba(140, 190, 245, 0.7) 0%, transparent 55%),
    radial-gradient(110% 100% at 100% 10%, rgba(130, 220, 210, 0.6) 0%, transparent 55%),
    radial-gradient(120% 110% at 50% 110%, rgba(170, 160, 230, 0.55) 0%, transparent 55%);
  background-attachment: fixed;
}

/* --- Windows 11 switcher dropdown
   Mica's soft, barely-there translucency plus Windows 11's generous
   corner rounding. --- */
body.theme-win11 .bb-theme-toggle-label {
  font-family: 'Segoe UI', 'Segoe UI Variable', Tahoma, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
}
body.theme-win11 .bb-theme-toggle {
  font-family: 'Segoe UI', 'Segoe UI Variable', Tahoma, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(20, 40, 70, 0.1);
  padding: 7px 16px;
}
body.theme-win11 .bb-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.85);
}
body.theme-win11 .bb-theme-toggle option {
  color: #1a1a1a;
  background: #fff;
}

/* @section Window chrome for the four cards + the Feed box
   Mica: a soft, translucent near-white panel, generously rounded corners
   (Windows 11's defining change), a hairline border, and a wide, gentle
   shadow -- lighter and airier than any of the Windows 8/10 or XP/Vista/7
   chrome in this switcher. */
body.theme-win11 .profile-card,
body.theme-win11 .certifications-card,
body.theme-win11 .conferences-card,
body.theme-win11 .activity-card,
body.theme-win11 .elsewhere-card,
body.theme-win11 #member-feed {
  position: relative;
  background: rgba(249, 249, 249, 0.82);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20, 40, 70, 0.14);
  overflow: hidden;
  font-family: 'Segoe UI', 'Segoe UI Variable', Tahoma, sans-serif;
  color: #1a1a1a;
}

/* The title bar: flat and quiet like 8/10's, but rounded to match the
   window's own corners and set on the same translucent Mica fill rather
   than solid white, with Windows 11's cooler, calmer blue for focus. */
body.theme-win11 .win-titlebar {
  display: flex;
  align-items: center;
  height: 36px;
  margin: 0;
  padding: 0 0 0 14px;
  border-bottom: 1px solid rgba(0, 120, 212, 0.35);
  border-radius: 13px 13px 0 0;
  background: rgba(255, 255, 255, 0.5);
}
body.theme-win11 .win-close,
body.theme-win11 .win-minimize,
body.theme-win11 .win-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1;
  color: #1a1a1a;
}
body.theme-win11 .win-minimize {
  order: 2;
  margin-left: auto;
}
body.theme-win11 .win-minimize::before {
  content: '\2014';
  font-size: 9px;
  transform: translateY(-5px);
}
body.theme-win11 .win-zoom {
  order: 3;
}
body.theme-win11 .win-zoom::before {
  content: '\25A1';
  font-size: 10px;
}
body.theme-win11 .win-close {
  order: 4;
  border-radius: 6px 13px 0 0;
}
body.theme-win11 .win-close::before {
  content: '\2715';
}
body.theme-win11 .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: 600;
  color: #1a1a1a;
}

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

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

/* @section Rounded Mica controls
   Buttons, tags, badges and pills pick up Windows 11's rounder corners and
   a soft translucent fill rather than 8/10's flat opaque tiles; anything
   "active"/selected goes the calmer Windows 11 accent blue. */
body.theme-win11 .atechs-btn,
body.theme-win11 .feed-tag,
body.theme-win11 .feed-filter,
body.theme-win11 .cert-since-badge,
body.theme-win11 .feed-item-longform-badge,
body.theme-win11 .activity-stat,
body.theme-win11 .profile-status-item,
body.theme-win11 .atechs-tag {
  background: rgba(255, 255, 255, 0.65);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  box-shadow: none;
}
body.theme-win11 .feed-filter.is-active {
  background: #0067c0;
  color: #fff;
  border-color: #0067c0;
}
body.theme-win11 .elsewhere-link,
body.theme-win11 .elsewhere-label,
body.theme-win11 .elsewhere-value,
body.theme-win11 .feed-item-title a,
body.theme-win11 .cert-since-value,
body.theme-win11 .activity-value {
  color: #0067c0 !important;
}

/* @section Feed items */
body.theme-win11 .feed-item {
  background: rgba(249, 249, 249, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(20, 40, 70, 0.1);
  font-family: 'Segoe UI', 'Segoe UI Variable', Tahoma, sans-serif;
}
body.theme-win11 .feed-item + .feed-item {
  margin-top: var(--ds-space-sm);
}
