/* ===== Apex Awards page ===== */

.apex-section { padding: 3.5rem 1rem; }
.apex-section .header-container { text-align: center; }
.apex-lead { max-width: 680px; margin: 0.75rem auto 0; color: var(--muted, #b9bdc4); line-height: 1.6; }

/* Top 25 grid */
.apex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-width: var(--maxw, 1200px);
  margin: 2rem auto 0;
}
.apex-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
  padding: 1rem 1.1rem;
  background: var(--surface, #181818);
  border: 1px solid var(--line, #2a2a2a);
  border-radius: 12px;
  color: var(--text, #fff);
  font-family: inherit;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.apex-card:hover,
.apex-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold-solid);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 0 1px var(--gold-solid);
  outline: none;
}
.apex-rank {
  flex-shrink: 0;
  width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f5d77a, var(--gold-solid));
  color: #14110a;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  border-radius: 50%;
}
.apex-card-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.apex-card-name { font-weight: 700; color: #fff; line-height: 1.25; }
.apex-card-loc { font-size: 0.82rem; color: var(--muted, #9aa0a6); }
.apex-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.apex-tag {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.15rem 0.5rem; border-radius: 999px;
  background: rgba(212,175,55,0.12); color: var(--gold-solid);
  border: 1px solid rgba(212,175,55,0.3);
}

/* Play-style filter pills */
.apex-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  max-width: var(--maxw, 1200px);
  margin: 1.6rem auto 0;
}
.apex-filter {
  padding: 0.4rem 0.85rem; border-radius: 999px;
  border: 1px solid #333; background: #1a1a1a; color: #cfd2d6;
  font-weight: 600; font-size: 0.8rem; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.apex-filter:hover { border-color: var(--gold-solid); color: var(--gold-solid); }
.apex-filter.is-active {
  background: var(--gold-solid); color: #14110a; border-color: var(--gold-solid);
}
/* Author rule needed so the `hidden` attr beats .apex-card's display:flex */
.apex-card[hidden] { display: none; }
.apex-nomatch {
  max-width: var(--maxw, 1200px);
  margin: 1.5rem auto 0; color: var(--muted, #9aa0a6); text-align: center;
}

/* Category awards */
.apex-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  max-width: var(--maxw, 1200px);
  margin: 2rem auto 0;
}
.apex-cat {
  display: flex; flex-direction: column; gap: 0.4rem; text-align: left;
  padding: 1.25rem;
  background: linear-gradient(135deg, #1c1500, #14110a);
  border: 1px solid var(--gold-solid);
  border-radius: 12px;
  color: var(--text, #fff);
  font-family: inherit;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.apex-cat:hover,
.apex-cat:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.5); outline: none; }
.apex-cat-award {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-solid);
}
.apex-cat-winner { font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 700; color: #fff; }
.apex-cat-why { font-size: 0.88rem; color: var(--muted, #b9bdc4); line-height: 1.5; }

.apex-error { text-align: center; color: var(--muted, #9aa0a6); }

/* Modal */
.apex-modal[hidden] { display: none; }
.apex-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.apex-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(2px); }
.apex-modal-card {
  position: relative;
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  background: #141414;
  border: 1px solid var(--gold-solid);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7);
  animation: apexIn .2s ease;
}
@keyframes apexIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.apex-modal-close {
  position: absolute; top: 0.7rem; right: 0.8rem;
  width: 2rem; height: 2rem; line-height: 1;
  background: transparent; border: none; color: #888;
  font-size: 1.6rem; cursor: pointer; border-radius: 6px;
}
.apex-modal-close:hover { color: var(--gold-solid); }

.apex-modal-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 0.8rem; padding-right: 2rem; }
.apex-modal-rank {
  flex-shrink: 0; width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f5d77a, var(--gold-solid));
  color: #14110a; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem;
  border-radius: 50%;
}
.apex-modal-name { font-family: 'Sora', sans-serif; font-size: 1.4rem; color: var(--gold-solid); margin: 0; line-height: 1.2; }
.apex-modal-loc { font-size: 0.85rem; color: var(--muted, #9aa0a6); margin-top: 0.15rem; }
.apex-modal-summary { color: #d4d7db; line-height: 1.6; margin: 0.8rem 0; }

.apex-facts { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.apex-fact { display: flex; gap: 0.8rem; font-size: 0.9rem; color: #cfd2d6; }
.apex-fact-label {
  flex-shrink: 0; width: 7.5rem; color: var(--gold-solid);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding-top: 0.1rem;
}

.apex-socials { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.apex-social {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  border: 1px solid #333; background: #1a1a1a; color: #cfd2d6;
  font-weight: 600; font-size: 0.8rem; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.apex-social:hover { border-color: var(--gold-solid); color: var(--gold-solid); }
.apex-social-glyph { font-weight: 700; }
.apex-social--x .apex-social-glyph { font-size: 0.95rem; }

.apex-modal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.apex-btn {
  flex: 1 1 auto; text-align: center;
  padding: 0.6rem 1rem; border-radius: 8px;
  border: 1px solid #333; background: #1e1e1e; color: #ddd;
  font-weight: 600; font-size: 0.85rem; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.apex-btn:hover { border-color: var(--gold-solid); color: var(--gold-solid); }
.apex-btn--gold { background: var(--gold-solid); color: #14110a; border-color: var(--gold-solid); }
.apex-btn--gold:hover { filter: brightness(1.08); color: #14110a; }
