/* MIT License: see LICENSE at project root. */
/* Randomizerkaarten, hun statuslabels en de koppelmodal. Hoort bij
   `randomizers.js`. */

.randomizer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(45, 226, 193, 0.08), rgba(255, 179, 122, 0.06)),
    rgba(9, 15, 27, 0.65);
}

.randomizer-summary-title {
  font-weight: 700;
  color: #f8fbff;
}

.randomizer-list {
  display: grid;
  gap: 0.6rem;
}

.randomizer-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.join-card {
  display: grid;
  gap: 0.6rem;
}

.join-qr {
  width: 120px;
  height: 120px;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  padding: 0.35rem;
}

.randomizer-card {
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(45, 226, 193, 0.1), rgba(255, 179, 122, 0.08)),
    rgba(9, 15, 27, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.randomizer-header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: flex-start;
}

.randomizer-title {
  font-weight: 700;
  color: #f8fbff;
}

.randomizer-details {
  color: var(--muted);
  font-size: 0.85rem;
}

.randomizer-name {
  color: #f5f8ff;
  font-size: 0.85rem;
}

.randomizer-id {
  font-size: 0.75rem;
}

.randomizer-body {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.randomizer-qr {
  width: 140px;
  height: 140px;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  padding: 0.35rem;
}

.randomizer-link-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.randomizer-link {
  display: block;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  border-radius: 0.55rem;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  color: var(--text);
  font-size: 0.75rem;
  word-break: break-all;
  font-family: "Space Mono", "SFMono-Regular", ui-monospace, monospace;
}

.randomizer-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.randomizer-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1.5rem;
}

.randomizer-modal.is-open {
  display: flex;
}

.randomizer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(6px);
}

.randomizer-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.randomizer-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tag.randomizer-status.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #a7f3d0;
  border-color: rgba(34, 197, 94, 0.35);
}

.tag.randomizer-status.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
}

.tag.randomizer-status.denied {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}

.tag.randomizer-status.available {
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.35);
}
