/* =====================================================================
   timebar.css — barra vertical de horários (briefing §9)
   ---------------------------------------------------------------------
   - branca com opacidade 0.3 (--color-timebar-bg)
   - sem borda lateral; divisórias horizontais pretas
   - rótulos na vertical, texto branco
   - área ativa escurecida + marca amarela
   Estrutura montada por timebar.js:
   <aside id="timebar" class="timebar">
     <button class="timebar__btn is-active"><span class="timebar__label">Manhã</span></button>
     …
   </aside>
   ===================================================================== */

.timebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: var(--guide-height);
  z-index: 31;
  display: flex;
  flex-direction: column;
  width: var(--timebar-width);
  background: var(--color-timebar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.timebar__btn {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-top: 1px solid var(--color-timebar-divider);
  background: transparent;
  color: var(--color-timebar-text);
  transition: background-color 0.35s linear;
}

/* Só as divisões internas são desenhadas (sem borda lateral). */
.timebar__btn:first-child {
  border-top: 0;
}

.timebar__btn:hover {
  background: rgba(0, 0, 0, 0.22);
}

.timebar__btn.is-active {
  background: var(--color-timebar-active-bg);
}

/* Marca do horário ativo (fina, na borda esquerda da área). */
.timebar__btn.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-timebar-active-mark);
}

/* Durante TRANSITION a barra continua visível, mas não responde. */
.timebar.is-locked .timebar__btn {
  opacity: 0.75;
}

.timebar__label {
  color: var(--color-timebar-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  /* Texto na vertical, lido de baixo para cima. */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  /* Contraste: fundo branco translúcido + texto branco pede um leve alívio. */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
