/* NotiCord Documentation Styles */

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --bg-tertiary: #3a3a3a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #5865F2;
  --accent-hover: #4752c4;
  --border: #404040;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header */
.docs-header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.docs-header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--text-primary);
}

/* Docs Container */
.docs-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
}

/* Sidebar */
.docs-sidebar {
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

/* Mobile Navigation */
.mobile-docs-nav {
  display: none;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.mobile-docs-nav summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.mobile-docs-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-docs-nav summary::after {
  content: '▼';
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.mobile-docs-nav[open] summary::after {
  transform: rotate(-180deg);
}

.mobile-docs-nav .sidebar-section {
  border-top: 1px solid var(--border);
  padding: 1rem;
  margin: 0;
}

.mobile-docs-nav .sidebar-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.mobile-docs-nav .sidebar-section ul {
  list-style: none;
  margin: 0;
}

.mobile-docs-nav .sidebar-section li {
  margin-bottom: 0.5rem;
}

.mobile-docs-nav .sidebar-section a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 0.9375rem;
}

.mobile-docs-nav .sidebar-section a:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section li {
  margin-bottom: 0.5rem;
}

.sidebar-section a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1.4;
  word-wrap: break-word;
}

.sidebar-section a:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

/* Content */
.docs-content {
  padding: 3rem;
}

.docs-content article {
  max-width: 800px;
}

.docs-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.docs-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.docs-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.docs-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.docs-content a {
  color: var(--accent);
  text-decoration: none;
}

.docs-content a:hover {
  text-decoration: underline;
}

.docs-content ul, .docs-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.docs-content li {
  margin-bottom: 0.5rem;
}

.docs-content code {
  background-color: var(--bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  color: var(--accent);
}

.docs-content pre {
  background-color: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.docs-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* Tables */
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.docs-content thead {
  background-color: var(--bg-tertiary);
}

.docs-content th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
}

.docs-content td {
  padding: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.docs-content tbody tr:last-child td {
  border-bottom: none;
}

.docs-content tbody tr:hover {
  background-color: var(--bg-tertiary);
}

/* Footer */
.docs-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.docs-footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.docs-footer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .docs-header {
    padding: 0;
  }

  .docs-header .container {
    padding: 1rem;
    position: relative;
  }

  .logo {
    flex: 1;
  }

  .logo a {
    font-size: 1.25rem;
  }

  .logo-img {
    height: 28px;
  }

  .mobile-menu-toggle {
    display: block;
    order: 2;
  }

  .main-nav {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-bottom: none;
  }

  .main-nav.mobile-open {
    max-height: 300px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a {
    padding: 1rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--border);
    display: block;
    font-size: 1rem;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .docs-container {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .docs-sidebar {
    display: none;
  }

  .mobile-docs-nav {
    display: block;
  }

  .docs-content {
    padding: 1.5rem 1rem;
  }

  .docs-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

  .docs-content h2 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
  }

  .docs-content h3 {
    font-size: 1.125rem;
  }

  .docs-content p {
    font-size: 0.9375rem;
  }

  .docs-content ul,
  .docs-content ol {
    padding-left: 1.25rem;
  }

  .docs-content pre {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .docs-content table {
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .docs-footer .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 0 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
