:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #f0f6fc;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  --accent-blue: #58a6ff;
  --accent-green: #238636;
  --border: #30363d;
  --border-muted: #21262d;
  --shadow: rgba(0, 0, 0, 0.3);
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
}

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title:hover {
  color: var(--accent-blue);
  transition: color 0.2s ease;
}

.site-title::before {
  content: "📝";
  font-size: 1rem;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--accent-blue);
  color: var(--bg-primary);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-section h1 {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-section p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.page-title {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Post List */
.featured-works {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.featured-work {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.2s ease;
}

.featured-work:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px var(--shadow);
}

.featured-work h3 {
  margin-bottom: 0.75rem;
}

.featured-work h3 a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
}

.featured-work h3 a:hover {
  text-decoration: underline;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta::before {
  content: "📅";
  font-size: 0.8rem;
}

.excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.read-more {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.read-more:hover {
  text-decoration: underline;
}

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

.post-title {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.post-meta {
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.release-date::before {
  content: "🚀";
  margin-right: 0.5rem;
}

.build-number {
  background: var(--bg-tertiary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.post-content {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 2rem 0;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.post-content h1 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.post-content h2 {
  font-size: 1.6rem;
  color: var(--accent-blue);
}

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

.post-content ul,
.post-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.post-content li {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.post-content ul li {
  list-style: none;
  position: relative;
}

.post-content ul li::before {
  content: "▸";
  color: var(--accent-green);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

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

.post-content code {
  background: var(--bg-tertiary);
  color: var(--accent-blue);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

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

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

.post-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Share Links */
.share-section {
  margin: 2rem 0;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: var(--border);
  color: var(--text-primary);
}

.share-btn.twitter:hover {
  background: #1da1f2;
  color: white;
}

.share-btn.linkedin:hover {
  background: #0077b5;
  color: white;
}

.share-btn.email:hover {
  background: var(--accent-green);
  color: white;
}

/* Post Navigation */
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nav-link-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-link-item:hover {
  border-color: var(--accent-blue);
  background: var(--bg-tertiary);
}

.nav-prev {
  justify-content: flex-start;
}

.nav-next {
  justify-content: flex-end;
}

.nav-arrow {
  font-size: 1.2rem;
  color: var(--accent-blue);
  font-weight: bold;
}

.nav-content {
  margin: 0 1rem;
}

.nav-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
}

.nav-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

/* Archive Link */
.archive-link-container {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.archive-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.archive-link:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-blue);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
}

/* Game Tags */
.game-tag {
  display: inline-block;
  background: var(--accent-green);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
  text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-nav {
    gap: 1rem;
  }
  
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .featured-work {
    padding: 1.5rem;
  }
  
  .post-title {
    font-size: 2rem;
  }
  
  .nav-links {
    grid-template-columns: 1fr;
  }
  
  .share-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .featured-work {
    padding: 1rem;
  }
  
  .nav-link {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  .nav-link-item {
    padding: 0.75rem;
  }
  
  .nav-content {
    margin: 0 0.5rem;
  }
}

.highlight {
  background: var(--bg-tertiary);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.highlight pre {
  background: none;
  border: none;
  margin: 0;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}