/* GoQueue - Modern Cloud-Native Documentation Styles */

:root {
  --bg: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text: #e6edf3;
  --text-secondary: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --border: #30363d;
  --success: #3fb950;
  --warning: #d29922;
  --error: #f85149;
  --code-bg: #161b22;
  --radius: 6px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo {
  color: var(--accent);
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-github {
  display: flex;
  align-items: center;
}

/* Main Content */
.main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0 64px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

/* Lists */
ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Code */
code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Feature Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}

.feature:hover {
  border-color: var(--accent);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

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

th, td {
  padding: 12px;
  text-align: left;
  border: 1px solid var(--border);
}

th {
  background: var(--bg-secondary);
  font-weight: 600;
}

tr:nth-child(even) {
  background: var(--bg-secondary);
}

/* Blockquotes / Callouts */
blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-secondary);
  padding: 16px 20px;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  margin-top: 8px;
}

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

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

.footer-links span {
  margin: 0 8px;
  opacity: 0.5;
}

/* Comparison Table Styling */
.comparison-table {
  overflow-x: auto;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--bg);
  z-index: 1;
}

/* Architecture Diagram */
.architecture-diagram {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.architecture-diagram pre {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge-success { background: rgba(63, 185, 80, 0.2); color: var(--success); }
.badge-warning { background: rgba(210, 153, 34, 0.2); color: var(--warning); }
.badge-error { background: rgba(248, 81, 73, 0.2); color: var(--error); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-links a:not(.nav-github) {
    display: none;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
}

/* Syntax Highlighting - GitHub Dark */
.highlight .c, .highlight .c1, .highlight .cm { color: #8b949e; }
.highlight .k, .highlight .kd, .highlight .kn { color: #ff7b72; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #a5d6ff; }
.highlight .n, .highlight .nv { color: #e6edf3; }
.highlight .nf, .highlight .nb { color: #d2a8ff; }
.highlight .o { color: #ff7b72; }
.highlight .p { color: #e6edf3; }
.highlight .mi, .highlight .mf { color: #79c0ff; }
