/* =============================================
   Linux OS Insider - Blog Styles
   Terminal Green Design Theme
   ============================================= */

:root {
  /* Terminal Green Color Palette */
  --terminal-black: #0d1117;
  --terminal-dark: #161b22;
  --terminal-mid: #21262d;
  --terminal-light: #30363d;
  --terminal-border: #3d444d;
  
  --neon-green: #00ff88;
  --neon-green-dim: #00cc6a;
  --neon-cyan: #00bcd4;
  
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  
  --font-heading: 'JetBrains Mono', 'Fira Code', 'Noto Sans JP', monospace;
  --font-body: 'Noto Sans JP', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-body);
  background: var(--terminal-black);
  color: var(--text-primary);
  line-height: 1.8;
}

/* Blog Layout */
.blog-container {
  max-width: 1280px;
  margin: 100px auto 40px;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.main-content {
  background: var(--terminal-dark);
  border: 1px solid var(--terminal-border);
  border-radius: 0.75rem;
  padding: 2rem;
  min-width: 0;
}

/* Typography */
.main-content h1,
.article-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.main-content h1::before {
  content: '$ cat ';
  color: var(--neon-green);
  font-weight: 400;
}

.main-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--neon-green);
}

.main-content h2::before {
  content: '## ';
  color: var(--neon-green);
}

.main-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--neon-cyan);
  margin: 1.5rem 0 1rem;
}

.main-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.9;
}

.main-content a {
  color: var(--neon-green);
  text-decoration: underline;
}

.main-content a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.main-content ul,
.main-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

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

/* Hero Image */
.blog-hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section,
.toc,
.ad-space {
  background: var(--terminal-dark);
  border: 1px solid var(--terminal-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h3,
.toc h3 {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--terminal-border);
}

.sidebar-section h3::before,
.toc h3::before {
  content: '# ';
  color: var(--text-muted);
}

.toc ul,
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: var(--transition);
}

.toc a::before {
  content: '├─ ';
  color: var(--terminal-border);
}

.toc a:hover {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon-green);
}

/* Share Buttons */
.social-share {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--terminal-mid);
  border-radius: 0.5rem;
  text-align: center;
}

.social-share h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.share-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

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

.share-btn.facebook {
  background: #1877f2;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Blog List */
.blog-header {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--terminal-dark);
  border: 1px solid var(--terminal-border);
  border-radius: 0.75rem;
  margin: 100px auto 2rem;
  max-width: 1280px;
}

.blog-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.blog-header h1::before {
  content: '$ ls -la ';
  color: var(--neon-green);
}

.blog-header p {
  color: var(--text-secondary);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.blog-card {
  background: var(--terminal-dark);
  border: 1px solid var(--terminal-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  transform: translateY(-4px);
}

.blog-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h2 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}

.blog-content h2::before {
  display: none;
}

.blog-content h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-content h2 a:hover {
  color: var(--neon-green);
}

.blog-content time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-cyan);
  display: block;
  margin-bottom: 0.75rem;
}

.article-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--neon-green);
  color: var(--terminal-black);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.read-more:hover {
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Code */
code {
  font-family: var(--font-mono);
  background: var(--terminal-mid);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  color: var(--neon-green);
  font-size: 0.9em;
}

pre {
  background: var(--terminal-black);
  border: 1px solid var(--terminal-border);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-container {
    grid-template-columns: 1fr;
    margin-top: 80px;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .blog-container {
    padding: 0 1rem;
  }
  
  .main-content {
    padding: 1.5rem;
  }
  
  .sidebar {
    grid-template-columns: 1fr;
  }
  
  .blog-header {
    margin-top: 80px;
    padding: 2rem 1rem;
  }
  
  .blog-list {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
}
