/* ============================================================================ */
/* CONCERT FILTER SIDEBAR                                                       */
/* ============================================================================ */

/* ---------- Overlay / Backdrop ---------- */
.concert-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

.concert-filter-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Sidebar Panel ---------- */
.concert-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  border-right: 1px solid rgba(143, 0, 0, 0.3);
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
}

.concert-sidebar.open {
  transform: translateX(0);
}

/* ---------- Sidebar Header ---------- */
.concert-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(143, 0, 0, 0.25);
}

.concert-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.concert-sidebar-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.concert-sidebar-close:hover {
  color: #fff;
}

/* ---------- Sidebar Controls (counter + reset) ---------- */
.concert-sidebar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.concert-filter-counter {
  font-size: 0.82rem;
  color: #999;
  font-weight: 500;
}

.concert-filter-counter strong {
  color: #f5f5f5;
  font-weight: 700;
}

.concert-filter-reset {
  background: none;
  border: 1px solid #3a3a3a;
  color: #888;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.concert-filter-reset:hover:not(:disabled) {
  color: #f5f5f5;
  border-color: var(--wwp-red, #8f0000);
  background: rgba(143, 0, 0, 0.15);
}

.concert-filter-reset:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---------- Band List ---------- */
.concert-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 0, 0, 0.4) transparent;
}

.concert-sidebar-list::-webkit-scrollbar {
  width: 5px;
}

.concert-sidebar-list::-webkit-scrollbar-track {
  background: transparent;
}

.concert-sidebar-list::-webkit-scrollbar-thumb {
  background: rgba(143, 0, 0, 0.4);
  border-radius: 3px;
}

/* ---------- Checkbox Item ---------- */
.concert-filter-item {
  display: flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.concert-filter-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.concert-filter-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid #3a3a3a;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin-right: 0.75rem;
}

.concert-filter-item input[type="checkbox"]:checked {
  background: var(--wwp-red, #8f0000);
  border-color: var(--wwp-red, #8f0000);
}

.concert-filter-item input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.concert-filter-item input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--wwp-red-light, #b00000);
  outline-offset: 2px;
}

.concert-filter-label {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ccc;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.concert-filter-item:hover .concert-filter-label {
  color: #f5f5f5;
}

.concert-filter-item input[type="checkbox"]:checked ~ .concert-filter-label {
  color: #fff;
  font-weight: 600;
}

.concert-filter-count {
  font-size: 0.75rem;
  color: #666;
  font-weight: 600;
  margin-left: 0.5rem;
  min-width: 1.6rem;
  text-align: right;
}

/* ---------- Filter Button (in toggle bar) ---------- */
.concert-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  background: transparent;
  border: 2px solid #3a3a3a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.concert-filter-btn:hover {
  color: #f5f5f5;
  border-color: var(--wwp-red, #8f0000);
  background: rgba(143, 0, 0, 0.1);
}

.concert-filter-btn.has-filters {
  color: #f5f5f5;
  border-color: var(--wwp-red, #8f0000);
}

.concert-filter-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Filter Badge ---------- */
.concert-filter-badge {
  position: absolute;
  top: -15px;
  right: -13px;
  background: var(--wwp-red, #8f0000);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(143, 0, 0, 0.5);
}

.concert-filter-btn.has-filters .concert-filter-badge {
  display: flex;
}

/* ---------- Hidden rows ---------- */
.concert-row.filtered-hidden {
  display: none !important;
}

.month-section.filtered-hidden {
  display: none !important;
}

.year-section.filtered-hidden {
  display: none !important;
}

/* ---------- Body lock when sidebar open ---------- */
body.sidebar-open {
  overflow: hidden;
}

/* ============================================================================ */
/* RESPONSIVE                                                                    */
/* ============================================================================ */

@media (max-width: 767px) {
  .concert-sidebar {
    width: 85vw;
    max-width: 340px;
  }

  .concert-filter-btn {
    width: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }

  .concert-filter-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 575px) {
  .concert-filter-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }

  .concert-sidebar-title {
    font-size: 1rem;
  }

  .concert-filter-item {
    padding: 0.5rem 1rem;
  }
}
