/* =========================================================================
 * Big Sur — an optional, per-visitor skin for the Member Home Page, a
 * sibling to Classic, Platinum, Aqua, Brushed Metal and Yosemite (see
 * theme-classic.css, which this file depends on for the shared switcher
 * CSS and the .win-zoom/.win-minimize base rules).
 *
 * Recreates macOS Big Sur's 2020 redesign -- the one that's still
 * essentially what every Mac looks like today (Monterey through Sequoia
 * kept this same visual language, just refining it in place rather than
 * redoing it the way Yosemite redid Aqua/Metal). Big, soft "squircle"
 * corners, frosted/translucent toolbars instead of a flat tinted bar,
 * generously spaced full-color traffic lights, and diffused, wide-radius
 * shadows instead of Yosemite's tight, barely-there one. Every rule here
 * is original CSS; nothing is traced from or bundles any of Apple's own
 * assets, and the backdrop-filter blur below is a CSS effect, not a
 * captured image of real vibrancy.
 *
 * Scope: only takes effect under body.theme-bigsur, so it never touches
 * the default design or any other theme unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background
   Big Sur's default wallpaper was a photographic twilight dune -- a flat
   abstract wash in the same cool blue-to-violet family stands in for it
   without an actual photo asset, same approach Yosemite took for its own
   sunrise gradient. */
body.theme-bigsur {
  background: radial-gradient(120% 90% at 15% 0%, #6a7fd6 0%, #4a5aa8 38%, #2c2f5e 75%, #191a35 100%);
}

/* --- Big Sur switcher dropdown
   Same frosted-pill instinct as the window chrome below: blurred
   translucency instead of Yosemite's flat white, a bigger pill radius,
   and the more vivid, slightly-more-saturated blue Apple's marketing and
   system UI settled on from Big Sur onward. --- */
body.theme-bigsur .bb-theme-toggle-label {
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #e5e6f5;
}
/* Tinted dark, not white -- a translucent WHITE pill only reads right over this theme's own
   dark body wash. This same control also sits over a Tech's own cover banner, which can be a
   light color they picked themselves; white-on-translucent-white there was the "still white on
   light" bug. Tinting the glass dark instead gives the pill its own contrast no matter what's
   behind it. */
body.theme-bigsur .bb-theme-toggle {
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(25, 26, 53, 0.55);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  box-shadow: none;
  padding: 7px 14px;
}
body.theme-bigsur .bb-theme-toggle:hover {
  background: rgba(25, 26, 53, 0.7);
}
/* The dark-glass pill above is for the closed toggle only -- the dropdown's open option list
   is the OS's own native menu, which renders on its own (usually white/light) background no
   matter what's set above, so dark text is what's needed there instead. */
body.theme-bigsur .bb-theme-toggle option {
  color: #1d1d1f;
  background: #fff;
}

/* @section Window chrome for the four cards + the Feed box
   Big, soft "squircle" corners (nearly double Yosemite's radius), a
   hairline border so faint it's really just an edge highlight, and a
   wide, diffuse, barely-saturated shadow -- the look of a card floating
   well above the desktop, instead of Yosemite's tight, grounded one. */
body.theme-bigsur .profile-card,
body.theme-bigsur .certifications-card,
body.theme-bigsur .conferences-card,
body.theme-bigsur .activity-card,
body.theme-bigsur .elsewhere-card,
body.theme-bigsur #member-feed {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(20, 20, 50, 0.18);
  overflow: hidden;
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1d1d1f;
}

/* The title bar: frosted/translucent (backdrop-filter standing in for real
   vibrancy, since actual vibrancy needs to sample whatever's behind it,
   which varies per card), bigger and airier than Yosemite's flat 22px bar,
   with full-color traffic lights given real room to breathe rather than
   sitting edge to edge. */
body.theme-bigsur .win-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 0;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(246, 246, 248, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
}
body.theme-bigsur .win-close,
body.theme-bigsur .win-minimize,
body.theme-bigsur .win-zoom {
  display: block;
  flex: none;
  order: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
body.theme-bigsur .win-close {
  background: #ff5f57;
  order: 1;
  margin-left: 4px;
}
body.theme-bigsur .win-minimize {
  background: #febc2e;
  order: 2;
  margin-left: 8px;
}
body.theme-bigsur .win-zoom {
  background: #28c840;
  order: 3;
  margin-left: 8px;
}
body.theme-bigsur .win-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3c;
  pointer-events: none;
  order: 4;
}

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

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

/* @section Rounded, filled controls
   Big Sur's controls lean into fully-rounded pill shapes and bolder,
   flatter fills (no hairline border at all on the small pills, unlike
   Yosemite) -- a soft tinted blue fill for anything "active" or linked,
   closer to a Control Center toggle than a traditional button. */
body.theme-bigsur .atechs-btn,
body.theme-bigsur .feed-tag,
body.theme-bigsur .feed-filter,
body.theme-bigsur .cert-since-badge,
body.theme-bigsur .feed-item-longform-badge,
body.theme-bigsur .activity-stat,
body.theme-bigsur .profile-status-item,
body.theme-bigsur .atechs-tag {
  background: #f0f0f3;
  color: #1d1d1f;
  border: none;
  border-radius: 999px;
  box-shadow: none;
}
body.theme-bigsur .feed-filter.is-active {
  background: #0071e3;
  color: #fff;
}
body.theme-bigsur .elsewhere-link,
body.theme-bigsur .elsewhere-label,
body.theme-bigsur .elsewhere-value,
body.theme-bigsur .feed-item-title a,
body.theme-bigsur .cert-since-value,
body.theme-bigsur .activity-value {
  color: #0071e3 !important;
}

/* @section Feed items
   Fully rounded corners (matching the pill controls above) and a soft,
   wide shadow of their own, rather than Yosemite's hairline-bordered
   flat rows -- each item reads as its own small floating card. */
body.theme-bigsur .feed-item {
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(20, 20, 50, 0.08);
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body.theme-bigsur .feed-item + .feed-item {
  margin-top: var(--ds-space-sm);
}
