/* =======================
   Events Archive
======================= */

/* Base container */
.container {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Archive Header */
.archive-header {
  text-align: center;
}

.archive-title {
  font-size: 2rem; /* mobile base */
  font-weight: 200;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

.archive-title-line {
  width: 100px;
  height: 1px;
  background: #1f2937;
  margin: 0 auto;
}

/* Filters Wrapper */
.events-filters-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
}

/* Event Count */
.events-count-display {
  text-align: center;
}

.count-number {
  font-size: 2rem;
  font-weight: var(--font-weight-light);
  color: var(--text-primary);
  display: block;
}

.count-label {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-primary);
}

/* Filter Form – mobile first */
.events-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Filter Group */
.filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

/* Filter Labels */
.filter-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
}

/* Custom Dropdown - Mobile First */
.custom-dropdown-wrapper {
  width: 100%;
}

.custom-dropdown {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.dropdown-trigger {
  width: 13rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  font-size: 0.9375rem;
  color: #111;
  transition: all 0.2s ease;
}

.dropdown-trigger:hover,
.dropdown-trigger:focus {
  border-color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  outline: none;
}

.arrow {
  font-size: 2rem;
  transition: transform 0.3s ease;
  line-height: 0.5;
}

.dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 0.25rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-options li {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  color: #111;
  list-style: none;
  transition: background 0.2s ease;
}

.dropdown-options li:hover {
  background: #f0f0f0;
}

.dropdown-options li.active {
  font-weight: 600;
}

/* Arrow rotates when open */
/* .custom-dropdown.open .arrow {
  transform: rotate(180deg);
} */

/* Open state */
.custom-dropdown.open .dropdown-options {
  display: block;
}

/* Checkbox */
.toggle-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: #261313;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #999;
  transition: all 0.2s ease;
}

.toggle-checkbox:checked {
  border-color: #261313;
  background-color: #261313;
}

/* Checkbox Label */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: #111;
  cursor: pointer;
}

/* Empty State */
.events-empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-text {
  font-size: 1.25rem;
  font-weight: 300;
  color: #9ca3af;
}

/* =======================
   Responsive
======================= */

/* Tablet (min-width: 768px) */

@media (min-width: 768px) {
  .events-filter-form {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
    width: auto;
  }

  .filter-group {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 0.75rem;
  }

  .dropdown-trigger {
    font-size: 1rem;
    padding: 0.625rem 1.25rem;
  }

  .dropdown-options li {
    font-size: 1rem;
    padding: 0.625rem 1.25rem;
  }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
  .container {
    gap: 5rem;
  }

  .filter-select {
    font-size: 1rem;
    padding: 0.625rem 1.5rem;
  }

  .toggle-checkbox {
    width: 22px;
    height: 22px;
  }

  .toggle-label {
    font-size: 0.95rem;
  }

  .archive-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
  }

  .count-number {
    font-size: 4rem;
  }
}

/* Large Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
  .filter-select {
    font-size: 1.05rem;
  }

  .toggle-label {
    font-size: 1rem;
  }

  .archive-title {
    font-size: clamp(2.75rem, 4vw, 3rem);
  }
}
