/* elseborn.ai site chrome — thin fixed header, always on top.
   Orthogonal to in-room controls; emergency exit / universal start-over. */

body {
  padding-top: 56px;          /* reserve space for the fixed header */
}

.site-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 10000;             /* above reading overlays (~1000) */
  background: rgba(244, 234, 208, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(60, 40, 20, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  box-shadow: 0 1px 2px rgba(60, 40, 20, 0.04);
}

/* left group: brand + tower title (+ spaces dropdown) */
.site-chrome-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;       /* anchor for spaces dropdown */
}

/* spaces dropdown — teleporter between welcome / tower / future */
.site-chrome-spaces {
  position: absolute;
  top: 52px;
  left: 0;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(60, 40, 20, 0.12);
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(60, 40, 20, 0.18), 0 2px 6px rgba(60, 40, 20, 0.10);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 10001;
}
.site-chrome-spaces.open { display: flex; animation: spaces-in 0.18s ease-out; }
@keyframes spaces-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.space-option,
.space-option-disabled {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #2D4E4E;
  text-decoration: none;
  font-family: "Futura", "Avenir Next", sans-serif;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  border-radius: 3px;
  transition: background 0.12s;
  cursor: pointer;
}
.space-option:hover,
.space-option:focus {
  background: rgba(45, 78, 78, 0.08);
  outline: none;
}
.space-option.active {
  font-weight: 600;
  background: rgba(45, 78, 78, 0.05);
}
.space-option.active .space-check {
  color: #2D4E4E;
}
.space-check {
  font-size: 11px;
  width: 14px;
  text-align: center;
  opacity: 0.6;
}
.space-option .space-check { color: #2D4E4E; }
.space-name {
  flex: 1;
}
.space-city {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.20em;
  opacity: 0.55;
}
.space-option-disabled {
  cursor: default;
  opacity: 0.45;
}
.space-soon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  opacity: 0.55;
}

/* brand group: logo + wordmark act as one "home" button */
.site-chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #2D4E4E;
  cursor: pointer;
  transition: opacity 0.15s;
  user-select: none;
}

/* tower selector — placeholder for future multi-tower navigation */
.site-chrome-tower {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  font-family: "Futura", "Avenir Next", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #2D4E4E;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.15s;
  border-radius: 2px;
}
.site-chrome-tower:hover,
.site-chrome-tower:focus {
  opacity: 1;
  outline: none;
  background: rgba(45, 78, 78, 0.05);
}
.site-chrome-tower-sep {
  opacity: 0.5;
  padding-right: 4px;
}
.site-chrome-tower-text {
  font-weight: 400;
}
.site-chrome-tower-city {
  font-weight: 500;
}
.site-chrome-tower-caret {
  font-size: 10px;
  opacity: 0.7;
  padding-left: 2px;
}

/* reading state: swap the tower label for a clickable breadcrumb-back.
   Clicking the breadcrumb exits reading — the arrow is a back affordance. */
.site-chrome-breadcrumb {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-family: "Futura", "Avenir Next", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #2D4E4E;
  opacity: 0.70;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.15s, background 0.15s;
}
.site-chrome-breadcrumb:hover,
.site-chrome-breadcrumb:focus {
  opacity: 1;
  background: rgba(45, 78, 78, 0.06);
  outline: none;
}
.site-chrome-breadcrumb:hover .crumb-arrow {
  transform: translateX(-2px);
}
body.reading .site-chrome-tower { display: none; }
body.reading .site-chrome-breadcrumb { display: inline-flex; }
.crumb-arrow {
  opacity: 0.75;
  font-size: 15px;
  transition: transform 0.15s;
}
.crumb-label { opacity: 0.55; }
.crumb-mind { font-weight: 600; letter-spacing: 0.18em; }
.crumb-sep { opacity: 0.45; }
.crumb-category { opacity: 0.70; }
.site-chrome-brand:hover,
.site-chrome-brand:focus {
  opacity: 0.75;
  outline: none;
}
.site-chrome-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2D4E4E;          /* SVG uses currentColor */
}
.site-chrome-mark {
  font-family: "Futura", "Avenir Next", "Century Gothic", sans-serif;
  font-size: 16px;
  letter-spacing: 0.14em;
  font-weight: 500;
  text-transform: lowercase;
}

.site-chrome-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.site-chrome-icon {
  font-size: 24px;
  color: #2D4E4E;
  opacity: 0.60;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.15s, transform 0.15s;
  user-select: none;
}
.site-chrome-icon:hover,
.site-chrome-icon:focus {
  opacity: 1;
  transform: translateY(-1px);
  outline: none;
}
