/* =========================================================================
 * Brushed Metal — an optional, per-visitor skin for the Member Home Page, a
 * sibling to Classic, Platinum and Aqua (see theme-classic.css, which this
 * file depends on for the shared switcher CSS and the .win-zoom/
 * .win-minimize base rules).
 *
 * Recreates the "brushed metal" window look Apple used for media-player-
 * style apps (QuickTime Player, iTunes, iMovie) starting in 1999, which
 * became Mac OS X 10.3 Panther's Finder-window look in 2003: a dark,
 * horizontally-streaked aluminum texture, the same red/yellow/green
 * traffic lights as Aqua, and light, slightly "engraved" title text sitting
 * directly on the metal rather than Aqua's white title platter. Every rule
 * here is original CSS (a repeating gradient stands in for the metal grain,
 * no photographed or bitmap texture) -- nothing is traced from or bundles
 * any of Apple's own assets.
 *
 * Scope: only takes effect under body.theme-metal, so it never touches the
 * default design or any other theme unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background */
body.theme-metal {
  background-color: #9a9a9e;
}

/* --- Brushed Metal switcher dropdown --- */
body.theme-metal .bb-theme-toggle-label {
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #eee;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
}
body.theme-metal .bb-theme-toggle {
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #1a1a1a;
  background: linear-gradient(180deg, #e8e8ea 0%, #cfcfd2 50%, #b7b7bb 52%, #d2d2d5 100%);
  border: 1px solid #6e6e72;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
}
body.theme-metal .bb-theme-toggle:hover {
  background: linear-gradient(180deg, #f2f2f4 0%, #dadadd 50%, #c2c2c6 52%, #dcdcde 100%);
}

/* @section Window chrome for the four cards + the Feed box
   The brushed-aluminum grain: a dense repeating linear-gradient of 1px
   light/dark bands (the "brush strokes") laid over a broader top-to-bottom
   gradient (the panel's overall curve, lighter at the top like a real
   lit sheet of metal). */
body.theme-metal .profile-card,
body.theme-metal .certifications-card,
body.theme-metal .conferences-card,
body.theme-metal .activity-card,
body.theme-metal .elsewhere-card,
body.theme-metal #member-feed {
  position: relative;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.07) 0,
      rgba(255, 255, 255, 0.07) 1px,
      rgba(0, 0, 0, 0.05) 1px,
      rgba(0, 0, 0, 0.05) 2px
    ),
    linear-gradient(180deg, #d6d6d9 0%, #bcbcc0 50%, #c8c8cb 100%);
  border: 1px solid #6e6e72;
  border-radius: 9px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 6px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
}

/* The title bar: a darker, richer band of the same brushed texture, with
   the Aqua-style traffic lights clustered at the left and light, subtly
   "engraved" (debossed) title text centered across the full bar width --
   real brushed-metal titles sat right on the metal, with no separate
   title platter the way Platinum and Classic used. */
body.theme-metal .win-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  margin: 0;
  padding: 0 10px;
  border-bottom: 1px solid #6e6e72;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      rgba(0, 0, 0, 0.08) 1px,
      rgba(0, 0, 0, 0.08) 2px
    ),
    linear-gradient(180deg, #86868a 0%, #68686c 50%, #747478 100%);
}
body.theme-metal .win-close,
body.theme-metal .win-minimize,
body.theme-metal .win-zoom {
  display: block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.25);
}
body.theme-metal .win-close {
  background: radial-gradient(circle at 35% 30%, #ff8f87, #ec5c51 45%, #c9372c 100%);
  border: 1px solid #8a241c;
  order: 1;
}
body.theme-metal .win-minimize {
  background: radial-gradient(circle at 35% 30%, #ffe08f, #f0b429 45%, #c98a12 100%);
  border: 1px solid #8a5f0a;
  order: 2;
}
body.theme-metal .win-zoom {
  background: radial-gradient(circle at 35% 30%, #a3e68f, #4fb435 45%, #2e8a1c 100%);
  border: 1px solid #1f5e12;
  order: 3;
}
body.theme-metal .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: bold;
  color: #f6f6f7;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.2);
  pointer-events: none;
  order: 4;
}

/* Push each card's own content below the title bar. Content blocks (the
   About text, the stats grid, etc.) sit on their own small flat light
   panel inset within the metal frame -- real brushed-metal windows kept
   the metal to the chrome/toolbar, with a plain light content area below
   it (a file list, a player's controls), rather than the brush grain
   running behind body text, which would be unreadable at this contrast. */
body.theme-metal .profile-card,
body.theme-metal .certifications-card,
body.theme-metal .conferences-card,
body.theme-metal .activity-card,
body.theme-metal .elsewhere-card {
  padding: 0 0 var(--ds-space-md);
}
body.theme-metal .profile-card > *:not(.win-titlebar),
body.theme-metal .certifications-card > *:not(.win-titlebar),
body.theme-metal .conferences-card > *:not(.win-titlebar),
body.theme-metal .activity-card > *:not(.win-titlebar),
body.theme-metal .elsewhere-card > *:not(.win-titlebar) {
  margin-left: var(--ds-space-md);
  margin-right: var(--ds-space-md);
}
body.theme-metal .profile-card-head,
body.theme-metal .profile-about,
body.theme-metal .profile-meta,
body.theme-metal .specialties-list,
body.theme-metal .activity-stats,
body.theme-metal .certifications-card-head {
  margin-top: var(--ds-space-md);
  background: #f1f1f2;
  border: 1px solid #d4d4d6;
  border-radius: 8px;
  padding: var(--ds-space-sm);
}

/* The in-card headings are redundant once the title bar already says the
   same thing (same reasoning as the other three themes). */
body.theme-metal .certifications-heading,
body.theme-metal .activity-heading,
body.theme-metal .member-feed-row-heading,
body.theme-metal .member-feed-heading {
  display: none;
}

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

/* @section Full color
   Brushed-metal-era Macs were full color -- the skin lives in the window
   chrome, not a filter over photos/icons. */

/* @section Controls
   Same glossy capsule shape as Aqua, but a silvery grey by default --
   brushed-metal apps still used Aqua's own controls, just inside a
   metal-textured window instead of a plain white one. */
body.theme-metal .atechs-btn,
body.theme-metal .feed-tag,
body.theme-metal .feed-filter,
body.theme-metal .cert-since-badge,
body.theme-metal .feed-item-longform-badge,
body.theme-metal .activity-stat,
body.theme-metal .profile-status-item,
body.theme-metal .atechs-tag {
  background: linear-gradient(180deg, #ffffff 0%, #eceef0 48%, #d7d9dc 52%, #eceef0 100%);
  color: #1a1a1a;
  border: 1px solid #9a9a9e;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
body.theme-metal .feed-filter.is-active {
  background: linear-gradient(180deg, #fafdff 0%, #cfe6fb 48%, #4f9fec 52%, #2f7fd6 100%);
  color: #fff;
  border-color: #1f5ea8;
}
body.theme-metal .elsewhere-link,
body.theme-metal .elsewhere-label,
body.theme-metal .elsewhere-value,
body.theme-metal .feed-item-title a,
body.theme-metal .cert-since-value,
body.theme-metal .activity-value {
  color: #1a5fbf !important;
}

/* @section Feed items */
body.theme-metal .feed-item {
  background: #fff;
  border: 1px solid #9a9a9e;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 2px 6px rgba(0, 0, 0, 0.12);
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body.theme-metal .feed-item + .feed-item {
  margin-top: var(--ds-space-sm);
}
