/* Blog-specific styles for NetKnights website */

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.blog-header h1 {
  font-size: 2.5rem;
  color: #66fcf1;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(102, 252, 241, 0.3);
}

.blog-header p {
  font-size: 1.2rem;
  color: #c5c6c7;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Filters */
.blog-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-filter {
  background-color: #1f2833;
  color: #c5c6c7;
  border: 2px solid #45a29e;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
}

.category-filter:hover {
  background-color: #45a29e;
  color: #0b0c10;
  transform: translateY(-2px);
}

.category-filter.active {
  background-color: #66fcf1;
  color: #0b0c10;
  border-color: #66fcf1;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Blog Cards */
.blog-card {
  background-color: #1f2833;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(102, 252, 241, 0.2);
  border-color: #45a29e;
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content-card {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.blog-category {
  background-color: #45a29e;
  color: #0b0c10;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.blog-date {
  color: #999;
}

.blog-content-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  line-height: 1.4;
}

.blog-content-card h3 a {
  color: #66fcf1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-content-card h3 a:hover {
  color: #45a29e;
}

.blog-content-card p {
  color: #c5c6c7;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-author {
  color: #999;
  font-size: 0.9rem;
  font-style: italic;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination-btn {
  background-color: #1f2833;
  color: #66fcf1;
  border: 2px solid #45a29e;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #45a29e;
  color: #0b0c10;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #c5c6c7;
  font-weight: 500;
}

/* Individual Blog Post Styles */
.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #45a29e;
}

.blog-post-title {
  font-size: 2.5rem;
  color: #66fcf1;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.blog-post-meta span {
  color: #999;
  font-size: 0.9rem;
}

.blog-post-category {
  background-color: #45a29e;
  color: #0b0c10;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.blog-post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #c5c6c7;
}

.blog-post-body h2 {
  color: #66fcf1;
  margin: 2rem 0 1rem 0;
  font-size: 1.8rem;
}

.blog-post-body h3 {
  color: #45a29e;
  margin: 1.5rem 0 0.75rem 0;
  font-size: 1.4rem;
}

.blog-post-body p {
  margin-bottom: 1.5rem;
}

.blog-post-body code {
  background-color: #1f2833;
  color: #66fcf1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.blog-post-body pre {
  background-color: #1f2833;
  color: #c5c6c7;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-left: 4px solid #45a29e;
}

.blog-post-body blockquote {
  border-left: 4px solid #66fcf1;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #999;
}

.blog-post-body ul, .blog-post-body ol {
  margin: 1rem 0 1.5rem 2rem;
  color: #c5c6c7;
}

.blog-post-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.blog-post-body a {
  color: #66fcf1;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.blog-post-body a:hover {
  color: #45a29e;
}

.blog-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #45a29e;
}

.blog-nav-link {
  background-color: #1f2833;
  color: #66fcf1;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid #45a29e;
  transition: all 0.3s ease;
  font-weight: 500;
}

.blog-nav-link:hover {
  background-color: #45a29e;
  color: #0b0c10;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-categories {
    flex-direction: column;
    align-items: center;
  }
  
  .category-filter {
    width: 200px;
    text-align: center;
  }
  
  .blog-post-title {
    font-size: 2rem;
  }
  
  .blog-post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .blog-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .blog-nav-link {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .blog-header h1 {
    font-size: 2rem;
  }
  
  .blog-post-content {
    padding: 1rem;
  }
  
  .blog-post-title {
    font-size: 1.8rem;
  }
}
