/* =========================================================================
 * Aqua — an optional, per-visitor skin for the Member Home Page, a sibling
 * to Classic and Platinum (see theme-classic.css, which this file depends
 * on for the shared switcher CSS and the .win-zoom/.win-minimize base
 * rules).
 *
 * Recreates the look of early Mac OS X's "Aqua" interface (2000-2002):
 * glossy "lickable" candy buttons, pinstriped title bars, the red/yellow/
 * green traffic-light window controls clustered at the top-left, blue as
 * the one accent color against white and grey. Every rule here is original
 * CSS (gradients, box-shadows, radial highlights) -- nothing is traced
 * from or bundles any of Apple's own bitmap assets. Apple's own published
 * description of Aqua (blue, white and grey as its three principal colors)
 * and the well-documented red/yellow/green traffic-light convention were
 * used as a reference for the visual language while building this, but no
 * code or asset from any existing Aqua-recreation project is reused here.
 *
 * Scope: only takes effect under body.theme-aqua, so it never touches the
 * default design, Classic Mode, or Platinum, unless a visitor opts in.
 * ========================================================================= */

/* @section Desktop background
   Early Mac OS X's default desktop was a blue-toned photographic wave
   ("Aqua Blue") -- a flat gradient stands in for that without needing an
   actual image asset. */
body.theme-aqua {
  background: linear-gradient(180deg, #e4edf8 0%, #cddef2 45%, #a9c6e8 100%);
}

/* --- Aqua switcher dropdown
   Aqua's real controls were glossy blue/graphite capsules with a light
   reflection across the top half -- the pill shape plus that highlight is
   the whole "lickable" effect, no skeuomorphic bitmap needed. --- */
body.theme-aqua .bb-theme-toggle-label {
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #1a1a1a;
}
body.theme-aqua .bb-theme-toggle {
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #0a2a52;
  background: linear-gradient(180deg, #fafdff 0%, #cfe6fb 48%, #8fc3f3 52%, #bfe0fb 100%);
  border: 1px solid #5a93c9;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(10, 40, 80, 0.35);
  padding: 6px 16px;
}
body.theme-aqua .bb-theme-toggle:hover {
  background: linear-gradient(180deg, #ffffff 0%, #dcf0fe 48%, #a3d1f7 52%, #cdeafd 100%);
}

/* @section Window chrome for the four cards + the Feed box
   White, generously rounded, with a soft, fairly deep drop shadow --
   Aqua windows sat clearly "above" the desktop, more so than Platinum's. */
body.theme-aqua .profile-card,
body.theme-aqua .certifications-card,
body.theme-aqua .conferences-card,
body.theme-aqua .activity-card,
body.theme-aqua .elsewhere-card,
body.theme-aqua #member-feed {
  position: relative;
  background: #fff;
  border: 1px solid #9fb6cc;
  border-radius: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 24px rgba(20, 40, 70, 0.28);
  overflow: hidden;
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
}

/* The title bar: a glossy light-grey vertical-pinstripe fill (Aqua's real
   titlebars used fine vertical lines, unlike Platinum's horizontal bands),
   with the traffic lights clustered at the left and the title centered
   across the FULL bar width regardless of how much room the lights take up
   -- real Aqua titles are centered on the window, not on the remaining
   space next to the controls. */
body.theme-aqua .win-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  margin: 0;
  padding: 0 10px;
  border-bottom: 1px solid #9fb6cc;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.5) 0,
      rgba(255, 255, 255, 0.5) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(180deg, #f2f5f9 0%, #dde6ef 45%, #c9d7e6 100%);
}
body.theme-aqua .win-close,
body.theme-aqua .win-minimize,
body.theme-aqua .win-zoom {
  display: block;
  flex: none;
  order: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.4);
}
body.theme-aqua .win-close {
  background: radial-gradient(circle at 35% 30%, #ff8f87, #ec5c51 45%, #c9372c 100%);
  border: 1px solid #a82b22;
  order: 1;
}
body.theme-aqua .win-minimize {
  background: radial-gradient(circle at 35% 30%, #ffe08f, #f0b429 45%, #c98a12 100%);
  border: 1px solid #a8710e;
  order: 2;
}
body.theme-aqua .win-zoom {
  background: radial-gradient(circle at 35% 30%, #a3e68f, #4fb435 45%, #2e8a1c 100%);
  border: 1px solid #276e17;
  order: 3;
}
body.theme-aqua .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: #2a2a2a;
  pointer-events: none;
  order: 4;
}

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

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

/* @section Full color
   Like Platinum, Aqua-era Macs were full color -- the skin lives in the
   chrome around the content, not a filter over it. */

/* @section Glossy candy controls
   Buttons, tags, badges and pills get Aqua's defining look: a capsule
   shape and a light gradient reflection across the top half. Anything
   that reads as "active"/selected goes full Aqua blue. */
body.theme-aqua .atechs-btn,
body.theme-aqua .feed-tag,
body.theme-aqua .feed-filter,
body.theme-aqua .cert-since-badge,
body.theme-aqua .feed-item-longform-badge,
body.theme-aqua .activity-stat,
body.theme-aqua .profile-status-item,
body.theme-aqua .atechs-tag {
  background: linear-gradient(180deg, #ffffff 0%, #eef3f8 48%, #dbe6f0 52%, #eef3f8 100%);
  color: #1a1a1a;
  border: 1px solid #9fb6cc;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
body.theme-aqua .feed-filter.is-active {
  background: linear-gradient(180deg, #fafdff 0%, #cfe6fb 48%, #4f9fec 52%, #2f7fd6 100%);
  color: #fff;
  border-color: #1f5ea8;
}
body.theme-aqua .elsewhere-link,
body.theme-aqua .elsewhere-label,
body.theme-aqua .elsewhere-value,
body.theme-aqua .feed-item-title a,
body.theme-aqua .cert-since-value,
body.theme-aqua .activity-value {
  color: #1a5fbf !important;
}

/* @section Feed items
   Rounded, glossy-edged rows -- same reasoning as the other two themes: a
   full title bar on every single item would repeat the chrome too much. */
body.theme-aqua .feed-item {
  background: #fff;
  border: 1px solid #9fb6cc;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 3px 8px rgba(20, 40, 70, 0.15);
  font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body.theme-aqua .feed-item + .feed-item {
  margin-top: var(--ds-space-sm);
}
