/* Ground Control 2 Community Patch - Site Styles */

:root {
  --color-bg: #0a0a0f;
  --color-bg-light: #12121a;
  --color-bg-card: #1a1a24;
  --color-primary: #4a9eff;
  --color-primary-dark: #2d7cd6;
  --color-accent: #ff6b4a;
  --color-text: #e0e0e0;
  --color-text-muted: #888;
  --color-border: #2a2a3a;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: "Fira Code", "Consolas", monospace;
  --max-width: 900px;
}

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

html {
  font-size: 16px;
}

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

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

a:hover {
  color: var(--color-accent);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header */
.site-header {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.site-title:hover {
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-primary);
}

/* Main content */
.site-content {
  flex: 1;
  padding: 2rem 0;
}

/* Footer */
.site-footer {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* Home page */
.home .hero {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.home .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.home .hero .tagline {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.home .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  background: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.feature h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Recent changes */
.recent-changes {
  margin-top: 2rem;
}

.recent-changes h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.post-list {
  list-style: none;
}

.post-list li {
  margin-bottom: 1.5rem;
}

.post-summary h3 {
  margin-bottom: 0.25rem;
}

.post-summary time {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.post-summary .version {
  background: var(--color-primary);
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.post-summary p {
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

.view-all {
  display: inline-block;
  margin-top: 1rem;
}

/* Post page */
.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.post-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.post-date {
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.post-version {
  background: var(--color-primary);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.post-content {
  line-height: 1.8;
}

.post-content h2 {
  margin: 2rem 0 1rem;
  color: var(--color-primary);
}

.post-content h3 {
  margin: 1.5rem 0 0.75rem;
}

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

.post-content ul,
.post-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

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

.post-content code {
  background: var(--color-bg-card);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.post-content pre {
  background: var(--color-bg-card);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

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

/* Comments */
.post-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.post-comments h2 {
  margin-bottom: 1rem;
}

.comments-notice {
  background: var(--color-bg-card);
  padding: 1rem;
  border-radius: 8px;
  color: var(--color-text-muted);
}

/* Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Changelog index */
.changelog-index h1 {
  margin-bottom: 1.5rem;
}

.changelog-list {
  list-style: none;
}

.changelog-entry {
  background: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.changelog-entry h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.changelog-entry .meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.changelog-entry .version {
  margin-left: 1rem;
}

.changelog-entry .excerpt {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.read-more {
  font-size: 0.875rem;
}

/* Download page */
.download-section {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.download-section h2 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    text-align: center;
  }

  .home .hero h1 {
    font-size: 1.75rem;
  }

  .home .hero .tagline {
    font-size: 1rem;
  }

  .post-title {
    font-size: 1.5rem;
  }
}
