/* Discord Bot Documentation Styles */

/* Sidebar navigation — inherits Bootstrap dark mode list-group styling
   to match the stats page sidebar appearance */
.docs-sidebar {
  position: sticky;
  top: 80px;
}

/* Page content */
.docs-content h1 {
  color: var(--ir-text-primary);
  margin-bottom: 1rem;
}

.docs-content h2 {
  color: var(--ir-text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ir-border-slate);
}

.docs-content h3 {
  color: var(--ir-text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.docs-content p,
.docs-content li {
  color: var(--ir-text-chart);
  line-height: 1.7;
}

.docs-content a {
  color: var(--ir-accent-teal);
}

.docs-content a:hover {
  color: #5eead4;
}

/* Command reference cards */
.command-section {
  margin-bottom: 2rem;
}

.command-card {
  background-color: var(--ir-bg-surface);
  border: 1px solid var(--ir-border-slate);
  border-radius: 7px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.command-card h4 {
  color: var(--ir-accent-teal);
  font-family: 'Roboto', monospace;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.command-card p {
  margin-bottom: 0.5rem;
}

.command-card .params {
  font-size: 0.85rem;
  color: var(--ir-text-tertiary);
}

.command-card .params code {
  background-color: var(--ir-bg-deep);
  color: var(--ir-accent-teal);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.85rem;
}

/* Code blocks — override Bootstrap's pink default */
code {
  color: var(--ir-accent-teal) !important;
}

.docs-content code {
  background-color: var(--ir-bg-deep);
  color: var(--ir-accent-teal);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9rem;
}

.docs-content pre {
  background-color: var(--ir-bg-deep);
  border: 1px solid var(--ir-border-grid);
  border-radius: 7px;
  padding: 1rem;
  color: var(--ir-text-chart);
}

.docs-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Screenshots gallery */
.screenshot-card {
  background-color: var(--ir-bg-surface);
  border: 1px solid var(--ir-border-slate);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.screenshot-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* YouTube responsive embed */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid var(--ir-border-slate);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tables in docs */
.docs-content table {
  background-color: var(--ir-bg-header);
  color: var(--ir-text-chart);
  width: 100%;
  margin-bottom: 1rem;
}

.docs-content table th {
  background-color: var(--ir-bg-deep);
  color: var(--ir-text-primary);
  border-bottom: 2px solid var(--ir-accent-teal);
  padding: 8px 12px;
}

.docs-content table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--ir-border-slate);
}

.docs-content table tbody tr:nth-child(even) {
  background-color: var(--ir-bg-deep);
}

/* Blockquotes */
.docs-content blockquote {
  border-left: 3px solid var(--ir-accent-teal);
  padding-left: 1rem;
  margin-left: 0;
  color: var(--ir-text-secondary);
}

/* Hero section on index page */
.docs-hero {
  text-align: center;
  padding: 2rem 0;
}

.docs-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

/* Step numbers for setup guides */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--ir-accent-teal);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

/* Mobile: show horizontal nav instead of sidebar */
@media (max-width: 767px) {
  .docs-sidebar .list-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .docs-sidebar .list-group-item {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
  }
}
