/* =========================================================================
 * BeOS — an optional, per-visitor skin for the Member Home Page, a sibling
 * to Classic, Platinum, Aqua, Brushed Metal, Yosemite, Big Sur and Liquid
 * Glass (see theme-classic.css, which this file depends on for the shared
 * switcher CSS and the .win-zoom/.win-minimize base rules).
 *
 * Recreates BeOS's distinctive late-90s look (1996-2001): warm yellow-tan
 * "tab" title bars (BeOS windows were famous for a title bar shaped like a
 * filing-cabinet tab rather than a full-width bar), small square window
 * controls at either end of that tab, a cool blue-grey desktop, and the
 * clean, efficiency-first Be Sans-style interface font BeOS shipped with.
 * Every rule here is original CSS -- nothing is traced from or bundles any
 * of Be, Inc.'s own assets.
 *
 * Scope: only takes effect under body.theme-beos, so it never touches the
 * default design or any other theme unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background
   BeOS's default desktop was a cool slate blue-grey -- flat, since the
   Tracker's whole design language was about clean, uncluttered space. */
body.theme-beos {
  background: linear-gradient(180deg, #8d97ad 0%, #626e87 100%);
}

/* --- BeOS switcher dropdown --- */
body.theme-beos .bb-theme-toggle-label {
  font-family: 'Noto Sans', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #fff;
}
body.theme-beos .bb-theme-toggle {
  font-family: 'Noto Sans', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #3a2c0a;
  background: #f6c667;
  border: 1px solid #5a4418;
  border-radius: 3px;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
}
body.theme-beos .bb-theme-toggle:hover {
  background: #ffd886;
}
body.theme-beos .bb-theme-toggle option {
  color: #000;
  background: #fff;
}

/* @section Window chrome for the four cards + the Feed box
   Light grey, square-cornered, with a thin dark border -- BeOS windows had
   almost no decoration beyond the tab; the content area itself was plain. */
body.theme-beos .profile-card,
body.theme-beos .certifications-card,
body.theme-beos .conferences-card,
body.theme-beos .activity-card,
body.theme-beos .elsewhere-card,
body.theme-beos #member-feed {
  position: relative;
  background: #eff0f2;
  border: 1px solid #4a4f5c;
  border-radius: 0;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: 'Noto Sans', Helvetica, Arial, sans-serif;
  color: #1a1c22;
}

/* The title bar: BeOS's signature yellow-tan "tab", drawn here as the
   bar's own background rather than an actual protruding tab shape (which
   would clip against this layout's grid) -- the color and the left-aligned
   bold label are what reads as "BeOS" at a glance. Close box sits at the
   left end of the tab (BeOS convention, the reverse of Mac), zoom at the
   right; BeOS had no separate minimize control on the tab itself. */
body.theme-beos .win-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  margin: 0;
  padding: 0 8px;
  border-bottom: 1px solid #4a4f5c;
  background: #f6c667;
}
body.theme-beos .win-close,
body.theme-beos .win-zoom {
  display: block;
  flex: none;
  width: 11px;
  height: 11px;
  background: #fff2d6;
  border: 1px solid #5a4418;
  border-radius: 0;
}
body.theme-beos .win-close {
  order: 1;
}
body.theme-beos .win-zoom {
  order: 3;
  margin-left: auto;
}
body.theme-beos .win-title {
  display: block;
  order: 2;
  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: #3a2c0a;
}

/* Push each card's own content below the title bar. */
body.theme-beos .profile-card,
body.theme-beos .certifications-card,
body.theme-beos .conferences-card,
body.theme-beos .activity-card,
body.theme-beos .elsewhere-card {
  padding: 0 0 var(--ds-space-md);
}
body.theme-beos .profile-card > *:not(.win-titlebar),
body.theme-beos .certifications-card > *:not(.win-titlebar),
body.theme-beos .conferences-card > *:not(.win-titlebar),
body.theme-beos .activity-card > *:not(.win-titlebar),
body.theme-beos .elsewhere-card > *:not(.win-titlebar) {
  margin-left: var(--ds-space-md);
  margin-right: var(--ds-space-md);
}
body.theme-beos .profile-card-head,
body.theme-beos .activity-stats,
body.theme-beos .certifications-card-head {
  margin-top: var(--ds-space-md);
}

/* The in-card headings are redundant once the tab already says the same
   thing (same reasoning as every other theme in this switcher). */
body.theme-beos .certifications-heading,
body.theme-beos .activity-heading,
body.theme-beos .member-feed-row-heading,
body.theme-beos .member-feed-heading {
  display: none;
}

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

/* @section Flat controls, yellow-tan accent
   Buttons, tags, badges and pills: plain grey, square-cornered, a thin
   dark border -- anything "active"/selected picks up the same tab yellow
   the title bars use, so the one accent color ties the whole skin together. */
body.theme-beos .atechs-btn,
body.theme-beos .feed-tag,
body.theme-beos .feed-filter,
body.theme-beos .cert-since-badge,
body.theme-beos .feed-item-longform-badge,
body.theme-beos .activity-stat,
body.theme-beos .profile-status-item,
body.theme-beos .atechs-tag {
  background: #e3e5ea;
  color: #1a1c22;
  border: 1px solid #9ba0ad;
  border-radius: 2px;
  box-shadow: none;
}
body.theme-beos .feed-filter.is-active {
  background: #f6c667;
  color: #3a2c0a;
  border-color: #5a4418;
}
body.theme-beos .elsewhere-link,
body.theme-beos .elsewhere-label,
body.theme-beos .elsewhere-value,
body.theme-beos .feed-item-title a,
body.theme-beos .cert-since-value,
body.theme-beos .activity-value {
  color: #8a5a00 !important;
}

/* @section Feed items */
body.theme-beos .feed-item {
  background: #eff0f2;
  border: 1px solid #9ba0ad;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Noto Sans', Helvetica, Arial, sans-serif;
}
body.theme-beos .feed-item + .feed-item {
  margin-top: var(--ds-space-sm);
}
