/* PagerDuty Integration Hub Documentation - Static HTML/CSS */

:root {
  /* PagerDuty Colors */
  --pd-green: #048a24;
  --pd-green-dark: #005a24;
  --pd-green-light: #06a22d;
  --pd-green-lime: #adf07e;
  --pd-navy: #082b56;
  --pd-teal: #117170;

  /* Neutral colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Fonts */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'Monaco', 'Courier New', monospace;
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--gray-900);
  background: #fff;
}

/* Header / Navbar */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1.125rem;
}

.navbar-brand img {
  height: 32px;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.navbar-nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-nav a:hover {
  color: var(--pd-green);
}

/* Main Layout */
.docs-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  height: calc(100vh - 70px);
  position: sticky;
  top: 70px;
}

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

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.sidebar-menu {
  list-style: none;
}

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

.sidebar-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--gray-700);
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.sidebar-menu a:hover {
  background: var(--gray-100);
  color: var(--pd-green);
}

.sidebar-menu a.active {
  background: var(--pd-green);
  color: #fff;
  font-weight: 600;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 3rem;
  max-width: 900px;
}

.main-content h1 {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-weight: 700;
}

.main-content h2 {
  font-size: 2rem;
  color: var(--gray-900);
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.main-content h3 {
  font-size: 1.5rem;
  color: var(--gray-900);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.main-content p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

.main-content ul, .main-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--gray-700);
}

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

.main-content strong {
  font-weight: 600;
  color: var(--gray-900);
}

.main-content a {
  color: var(--pd-green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.main-content a:hover {
  border-bottom-color: var(--pd-green);
}

/* Code blocks */
.main-content code {
  background: var(--gray-100);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--pd-navy);
}

.main-content pre {
  background: var(--gray-900);
  color: var(--gray-100);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.main-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Tables */
.main-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.main-content th {
  background: var(--gray-50);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--gray-300);
}

.main-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
}

/* Alert boxes */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
  color: #1e40af;
}

.alert-success {
  background: #f0fdf4;
  border-left-color: var(--pd-green);
  color: var(--pd-green-dark);
}

.alert-warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}

.alert-danger {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #991b1b;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary,
.main-content a.btn-primary {
  background: var(--pd-green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--pd-green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--pd-green);
  border: 1px solid var(--pd-green);
}

.btn-outline:hover {
  background: var(--pd-green);
  color: #fff;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

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

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

.footer-section a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--pd-green-lime);
}

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 2rem 1.5rem;
  }

  .navbar {
    padding: 1rem 1.5rem;
  }

  .navbar-nav {
    gap: 1rem;
  }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-900);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-nav.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
}
