/* Discord Cursor Bot Styles - Simplified */

:root {
  --primary-color: #5865f2;
  --primary-hover: #4752c4;
  --secondary-color: #57f287;
  --secondary-hover: #3ba55c;
  --danger-color: #ed4245;
  --warning-color: #fee75c;
  --background: #2b2d31;
  --surface: #36393f;
  --text: #dcddde;
  --text-muted: #96989d;
  --border: #4f545c;
  --success: #57f287;
  --error: #ed4245;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--background) 0%, #1e1f22 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(88, 101, 242, 0.3);
}

.button.secondary {
  background: var(--text-muted);
  color: var(--background);
}

.button.secondary:hover {
  background: var(--text);
  box-shadow: 0 4px 8px rgba(156, 152, 157, 0.3);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.code-block {
  background: var(--background);
  color: var(--success);
  padding: 1rem;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  border: 1px solid var(--border);
  margin: 0.5rem 0;
}

.agents-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
}

.agent-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.agent-item:hover {
  background: rgba(88, 101, 242, 0.1);
}

.agent-item:last-child {
  border-bottom: none;
}

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.agent-status {
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.agent-status.status-creating {
  background: var(--warning-color);
  color: var(--background);
}

.agent-status.status-running {
  background: var(--primary-color);
  color: white;
}

.agent-status.status-finished {
  background: var(--success);
  color: var(--background);
}

.agent-status.status-error {
  background: var(--error);
  color: white;
}

.agent-status.status-pending {
  background: var(--text-muted);
  color: var(--background);
}

.agent-details {
  font-size: 0.9rem;
  line-height: 1.4;
}

.agent-details div {
  margin-bottom: 0.25rem;
}

.agent-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.no-agents {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Links in code blocks */
.code-block a {
  color: var(--secondary-color);
  text-decoration: none;
}

.code-block a:hover {
  text-decoration: underline;
}

/* Getting Started Steps */
.getting-started-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  background: var(--primary-color);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(88, 101, 242, 0.3);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.1rem;
}

.step-content p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.tip {
  background: rgba(87, 242, 135, 0.1);
  border-left: 3px solid var(--secondary-color);
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* Example Thread Conversation */
.example-thread {
  background: var(--background);
  border-radius: 8px;
  padding: 1rem;
  margin: 0.75rem 0;
  border: 1px solid var(--border);
}

.thread-message {
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.thread-message:last-child {
  margin-bottom: 0;
}

.thread-message.bot {
  background: rgba(88, 101, 242, 0.1);
  border-left: 3px solid var(--primary-color);
}

.thread-message.user {
  background: rgba(87, 242, 135, 0.1);
  border-left: 3px solid var(--secondary-color);
  margin-left: 1rem;
}

/* Commands Grid */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.command-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.command-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(88, 101, 242, 0.2);
}

.command-card h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: 'Courier New', monospace;
  background: rgba(88, 101, 242, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.command-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.command-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag.setup {
  background: rgba(254, 231, 92, 0.2);
  color: var(--warning-color);
  border: 1px solid rgba(254, 231, 92, 0.3);
}

.tag.secure {
  background: rgba(237, 66, 69, 0.2);
  color: var(--danger-color);
  border: 1px solid rgba(237, 66, 69, 0.3);
}

.tag.quick {
  background: rgba(87, 242, 135, 0.2);
  color: var(--secondary-color);
  border: 1px solid rgba(87, 242, 135, 0.3);
}

.tag.popular {
  background: rgba(88, 101, 242, 0.2);
  color: var(--primary-color);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.tag.full {
  background: rgba(156, 152, 157, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(156, 152, 157, 0.3);
}

.tag.info {
  background: rgba(88, 101, 242, 0.2);
  color: var(--primary-color);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.tag.debug {
  background: rgba(254, 231, 92, 0.2);
  color: var(--warning-color);
  border: 1px solid rgba(254, 231, 92, 0.3);
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tip-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.tip-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(87, 242, 135, 0.2);
}

.tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.tip-content h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.tip-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 1rem;
  }
  
  .button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    align-self: center;
  }
  
  .commands-grid {
    grid-template-columns: 1fr;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .thread-message.user {
    margin-left: 0;
  }
}