/* 
 * openapi-mcp - Main stylesheet
 * A modern, clean design for the OpenAPI to MCP project website
 */

:root {
  --primary-color: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary-color: #10b981;
  --secondary-dark: #059669;
  --secondary-light: #34d399;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --info: #3b82f6;
  --code-bg: #282c34;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

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

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-50);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--neutral-900);
}

h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--neutral-200);
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

code {
  padding: 0.2rem 0.4rem;
  background-color: var(--neutral-100);
  border-radius: 4px;
}

pre {
  padding: 1rem;
  overflow: auto;
  background-color: var(--code-bg);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 1.5rem;
}

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

blockquote {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
  background-color: var(--neutral-100);
}

img {
  max-width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--neutral-200);
  text-align: left;
}

th {
  background-color: var(--neutral-100);
  font-weight: 600;
}

button, .button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.button-primary {
  background-color: var(--primary-color);
  color: white;
}

.button-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  text-decoration: none;
}

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

.button-secondary:hover {
  background-color: var(--secondary-dark);
  color: white;
  text-decoration: none;
}

.button-outline {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid white;
}

.button-outline:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
}

/* Header */
.site-header {
  background-color: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--neutral-900);
}

.logo img {
  height: 40px;
  margin-right: 0.75rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  color: var(--neutral-700);
  font-weight: 500;
}

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

.nav-links a.active {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--neutral-700);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Features */
.features {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

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

.feature-card {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background-color: var(--neutral-800);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
  border: none;
}

/* Footer */
.site-footer {
  background-color: var(--neutral-900);
  color: var(--neutral-300);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--neutral-300);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--neutral-700);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Documentation */
.docs-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin: 2rem auto;
}

.docs-sidebar {
  position: sticky;
  top: 5rem;
  height: calc(100vh - 5rem);
  overflow-y: auto;
  padding-right: 1rem;
}

.docs-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.docs-menu a {
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
}

.docs-menu a:hover {
  background-color: var(--neutral-100);
  text-decoration: none;
}

.docs-menu a.active {
  background-color: var(--primary-color);
  color: white;
}

.docs-content {
  min-width: 0;
}

/* Code Highlighting */
.hljs-keyword,
.hljs-attribute,
.hljs-selector-tag,
.hljs-meta-keyword,
.hljs-doctag,
.hljs-name {
  color: #c678dd;
}

.hljs-built_in,
.hljs-literal,
.hljs-bullet,
.hljs-code,
.hljs-addition {
  color: #56b6c2;
}

.hljs-regexp,
.hljs-symbol,
.hljs-variable,
.hljs-template-variable,
.hljs-link,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #d19a66;
}

.hljs-type,
.hljs-string,
.hljs-selector-id,
.hljs-selector-class,
.hljs-quote,
.hljs-template-tag,
.hljs-deletion {
  color: #98c379;
}

.hljs-title,
.hljs-section {
  color: #61afef;
}

.hljs-comment {
  color: #7f848e;
}

.hljs-meta {
  color: #e5c07b;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag-primary {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.tag-secondary {
  background-color: var(--secondary-light);
  color: var(--secondary-dark);
}

.tag-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .docs-container {
    grid-template-columns: 1fr;
  }
  
  .docs-sidebar {
    display: none;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --neutral-50: #18181b;
    --neutral-100: #27272a;
    --neutral-200: #3f3f46;
    --neutral-300: #52525b;
    --neutral-600: #a1a1aa;
    --neutral-700: #d4d4d8;
    --neutral-800: #e4e4e7;
    --neutral-900: #f4f4f5;
    --code-bg: #1e1e1e;
  }
  
  body {
    background-color: var(--neutral-50);
    color: var(--neutral-800);
  }
  
  .site-header {
    background-color: var(--neutral-100);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  }
  
  .feature-card, .card {
    background-color: var(--neutral-100);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }
  
  .feature-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  }
  
  th {
    background-color: var(--neutral-200);
  }
  
  pre {
    background-color: var(--code-bg);
  }
  
  blockquote {
    background-color: var(--neutral-100);
  }
}