/**
 * Sidebar Navigation — Standalone CSS for archive pages
 *
 * @package tgs
 */

/* --- Filter toggle button --- */
.tgs-pp-sidebar-toggle {
  float: right;
  color: #302921;
  padding: 12px 24px;
  position: relative;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-left: auto;
}

.tgs-pp-sidebar-toggle::before {
  content: '';
  background-color: #C37430;
  height: 20px;
  width: 3px;
  position: absolute;
  top: 10px;
  left: 10px;
}

.tgs-pp-sidebar-toggle:hover {
  opacity: 0.75;
}

/* --- Grid needs relative positioning for sidebar --- */
.tgs-archive__wrapper {
  position: relative;
}

/* --- Sidebar container --- */
.tgs-pp-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 330px;
  height: 100%;
  max-height: fit-content;
  overflow-y: auto;
  background: #fff;
  z-index: 10;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  border: 1px solid #C37430;
  border-radius: 10px;
}

.tgs-pp-sidebar.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* --- Header with close button --- */
.tgs-pp-sidebar__header {
  display: flex;
  justify-content: right;
  padding-right: 5px;
}

.tgs-pp-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  color: #000;
}

.tgs-pp-sidebar__close:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

/* --- Sidebar content --- */
.tgs-pp-sidebar__content {
  padding: 20px;
}

/* --- Filter groups --- */
.tgs-pp-sidebar__group {
  margin-bottom: 24px;
}

.tgs-pp-sidebar__group-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tgs-pp-sidebar__group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tgs-pp-sidebar__group-list li {
  margin-bottom: 8px;
}

.tgs-pp-sidebar__group-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #302921;
  text-decoration: none;
  cursor: pointer;
}

.tgs-pp-sidebar__group-list a:hover {
  color: #C37430;
}

.tgs-pp-sidebar__group-list a span {
  color: #888;
  font-size: 12px;
}

/* ============================================================================
   Mobile <= 768px
   ============================================================================ */
@media (width <= 768px) {
  .tgs-pp-sidebar {
    width: 100%;
    border-radius: 0;
  }
}
