/* ═══════════════════════════════════════════════════════
   UPLIFT TRI-STATE — DIRECTORY PAGE STYLES
   Matches the existing dark-plum / gold / magenta vocabulary
   used on contestant pages. Mobile-first.
   ═══════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────
   1. HERO — directory landing + state pages share this
   ───────────────────────────────────────────────────── */
.directory-hero {
  position: relative;
  padding: 60px 0 50px;
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(255,126,201,0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(247,215,122,0.14), transparent 60%),
    linear-gradient(180deg, #1a0a26 0%, #2d1147 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(247,215,122,0.25);
}

.directory-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,0.9), transparent 50%),
    radial-gradient(1.5px 1.5px at 78% 32%, rgba(247,215,122,0.9), transparent 50%),
    radial-gradient(2px 2px at 25% 72%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 88% 80%, rgba(255,126,201,0.8), transparent 50%),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.85), transparent 50%);
  pointer-events: none;
  animation: twinkle 4s ease-in-out infinite;
}

.directory-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.directory-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
}

.directory-hero .lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.55;
}


/* ─────────────────────────────────────────────────────
   2. SEARCH BAR
   ───────────────────────────────────────────────────── */
.directory-search-wrap {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.directory-search-wrap input[type="search"],
.directory-search-wrap input[type="text"] {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-family: inherit;
  font-size: 1.05rem;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(247,215,122,0.45);
  border-radius: 14px;
  outline: none;
  transition: border-color 180ms, background 180ms, box-shadow 180ms;
  box-sizing: border-box;
}

.directory-search-wrap input:focus {
  border-color: var(--gold, #f7d77a);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(247,215,122,0.18);
}

.directory-search-wrap input::placeholder {
  color: rgba(255,255,255,0.55);
}

.directory-search-wrap::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7d77a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────
   3. STATE CARDS — landing page only
   ───────────────────────────────────────────────────── */
.state-cards-section {
  padding: 50px 0 30px;
  background: linear-gradient(180deg, #2d1147 0%, #1a0a26 100%);
}

.state-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .state-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.state-card {
  display: block;
  padding: 28px 24px;
  background:
    radial-gradient(180px 120px at 20% 20%, rgba(247,215,122,0.10), transparent 60%),
    linear-gradient(135deg, rgba(247,215,122,0.10) 0%, rgba(181,59,140,0.15) 100%);
  border: 1.5px solid rgba(247,215,122,0.35);
  border-radius: 16px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: transform 220ms, border-color 220ms, background 220ms, box-shadow 220ms;
}

.state-card:hover,
.state-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold, #f7d77a);
  background:
    radial-gradient(220px 160px at 20% 20%, rgba(247,215,122,0.18), transparent 60%),
    linear-gradient(135deg, rgba(247,215,122,0.18) 0%, rgba(181,59,140,0.22) 100%);
  box-shadow: 0 16px 40px rgba(247,215,122,0.18);
}

.state-card-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--gold, #f7d77a);
  margin: 0 0 6px;
}

.state-card-count {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.state-card-arrow {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold, #f7d77a);
  background: rgba(247,215,122,0.10);
  border: 1px solid rgba(247,215,122,0.4);
  border-radius: 999px;
}


/* ─────────────────────────────────────────────────────
   4. STATS STRIP — landing page only
   ───────────────────────────────────────────────────── */
.directory-stats {
  padding: 30px 0;
  background: #1a0a26;
  border-top: 1px solid rgba(247,215,122,0.15);
  border-bottom: 1px solid rgba(247,215,122,0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.stat-block {
  padding: 10px 8px;
}

.stat-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 900;
  color: var(--gold, #f7d77a);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}


/* ─────────────────────────────────────────────────────
   5. FILTERS — state pages only
   ───────────────────────────────────────────────────── */
.directory-filters {
  padding: 24px 0;
  background: #1a0a26;
  border-bottom: 1px solid rgba(247,215,122,0.15);
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 540px) {
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.filter-control {
  position: relative;
}

.filter-control label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  margin-bottom: 6px;
}

.filter-control select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(247,215,122,0.40);
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23f7d77a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 1 6 7 11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  cursor: pointer;
  transition: border-color 180ms, background-color 180ms;
}

.filter-control select:focus,
.filter-control select:hover {
  border-color: var(--gold, #f7d77a);
  outline: none;
}

.filter-control select option {
  background: #2d1147;
  color: #fff;
}


/* ─────────────────────────────────────────────────────
   6. CONTESTANT GRID — used in both modes
   ───────────────────────────────────────────────────── */
.directory-grid-section {
  padding: 30px 0 60px;
  background: linear-gradient(180deg, #1a0a26 0%, #2d1147 100%);
  min-height: 60vh;
}

.result-count {
  text-align: center;
  margin: 0 0 22px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.contestant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 540px) {
  .contestant-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 880px) {
  .contestant-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}


/* ─────────────────────────────────────────────────────
   7. CONTESTANT CARD
   ───────────────────────────────────────────────────── */
.contestant-card {
  display: block;
  background: linear-gradient(180deg, rgba(247,215,122,0.06) 0%, rgba(181,59,140,0.10) 100%);
  border: 1.5px solid rgba(247,215,122,0.30);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
}

.contestant-card:hover,
.contestant-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold, #f7d77a);
  box-shadow: 0 12px 28px rgba(247,215,122,0.18);
  outline: none;
}

.card-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #1a0a26;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(247,215,122,0.22), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(181,59,140,0.28), transparent 55%),
    linear-gradient(135deg, #2d1147 0%, #1a0a26 100%);
}

/* subtle shimmer sweep so the placeholder reads as intentional, not broken */
.card-photo-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(247,215,122,0.10) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: placeholder-shimmer 3.4s ease-in-out infinite;
}
@keyframes placeholder-shimmer {
  0%, 100% { transform: translateX(-100%); }
  55%      { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .card-photo-placeholder::after { animation: none; }
}

.card-photo-placeholder .placeholder-crown {
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(247,215,122,0.9);
  text-shadow: 0 4px 14px rgba(247,215,122,0.35), 0 2px 6px rgba(0,0,0,0.4);
}

.card-photo-placeholder .placeholder-soon {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(247,215,122,0.14);
  border: 1px solid rgba(247,215,122,0.4);
}

.card-body {
  padding: 12px 14px 16px;
}

.card-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}

@media (min-width: 540px) {
  .card-name { font-size: 1.12rem; }
}

.card-division {
  font-size: 0.78rem;
  color: var(--gold, #f7d77a);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-location {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  font-style: italic;
  line-height: 1.3;
}


/* ─────────────────────────────────────────────────────
   8. FEATURED SECTION HEADING (landing only)
   ───────────────────────────────────────────────────── */
.featured-section {
  padding: 30px 0 50px;
  background: linear-gradient(180deg, #2d1147 0%, #1a0a26 100%);
}

.featured-section h2 {
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold, #f7d77a);
  margin: 0 0 6px;
}

.featured-section .featured-sublabel {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 28px;
  font-style: italic;
}


/* ─────────────────────────────────────────────────────
   9. PAGINATION
   ───────────────────────────────────────────────────── */
.pagination {
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(247,215,122,0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, color 180ms;
}

.page-btn:hover:not(:disabled) {
  background: rgba(247,215,122,0.14);
  border-color: var(--gold, #f7d77a);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-btn-current {
  background: var(--gold, #f7d77a);
  color: #2d1147;
  border-color: var(--gold, #f7d77a);
}

.page-ellipsis {
  padding: 0 4px;
  color: rgba(255,255,255,0.5);
}


/* ─────────────────────────────────────────────────────
   10. EMPTY STATE
   ───────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 24px;
  color: rgba(255,255,255,0.85);
}

.empty-state .muted {
  margin-top: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
}


/* ─────────────────────────────────────────────────────
   11. CTA STRIP (apply CTA on directory pages)
   ───────────────────────────────────────────────────── */
.directory-cta {
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(247,215,122,0.10) 0%, rgba(181,59,140,0.15) 100%);
  border-top: 1px solid rgba(247,215,122,0.25);
  text-align: center;
}

.directory-cta h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  color: var(--gold, #f7d77a);
  margin: 0 0 10px;
}

.directory-cta p {
  max-width: 520px;
  margin: 0 auto 18px;
  color: rgba(255,255,255,0.85);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.65; }
}
