/* Chat Command Popup Styles */

.command-popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

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

.command-popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.command-popup-content {
  position: relative;
  background: var(--bg, #0e0e10);
  border: 1px solid var(--border, #2f2f35);
  border-radius: var(--radius-lg, 12px);
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

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

.command-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border, #2f2f35);
  flex-shrink: 0;
}

.command-popup-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #efeff1);
}

.command-popup-close {
  background: transparent;
  border: none;
  color: var(--muted, #adadb8);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius, 8px);
  transition: all 0.2s ease;
}

.command-popup-close:hover {
  background: var(--panel, #18181b);
  color: var(--text, #efeff1);
}

.command-popup-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  color: var(--text, #efeff1);
}

.command-popup-body h1,
.command-popup-body h2,
.command-popup-body h3 {
  color: var(--text, #efeff1);
  margin-top: 0;
}

.command-popup-body p {
  line-height: 1.6;
  color: var(--text-secondary, #adadb8);
}

.command-popup-body a {
  color: var(--accent, #9146ff);
  text-decoration: none;
}

.command-popup-body a:hover {
  text-decoration: underline;
}

.command-popup-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius, 8px);
}

.command-popup-body .pb-button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent, #9146ff);
  color: white;
  border: none;
  border-radius: var(--radius, 8px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 8px 0;
}

.command-popup-body .pb-button:hover {
  background: var(--primary-hover, #7c3aed);
}

/* Responsive */
@media (max-width: 768px) {
  .command-popup-content {
    max-width: 95vw;
    max-height: 95vh;
    width: 95vw;
  }

  .command-popup-header {
    padding: 16px;
  }

  .command-popup-body {
    padding: 16px;
  }
}
