@charset "UTF-8";
/* modal.css — modal overlay, modal content, forms, rating input */
/* Modal overlay */
.modal {
  display: none;
  position: fixed;
  /* keep modal above Bootstrap's backdrop (1050) */
  z-index: 1060;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Modal content box */
.modal-content {
  background-color: #141414;
  color: #f5f5ff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  font-size: 0.95rem;
  font-family: "Monaspace Neon", monospace;
}

/* Close button */
.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #fff;
}

/* Form styling inside modal */
#playerForm label {
  display: block;
  margin-bottom: 0.8em;
}

#playerForm input,
#playerForm select {
  width: 100%;
  padding: 4px 6px;
  margin-top: 2px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #f5f5ff;
}

/* Modal buttons */
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.6em;
  margin-top: 1em;
}

.modal-buttons .btn {
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f5f5ff;
}

.modal-buttons .btn-primary {
  background: #7b3fff;
  border: 1px solid #a463ff;
  color: #f5f5ff;
}

.modal-buttons .btn-primary:hover {
  background: #a463ff;
}

.modal-buttons .btn-secondary {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f5f5ff;
}

.modal-buttons .btn-secondary:hover {
  background: #555;
}

/* College autocomplete dropdown */
.college-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.9rem;
  display: none;
}

.college-dropdown div {
  padding: 6px 8px;
  cursor: pointer;
  color: #f5f5ff;
  transition: background 0.15s ease;
}

.college-dropdown div:hover {
  background: rgba(123, 63, 255, 0.1);
  color: #f5f5ff;
}

/* Rating input */
.rating-input {
  display: flex;
  gap: 6px;
  font-size: 1.35rem;
  cursor: pointer;
  user-select: none;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 20, 20, 0.5);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.05);
}

.rating-input .modal-star {
  cursor: pointer;
  font-size: 1.4rem;
  transition: color 0.15s ease, transform 0.15s ease, text-shadow 0.15s ease;
  padding: 0.1rem 0.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
}

.rating-input .modal-star:hover {
  transform: scale(1.15);
}

#playerModal {
  --modal-accent: #7b3fff;
}

#playerModal .modal-body {
  background: linear-gradient(135deg, rgba(123, 63, 255, 0.18), rgba(5, 5, 12, 0.75));
  border-radius: 12px;
  padding: 1.5rem;
}

#playerModal .modal-header {
  border: none;
  background: transparent;
  padding-bottom: 0;
}

#playerModal .modal-content {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

#playerModal form .form-control:focus {
  border-color: var(--modal-accent);
  box-shadow: 0 0 12px rgba(123, 63, 255, 0.35);
}
