/* Shared Enchanted Court UI — heroes, filters, flashes, empty states */

.court-page-hero {
  text-align: center;
  padding: 1.35rem max(1rem, env(safe-area-inset-left)) 1rem max(1rem, env(safe-area-inset-right));
  max-width: 42rem;
  margin: 0 auto;
}

.court-page-hero__eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 146, 42, 0.7);
  margin: 0 0 0.45rem;
}

.court-page-hero__title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.75rem, 5.5vw, 2.35rem);
  font-weight: 400;
  color: var(--gold-light, #e8b84b);
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.court-page-hero__sub {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  color: rgba(208, 185, 140, 0.82);
  margin: 0 auto;
  font-style: italic;
  line-height: 1.55;
  max-width: 36rem;
}

.court-page-hero__perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.court-page-hero__perks li {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 85, 32, 0.35);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(208, 185, 140, 0.78);
}

.court-section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201, 146, 42, 0.65);
}

.court-section-label__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 85, 32, 0.45), transparent);
}

.court-flash {
  max-width: 40rem;
  margin: 0 auto 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  text-align: center;
}

.court-flash--success {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.court-flash--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.court-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: 16px;
  border: 1px dashed rgba(122, 85, 32, 0.4);
  background: rgba(0, 0, 0, 0.18);
}

.court-empty__icon {
  font-size: 1.5rem;
  color: rgba(201, 146, 42, 0.5);
  margin-bottom: 0.65rem;
}

.court-empty__title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-light, #e8b84b);
  margin: 0 0 0.4rem;
}

.court-empty__text {
  font-family: 'EB Garamond', serif;
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(208, 185, 140, 0.6);
  margin: 0;
  line-height: 1.5;
}

/* Filter bars — horizontal scroll on mobile */
.court-filter-panel {
  padding: 0 max(14px, env(safe-area-inset-left)) 1rem max(14px, env(safe-area-inset-right));
  max-width: 72rem;
  margin: 0 auto;
}

.court-filter-panel__inner {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(122, 85, 32, 0.38);
  background: linear-gradient(165deg, rgba(24, 15, 8, 0.92), rgba(10, 6, 3, 0.96));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.court-filter-group {
  margin-bottom: 0.75rem;
}

.court-filter-group:last-child {
  margin-bottom: 0;
}

.court-filter-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201, 146, 42, 0.65);
  margin-bottom: 0.45rem;
}

.court-filter-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.court-filter-pills::-webkit-scrollbar {
  display: none;
}

.court-filter-pill {
  flex-shrink: 0;
  border: 1px solid rgba(122, 85, 32, 0.45);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(208, 185, 140, 0.88);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.court-filter-pill:hover,
.court-filter-pill.active,
.court-filter-pill.is-active {
  color: var(--gold-bright, #f5d070);
  border-color: rgba(201, 146, 42, 0.6);
  background: rgba(201, 146, 42, 0.1);
}

.court-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.court-filter-select {
  flex: 1 1 140px;
  min-width: 0;
  border: 1px solid rgba(122, 85, 32, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-pale, #e8d5a8);
  border-radius: 10px;
  padding: 10px 36px 10px 12px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9922a' d='M1 1.5L6 6l5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.court-filter-search {
  flex: 2 1 200px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(122, 85, 32, 0.45);
  border-radius: 10px;
  padding: 4px 10px 4px 12px;
  background: rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.court-filter-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text-pale, #e8d5a8);
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  padding: 6px 0;
}

.court-filter-search button {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: rgba(201, 146, 42, 0.85);
  cursor: pointer;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.court-filter-search button svg {
  display: block;
}

@media (min-width: 768px) {
  .court-filter-pills {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .court-filter-group--pills .court-filter-pills {
    flex-wrap: wrap;
  }
}
