/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  line-height: 1;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background-color: var(--bg);
  color: var(--text);
}

.modal-content h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  color: var(--text);
}

.modal-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  padding: 0 1.5rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-body p {
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.modal-body kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.4rem;
  font-family: monospace;
  font-size: 0.75rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  min-width: 1.5rem;
  text-align: center;
  color: var(--text);
}

.modal-body > div {
  display: flex;
  flex-direction: column;
}

/* Scrollbar */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }

  .modal-content h2 {
    font-size: 1.125rem;
    padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
}

/* Made with Bob */
