/* Minimal Fluent 2-inspired overrides for demonstration */

:root {
  --fluent-primary: #0078d4;
  --fluent-bg: #f3f3f3;
  --fluent-radius: 8px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--fluent-bg);
}
body nav {
  background: var(--fluent-primary);
  padding: 1em;
}
body nav a {
  color: #fff;
  margin-right: 1em;
  text-decoration: none;
  font-weight: 500;
}
body main {
  max-width: 1280px;
  margin: 2em auto;
  background: #fff;
  padding: 2em;
  border-radius: var(--fluent-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
body footer {
  text-align: center;
  padding: 1em;
  color: #666;
}

/* Enhanced navigation */
.site-nav {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
}
.site-nav .page-link {
  color: #333;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.site-nav .page-link:hover {
  background: #e9ecef;
  color: #007bff;
  text-decoration: none;
}

/* Post cards layout */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.post-card {
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.post-card-content {
  padding: 1.5rem;
}
.post-card-content h2 {
  margin: 0 0 1rem 0;
}
.post-card-content h2 a {
  color: #333;
  text-decoration: none;
}
.post-card-content h2 a:hover {
  color: #007bff;
}
.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Categories and tags styling */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.category-tag {
  background: #007bff;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 500;
}

/* Featured posts section */
.featured-posts {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}
.featured-post {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Topics grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.topic-card {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #007bff;
}
.topic-card h3 {
  margin: 0 0 1rem 0;
  color: #333;
}
.topic-card p {
  margin: 0;
  color: #666;
}

/* Post filters */
.post-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
  justify-content: center;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #007bff;
  background: white;
  color: #007bff;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: #007bff;
  color: white;
}

/* Categories page */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.category-card {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}
.category-card h3 {
  margin: 0;
}
.category-card h3 a {
  color: #333;
  text-decoration: none;
}
.category-card h3 a:hover {
  color: #007bff;
}

/* Improved readability */
.post-content {
  line-height: 1.8;
  font-size: 1.1em;
}
.post-content h2,
.post-content h3,
.post-content h4 {
  margin: 2rem 0 1rem 0;
  color: #333;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 1.5rem 0;
}
.post-content blockquote {
  border-left: 4px solid #007bff;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
}

/* Code styling improvements */
pre,
code {
  background-color: #f6f8fa;
  border-radius: 6px;
}
pre {
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid #e1e4e8;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .topics-grid {
    grid-template-columns: 1fr;
  }
  .post-filters {
    justify-content: flex-start;
  }
}