/* sidebar.css — Right-side collections sidebar */

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: #B2D8D8; /* --c2 */
  border-left: 1px solid #a3c9c9; /* --c3 */
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 50;
  overflow-y: auto;
  padding: 1.5rem 1.2rem;
  color: #141314;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar h2 {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  color: rgba(20, 19, 20, 0.8);
}

.sidebar-collections {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-collections li {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(74, 143, 168, 0.22);
}

.sidebar-collections li:last-child {
  border-bottom: none;
}

.sidebar-collections a {
  display: block;
  padding: 0.6rem 0.8rem;
  color: #141314;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Em-dash prefix — handwritten ink feel (idea 4) */
.sidebar-collections a::before {
  content: '— ';
  color: rgba(74, 143, 168, 0.6);
  font-family: 'Georgia', serif;
}

.sidebar-collections a:hover,
.sidebar-collections a:focus {
  background: rgba(74, 143, 168, 0.18);
  color: #fff;
}

.sidebar-collections a:hover::before,
.sidebar-collections a:focus::before {
  color: rgba(142, 198, 197, 0.9);
}

.sidebar-toggle {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 51;
  background: #B2D8D8; /* --c2 */
  border: 1px solid #a3c9c9; /* --c3 */
  border-right: none;
  color: #202024;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
  border-radius: 8px 0 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: right 0.35s ease, background 0.2s ease;
}

.sidebar-toggle:hover {
  background: rgba(13, 31, 45, 0.92); /* --c1 darker */
}

.sidebar-toggle.shifted {
  right: 260px;
}

.sidebar-toggle-cat {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
}

.sidebar-toggle-text {
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0.8;
}
