/*
 * Competitions Page – filters and layout (Sumnervera)
 */

/* Filters bar – no box, elegant bar with eyebrow */
.comp-filters-bar {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(196, 168, 130, 0.2);
}
.light-theme .comp-filters-bar {
  border-bottom-color: rgba(28, 23, 20, 0.12);
}
.light-theme .comp-filters-eyebrow {
  color: var(--gold-dark);
}

.comp-filters-eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark, #A08660);
  margin-bottom: 1rem;
  font-weight: 500;
}

.dark-theme .comp-filters-eyebrow {
  color: var(--gold);
}

.comp-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
}

.comp-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 160px;
}

.comp-filter-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-grey);
  font-weight: 500;
}

.dark-theme .comp-filter-label {
  color: rgba(255, 255, 255, 0.6);
}

/* Dropdown – base (dark theme) */
.comp-filter-select {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.55rem 2.25rem 0.55rem 0.875rem;
  border: 1px solid rgba(196, 168, 130, 0.4);
  border-radius: 8px;
  background-color: rgba(28, 23, 20, 0.5);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C4A882' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.comp-filter-select:hover {
  border-color: rgba(196, 168, 130, 0.6);
  background-color: rgba(28, 23, 20, 0.65);
}

.comp-filter-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(196, 168, 130, 0.25);
}

.comp-filter-select option {
  background: #1C1714;
  color: #fff;
}

/* Dark theme – explicit */
.dark-theme .comp-filter-select {
  background-color: rgba(28, 23, 20, 0.6);
  border-color: rgba(196, 168, 130, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.dark-theme .comp-filter-select:hover {
  background-color: rgba(28, 23, 20, 0.75);
  border-color: rgba(196, 168, 130, 0.55);
}

.dark-theme .comp-filter-select option {
  background: #1C1714;
  color: #fff;
}

/* Light theme – ivory/cream, charcoal text, gold accents */
.light-theme .comp-filter-select {
  background-color: var(--ivory, #F3EDE3);
  border-color: rgba(28, 23, 20, 0.2);
  color: var(--charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231C1714' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

.light-theme .comp-filter-select:hover {
  border-color: var(--gold);
  background-color: var(--cream, #FAF8F4);
}

.light-theme .comp-filter-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(196, 168, 130, 0.3);
}

.light-theme .comp-filter-select option {
  background: var(--ivory);
  color: var(--charcoal);
}

@media (max-width: 575px) {
  .comp-filters-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .comp-filter-group {
    min-width: 0;
  }
}
