/* Bidding System Selector Modal Styles */

.bidsys-selector-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999 !important; /* Very high z-index to ensure it's above game elements */
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.bidsys-selector-content {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  position: relative;
  z-index: 100000 !important; /* Ensure content is above overlay */
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.bidsys-selector-content h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.35rem;
  color: #212121;
  flex-shrink: 0;
}

.bidsys-selector-intro {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  flex-shrink: 0;
}

.bidsys-selector-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.bidsys-selector-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bidsys-selector-option {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: #fafafa;
}

.bidsys-selector-option:hover {
  border-color: #00BFA5;
  background: #f0fdfa;
}

.bidsys-selector-option input[type="radio"] {
  margin-right: 1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
  cursor: pointer;
}

.bidsys-selector-option input[type="radio"]:checked + .bidsys-selector-option__content {
  color: #00BFA5;
}

.bidsys-selector-option:has(input[type="radio"]:checked) {
  border-color: #00BFA5;
  background: #e0f7f4;
}

.bidsys-selector-option__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bidsys-selector-option__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #212121;
}

.bidsys-selector-option__note {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
}

.bidsys-selector-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.bidsys-selector-save,
.bidsys-selector-cancel {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid;
  transition: all 0.2s ease;
}

.bidsys-selector-save {
  background: #00BFA5;
  border-color: #00BFA5;
  color: white;
}

.bidsys-selector-save:hover {
  background: #00a085;
  border-color: #00a085;
}

.bidsys-selector-cancel {
  background: transparent;
  border-color: #ccc;
  color: #666;
}

.bidsys-selector-cancel:hover {
  border-color: #999;
  color: #333;
}

.bidsys-selector-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Change Bidding System Button */
#change-bidsys-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: #00BFA5;
  color: white;
  border: 2px solid #00BFA5;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 191, 165, 0.3);
  transition: all 0.2s ease;
}

#change-bidsys-btn:hover {
  background: #00a085;
  border-color: #00a085;
  box-shadow: 0 6px 16px rgba(0, 191, 165, 0.4);
  transform: translateY(-2px);
}

#change-bidsys-btn:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .bidsys-selector-content {
    padding: 1.5rem;
    max-width: 95%;
  }
  
  .bidsys-selector-option {
    padding: 0.75rem;
  }
  
  #change-bidsys-btn {
    bottom: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

