/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Development banner */
.dev-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 12px 0;
  border-bottom: 2px solid #d97706;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dev-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

.dev-banner-icon {
  font-size: 16px;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.dev-banner-text {
  line-height: 1.4;
}

@media (max-width: 768px) {
  .dev-banner-content {
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    padding: 0 16px;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 48px;
  /* Position below the development banner */
  left: 0;
  right: 0;
  z-index: 1000;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand h1 {
  font-size: 24px;
  font-weight: 700;
  color: #140653;
}

.version {
  background: #e5e7eb;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #140653;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #140653;
  border-radius: 1px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #140653 0%, #2d1b69 100%);
  color: white;
  padding: 120px 0 80px;
  margin-top: 118px;
  /* Banner (48px) + Navbar (70px) */
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Single column hero layout for pages without code examples */
.hero.hero-centered .container {
  display: block;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.8;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #fff;
  color: #140653;
}

.btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #140653;
}

.hero-code {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.code-block {
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}

.code-header {
  background: #334155;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #475569;
}

.code-title {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 14px;
}

.code-lang {
  color: #94a3b8;
  font-size: 12px;
  background: #475569;
  padding: 4px 8px;
  border-radius: 4px;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  background: #2d3748 !important;
  border-radius: 8px;
  margin: 0;
}

.code-block code {
  color: #e2e8f0;
  background: transparent !important;
  padding: 0;
  font-size: inherit;
}

/* Prism.js overrides for better integration */
.code-block pre[class*="language-"] {
  background: #2d3748 !important;
  border-radius: 8px;
}

.code-block code[class*="language-"] {
  background: transparent !important;
  color: #e2e8f0;
}

/* Syntax highlighting colors */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #68d391;
}

.token.punctuation {
  color: #e2e8f0;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #f687b3;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #68d391;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #fbb6ce;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #90cdf4;
}

.token.function,
.token.class-name {
  color: #f6ad55;
}

.token.regex,
.token.important,
.token.variable {
  color: #f6ad55;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #1f2937;
}

/* Features */
.features {
  background: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1f2937;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Installation */
.install-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 12px 24px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  border-color: #140653;
  color: #140653;
  background: #eff6ff;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.prerequisites {
  margin-top: 40px;
  padding: 30px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #140653;
}

.prerequisites h3 {
  margin-bottom: 15px;
  color: #1f2937;
}

.prerequisites ul {
  list-style: none;
  padding-left: 0;
}

.prerequisites li {
  padding: 5px 0;
  color: #6b7280;
}

.prerequisites code {
  background: #e5e7eb;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
}

/* Quick Start */
.quick-start {
  background: #f8fafc;
}

.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  align-items: flex-start;
}

.step-number {
  background: #140653;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1f2937;
}

/* API */
.api-section {
  margin-bottom: 60px;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.api-section h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 15px;
}

.api-class h4,
.api-methods h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 15px;
  color: #374151;
}

.method {
  margin-bottom: 25px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #140653;
}

.method h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1f2937;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

.method p {
  color: #6b7280;
  line-height: 1.6;
}

.api-params h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: #374151;
}

.api-params ul {
  list-style: none;
  padding-left: 0;
}

.api-params li {
  padding: 8px 0;
  color: #6b7280;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 14px;
}

/* Examples */
.examples {
  background: #f8fafc;
}

.example-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 30px;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: white;
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
}

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

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  text-align: center;
  color: #9ca3af;
}

/* Example notes and additional styles */
.example-note {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.example-note h4 {
  margin: 0 0 10px 0;
  color: #0c4a6e;
  font-size: 16px;
  font-weight: 600;
}

.example-note p {
  margin: 0;
  color: #0c4a6e;
  font-size: 14px;
  line-height: 1.5;
}

.example-note code {
  background: #e0f2fe;
  color: #0c4a6e;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
}

.type-definition {
  margin-bottom: 40px;
  padding: 30px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #140653;
}

.method-params,
.method-returns {
  margin-top: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #140653;
}

.method-params h5,
.method-returns h5 {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.method-params ul,
.method-returns ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.method-params li,
.method-returns li {
  padding: 5px 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.method-params code,
.method-returns code {
  background: #e5e7eb;
  color: #374151;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 13px;
}

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

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .install-tabs,
  .example-tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    flex: 1;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .api-section {
    padding: 20px;
  }
}