/* Page-specific styles for Blog */
.page-blog h1 { 
  color: var(--accent, #f472b6); 
  background: linear-gradient(135deg, #f472b6, #17f597, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.filters { 
  display: flex; 
  gap: .5rem; 
  margin-top: .6rem; 
  flex-wrap: wrap; 
  justify-content: center;
}

.filter-btn { 
  background: rgba(255,255,255,.04); 
  color: var(--text); 
  border: 1px solid rgba(255,255,255,.12); 
  border-radius: .6rem; 
  padding: .4rem .8rem; 
  cursor: pointer; 
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.filter-btn.active, .filter-btn:hover { 
  color: var(--primary); 
  border-color: rgba(23,245,151,.5); 
  box-shadow: 0 0 0 3px rgba(23,245,151,.15); 
  transform: translateY(-2px);
}

.posts-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 1.5rem; 
  margin-top: 2rem;
}

.post-card { 
  position: relative; 
  overflow: hidden; 
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(23, 245, 151, 0.05)); 
  border: 1px solid rgba(0, 212, 255, 0.3); 
  border-radius: 1.2rem; 
  padding: 1.5rem; 
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.08); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.5);
}

.post-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(23, 245, 151, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.post-card:hover .post-glow {
  opacity: 1;
}

.post-head { 
  display: flex; 
  align-items: flex-start; 
  gap: .8rem; 
  margin-bottom: 1rem; 
  position: relative;
  z-index: 2;
}

.post-head h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.post-badge { 
  display: inline-block; 
  font-family: 'Roboto Mono', monospace; 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  padding: .3rem .6rem; 
  border-radius: .4rem; 
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.post-badge.research { 
  background: linear-gradient(135deg, #a855f7, #c084fc); 
  color: white; 
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.post-badge.tutorial { 
  background: linear-gradient(135deg, #17f597, #4ade80); 
  color: #001b12; 
  box-shadow: 0 4px 15px rgba(23, 245, 151, 0.3);
}

.post-badge.case-study { 
  background: linear-gradient(135deg, #ff4d6d, #ff6b8a); 
  color: white; 
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

.post-badge.tools { 
  background: linear-gradient(135deg, #f97316, #fb923c); 
  color: white; 
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.post-badge.news { 
  background: linear-gradient(135deg, #00d4ff, #38bdf8); 
  color: #00141c; 
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.post-meta { 
  font-family: 'Roboto Mono', monospace; 
  color: var(--muted); 
  margin: 0.5rem 0 1rem; 
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

.post-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.post-stats {
  display: flex;
  gap: 0.8rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.stat {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tags { 
  display: flex; 
  gap: .4rem; 
  flex-wrap: wrap; 
  margin: 1rem 0;
  position: relative;
  z-index: 2;
}

.tags span {
  background: rgba(23, 245, 151, 0.1);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(23, 245, 151, 0.2);
}

.post-actions { 
  display: flex; 
  gap: .6rem; 
  margin-top: 1rem; 
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(23, 245, 151, 0.05));
  border-radius: 1rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.blog-cta .btn {
  margin: 0 0.5rem;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-blog h1 {
    font-size: 2rem;
  }
  
  .posts-grid { 
    grid-template-columns: 1fr; 
    gap: 1rem;
  }
  
  .post-card {
    padding: 1rem;
  }
  
  .post-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .post-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .filters {
    justify-content: flex-start;
  }
  
  .filter-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 520px) {
  .posts-grid { 
    grid-template-columns: 1fr; 
  }
  
  .post-actions {
    flex-direction: column;
  }
  
  .btn-small {
    width: 100%;
    text-align: center;
  }
}
