/* upcoming.css — Upcoming Tournaments page styles */

#upcoming-content {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 24px;
}

/* ── Loading state ─────────────────────────────────────────────── */
#upcoming-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px;
}

/* ── Page header nav links ─────────────────────────────────────── */
.upcoming-nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ── Structured card header (uc-*) ─────────────────────────────── */
.uc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  min-height: 100px;
  cursor: pointer;
  transition: background 0.2s;
}

.uc-header:hover {
  background: var(--purple-dim);
}

.uc-header:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: -2px;
  border-radius: 8px 8px 0 0;
}

/* ── Left info block: date stacked above name ──────────────────── */
.uc-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.uc-date {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uc-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Signup button — always on the right, never overlaps text ──── */
.uc-signup-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background: var(--gold);
  color: #111;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  pointer-events: all;
  transition: opacity 0.2s, transform 0.15s;
}

.uc-signup-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ── Expanded body content ─────────────────────────────────────── */
.upcoming-expanded {
  padding: 24px 20px;
  background: var(--purple-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── "SIGN UP HERE" gold heading link ─────────────────────────── */
.upcoming-signup-heading {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
  transition: opacity 0.2s;
}

.upcoming-signup-heading:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Centred tweet embed ───────────────────────────────────────── */
.upcoming-embed {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Override Twitter's default left-align inside the embed container */
.upcoming-embed .twitter-tweet {
  margin: 0 auto !important;
}

/* ── Fallback text when body has no content ────────────────────── */
.upcoming-no-info {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Empty state when no tournaments exist ─────────────────────── */
.upcoming-empty-state {
  padding: 48px 24px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upcoming-twitter-link {
  color: var(--purple-bright);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  transition: opacity 0.2s;
}

.upcoming-twitter-link:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .upcoming-twitter-link {
    transition: none;
  }
}

/* ── Current Signups card ──────────────────────────────────────── */
.uc-signups-card {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.uc-signups-header {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple-bright);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-3);
}

.uc-signups-count {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  padding: 8px 16px 4px;
}

.uc-signups-list {
  display: flex;
  flex-direction: column;
}

.uc-signup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-bottom: 1px solid var(--border);
}

.uc-signup-row:last-child {
  border-bottom: none;
}

.uc-signup-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: var(--text-dim);
  min-width: 20px;
  flex-shrink: 0;
}

.uc-signup-players {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ── Loading placeholder ───────────────────────────────────────── */
.uc-signups-loading {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  padding: 12px 0;
  text-align: center;
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .upcoming-card-header,
  .uc-header,
  .signup-btn,
  .uc-signup-btn,
  .upcoming-signup-heading {
    transition: none;
  }
}

/* ── Signup count indicator (collapsed header) ─────────────────── */
.signup-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.signup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.signup-dot.is-open {
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: signup-pulse 1.4s ease-in-out infinite;
}

.signup-dot.is-full {
  background: #22c55e;
  box-shadow: none;
  animation: none;
}

@keyframes signup-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(239, 68, 68, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0   rgba(239, 68, 68, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .signup-dot.is-open { animation: none; }
}

/* ── WL (waitlist) badge ────────────────────────────────────────── */
.wl-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.05em;
}
