/* ========================================
   PASS 1: JURY MODALS - STRUCTURE & WIRING
   ======================================== */

/* Modal system for jury member bios */
.jury-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jury-modal.active {
  display: flex;
  opacity: 1;
}

/* Modal content box */
.jury-modal-content {
  background: linear-gradient(135deg, rgba(20, 5, 5, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 8px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modal close button */
.jury-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  background: transparent;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.jury-modal-close:hover {
  color: rgba(255, 255, 255, 1);
}

.jury-modal-close:focus {
  outline: 2px solid #8B0000;
  outline-offset: 2px;
}

/* Modal title */
.jury-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

/* Modal role/subtitle */
.jury-modal-role {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Modal bio text */
.jury-modal-bio {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

/* Clickable cards with modal trigger */
.juror-card[data-modal] {
  cursor: pointer;
}

.juror-card[data-modal]:hover {
  transform: translateY(-4px);
  filter: grayscale(0%);
}

/* Accessibility: focus states */
.juror-card[data-modal]:focus-visible {
  outline: 2px solid #8B0000;
  outline-offset: 2px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .jury-modal-content {
    padding: 1.5rem;
    max-width: 95%;
  }

  .jury-modal-title {
    font-size: 1.5rem;
  }

  .jury-modal-close {
    top: 1rem;
    right: 1rem;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}
