/* =========================================================================
 * Platinum — an optional, per-visitor skin for the Member Home Page, a
 * sibling to Classic (see theme-classic.css, which this file depends on
 * for the shared switcher CSS and the .win-zoom base rule).
 *
 * Recreates the look of Mac OS 8/9's "Platinum" appearance (1997-2001):
 * soft 3D bevels, light-grey gradients, pinstriped title bars broken by a
 * white title "platter", and small rounded window widgets -- a step up in
 * polish from Classic's flat black & white. Every rule here is original CSS
 * (gradients, box-shadows, a bitmap-style font stack) -- nothing is traced
 * from or bundles any of Apple's own bitmap assets. Open-source projects
 * recreating this same look (platinum.css by mat-sz, New Dawn/Classicy by
 * npjg and robbiebyrd) were useful as a reference for the visual language
 * while building this, but no code or asset from them is reused here.
 *
 * Scope: only takes effect under body.theme-platinum, so it never touches
 * the default design, or Classic Mode, unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background
   Platinum's desktop was usually a flat mid-grey (often a subtle pattern,
   but a flat tint reads cleanest at screen resolution and keeps the
   windows themselves the focus). */
body.theme-platinum {
  background-color: #c6c6ce;
}

/* --- Platinum (Mac OS 8/9) switcher dropdown --- */
body.theme-platinum .bb-theme-toggle-label {
  font-family: 'Charcoal', Geneva, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #000;
}
body.theme-platinum .bb-theme-toggle {
  font-family: 'Charcoal', Geneva, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #000;
  background: linear-gradient(#fff, #d8d8df 55%, #c3c3cc);
  border: 1px solid #6e6e76;
  border-radius: 10px;
  box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
}
body.theme-platinum .bb-theme-toggle:hover {
  background: linear-gradient(#fff, #e4e4ea 55%, #cfcfd8);
}

/* @section Window chrome for the four cards + the Feed box
   Rounded corners, a thin dark-grey border with an inner highlight (the
   "inset" box-shadow stands in for Platinum's real bevel), and a softer,
   blurred drop shadow -- Platinum's windows read as 3D objects, not flat
   cutouts the way Classic's did. */
body.theme-platinum .profile-card,
body.theme-platinum .certifications-card,
body.theme-platinum .conferences-card,
body.theme-platinum .activity-card,
body.theme-platinum .elsewhere-card,
body.theme-platinum #member-feed {
  position: relative;
  background: #fff;
  border: 1px solid #84848c;
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 3px 10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: 'Charcoal', Geneva, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #000;
}

/* The title bar: a light-grey gradient filled with fine horizontal
   pinstripes (Platinum's real titlebar used alternating 1px-tall bands),
   broken by a white rounded "platter" behind the centered title -- same
   real-DOM-element approach as Classic, so the cutout sizes to the text. */
body.theme-platinum .win-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  margin: 0;
  padding: 0 6px;
  border-bottom: 1px solid #84848c;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.12) 0,
      rgba(0, 0, 0, 0.12) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(#ececf2, #d4d4dc);
}
body.theme-platinum .win-close {
  display: block;
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(#fff, #d8d8df 55%, #b8b8c2);
  border: 1px solid #6e6e76;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
body.theme-platinum .win-zoom {
  display: block;
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: linear-gradient(#fff, #d8d8df 55%, #b8b8c2);
  border: 1px solid #6e6e76;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
body.theme-platinum .win-title {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  background: #ececf2;
  border-radius: 9px;
  padding: 2px 10px;
  margin: 0 2px;
}

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

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

/* @section Full color, not monochrome
   Platinum-era Macs were back in full color (unlike Classic's 1-bit era),
   so icons/avatars/photos keep their real colors here -- the skin is in
   the chrome, not a filter over the content. */

/* @section Bevelled controls
   Buttons, tags, badges and pills get Platinum's soft 3D gradient-and-bevel
   treatment: light-to-mid-grey gradient, rounded corners, a thin dark
   border, a subtle highlight along the top inner edge. */
body.theme-platinum .atechs-btn,
body.theme-platinum .feed-tag,
body.theme-platinum .feed-filter,
body.theme-platinum .cert-since-badge,
body.theme-platinum .feed-item-longform-badge,
body.theme-platinum .activity-stat,
body.theme-platinum .profile-status-item,
body.theme-platinum .atechs-tag {
  background: linear-gradient(#fff, #e3e3e9 55%, #cfcfd8);
  color: #000;
  border: 1px solid #84848c;
  border-radius: 9px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
body.theme-platinum .feed-filter.is-active {
  background: linear-gradient(#3d7fe0, #0b4fc7 55%, #073e9e);
  color: #fff;
  border-color: #042e76;
}
body.theme-platinum .elsewhere-link,
body.theme-platinum .elsewhere-label,
body.theme-platinum .elsewhere-value,
body.theme-platinum .feed-item-title a,
body.theme-platinum .cert-since-value,
body.theme-platinum .activity-value {
  color: #0b4fc7 !important;
}

/* @section Feed items
   Simple rounded, bevelled rows -- same reasoning as Classic: a full title
   bar on every single item would be a lot of repeated chrome. */
body.theme-platinum .feed-item {
  background: #fff;
  border: 1px solid #84848c;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: 'Charcoal', Geneva, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body.theme-platinum .feed-item + .feed-item {
  margin-top: var(--ds-space-sm);
}
