/* Custom styles for Go-Live documentation */

/* Site header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e1e4e8;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #24292f;
  text-decoration: none;
}

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

.nav-links a {
  color: #57606a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #0969da;
}

/* Language switcher */
.language-switcher {
  background: #f6f8fa;
  border-bottom: 1px solid #e1e4e8;
  padding: 0.5rem 2rem;
}

.lang-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-label {
  font-size: 0.875rem;
  color: #57606a;
}

.lang-link {
  font-size: 0.875rem;
  color: #57606a;
  text-decoration: none;
}

.lang-link.active {
  color: #0969da;
  font-weight: 600;
}

.lang-separator {
  color: #d0d7de;
}

/* Main content */
.site-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.post {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
}

.post-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #24292f;
}

.post-content {
  line-height: 1.6;
  color: #24292f;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #24292f;
}

.post-content h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid #e1e4e8;
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 1rem;
}

.post-content a {
  color: #0969da;
  text-decoration: none;
}

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

/* Code blocks */
.post-content code {
  background: #f6f8fa;
  border-radius: 4px;
  padding: 0.2em 0.4em;
  font-size: 0.875em;
}

.post-content pre {
  background: #f6f8fa;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.post-content th,
.post-content td {
  border: 1px solid #e1e4e8;
  padding: 0.75rem 1rem;
  text-align: left;
}

.post-content th {
  background: #f6f8fa;
  font-weight: 600;
}

.post-content tr:nth-child(even) {
  background: #f6f8fa;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e1e4e8;
  padding: 2rem;
  text-align: center;
  color: #57606a;
  font-size: 0.875rem;
  margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-content {
    padding: 0 1rem;
  }

  .post {
    padding: 1rem;
  }
}
