/* =========================================================================
 * Yosemite — an optional, per-visitor skin for the Member Home Page, a
 * sibling to Classic, Platinum, Aqua and Brushed Metal (see
 * theme-classic.css, which this file depends on for the shared switcher
 * CSS and the .win-zoom/.win-minimize base rules).
 *
 * Recreates OS X Yosemite's 2014 flat redesign -- the one that undid every
 * gradient, bevel and texture the earlier four skins in this switcher are
 * built from. Flat fills instead of gradients, hairline borders instead of
 * bevels, a single flat blue accent, and small flat traffic lights instead
 * of Aqua/Metal's glossy radial-gradient ones. This is deliberately the
 * plainest-looking theme of the set -- that plainness IS period-accurate,
 * not a shortcut. Every rule here is original CSS; nothing is traced from
 * or bundles any of Apple's own assets.
 *
 * Scope: only takes effect under body.theme-yosemite, so it never touches
 * the default design or any other theme unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background
   Yosemite's default wallpaper was a photographic sunrise-over-mountains
   gradient -- a flat version of that same blue-to-gold sky stands in for
   it without an actual photo asset. */
body.theme-yosemite {
  background: linear-gradient(180deg, #4a90d9 0%, #a7c7e7 55%, #e8c88a 100%);
}

/* --- Yosemite switcher dropdown --- */
body.theme-yosemite .bb-theme-toggle-label {
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #3a3a3c;
}
body.theme-yosemite .bb-theme-toggle {
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #0a84ff;
  background: #fff;
  border: 1px solid #d1d1d6;
  border-radius: 6px;
  box-shadow: none;
  padding: 6px 12px;
}
body.theme-yosemite .bb-theme-toggle:hover {
  background: #f5f5f7;
}

/* @section Window chrome for the four cards + the Feed box
   Flat white, a thin hairline border rather than a bevel, and a soft,
   barely-there shadow -- the opposite instinct from the previous four
   themes, which all built depth out of gradients and inset highlights. */
body.theme-yosemite .profile-card,
body.theme-yosemite .certifications-card,
body.theme-yosemite .conferences-card,
body.theme-yosemite .activity-card,
body.theme-yosemite .elsewhere-card,
body.theme-yosemite #member-feed {
  position: relative;
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1d1d1f;
}

/* The title bar: flat, faintly tinted grey (a stand-in for the real thing's
   translucency/blur, which isn't reliable to render behind arbitrary page
   content), a hairline divider instead of a bevel, small flat traffic
   lights, and medium-weight (not bold) centered title text -- all flatter
   and quieter than the other four themes' title bars. */
body.theme-yosemite .win-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  margin: 0;
  padding: 0 10px;
  border-bottom: 1px solid #e2e2e5;
  background: #f6f6f8;
}
body.theme-yosemite .win-close,
body.theme-yosemite .win-minimize,
body.theme-yosemite .win-zoom {
  display: block;
  flex: none;
  order: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: none;
}
body.theme-yosemite .win-close {
  background: #ff5f57;
  order: 1;
}
body.theme-yosemite .win-minimize {
  background: #ffbd2e;
  order: 2;
}
body.theme-yosemite .win-zoom {
  background: #28c940;
  order: 3;
}
body.theme-yosemite .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: 12px;
  font-weight: 500;
  color: #4d4d52;
  pointer-events: none;
  order: 4;
}

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

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

/* @section Full color, flat controls
   Buttons, tags, badges and pills go flat: solid fills, no gradient, no
   inset highlight, a hairline border, and the one flat Yosemite accent
   blue for anything "active" or linked. */
body.theme-yosemite .atechs-btn,
body.theme-yosemite .feed-tag,
body.theme-yosemite .feed-filter,
body.theme-yosemite .cert-since-badge,
body.theme-yosemite .feed-item-longform-badge,
body.theme-yosemite .activity-stat,
body.theme-yosemite .profile-status-item,
body.theme-yosemite .atechs-tag {
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid #e2e2e5;
  border-radius: 6px;
  box-shadow: none;
}
body.theme-yosemite .feed-filter.is-active {
  background: #0a84ff;
  color: #fff;
  border-color: #0a84ff;
}
body.theme-yosemite .elsewhere-link,
body.theme-yosemite .elsewhere-label,
body.theme-yosemite .elsewhere-value,
body.theme-yosemite .feed-item-title a,
body.theme-yosemite .cert-since-value,
body.theme-yosemite .activity-value {
  color: #0a84ff !important;
}

/* @section Feed items */
body.theme-yosemite .feed-item {
  background: #fff;
  border: 1px solid #e2e2e5;
  border-radius: 8px;
  box-shadow: none;
  font-family: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body.theme-yosemite .feed-item + .feed-item {
  margin-top: var(--ds-space-sm);
}
