/* Blog Page Styles */
.blog-section { position: relative; min-height: 60vh; }
/* Декоративный фон Dev/Ops — как на главной, дашборде, админке */
.blog-page .hero-dev,
.blog-page .hero-ops {
  position: fixed;
  font-size: clamp(150px, 20vw, 280px);
  z-index: 0;
}
.blog-page .hero-dev {
  left: -8%;
  top: 25%;
  color: #4fd1a5;
  filter: blur(2px);
  opacity: 0.03;
}
.blog-page .hero-ops {
  right: -8%;
  top: 35%;
  color: #5b7cff;
  filter: blur(0.5px);
  opacity: 0.03;
}
.blog-section::before {
  content: "";
  position: absolute;
  left: 50%; top: 20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.blog-page-banner {
  padding: 100px 0 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.blog-page-banner .blog-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}
.blog-page-banner h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.blog-page-banner .banner-desc {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.blog-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.blog-filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.15));
  background: var(--bg-surface, rgba(17, 24, 39, 0.8));
  color: var(--text-secondary, #94a3b8);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.blog-filter-btn:hover {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--text-primary, #f8fafc);
}
.blog-filter-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--accent-secondary, #93c5fd);
}
.blog-list {
  max-width: 720px;
  margin: 0 auto 100px;
  position: relative;
  z-index: 1;
}
.blog-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.blog-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.blog-card:hover::before { opacity: 1; }
.blog-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.blog-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.06em;
}
.blog-badge-blog {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
  color: var(--accent-secondary);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.blog-badge-news {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
  color: #6ee7b7;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.blog-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.blog-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.35;
  font-weight: 700;
}
.blog-card .blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card .blog-link {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card .blog-link:hover { color: var(--accent-secondary); }
.blog-card .blog-link::after { content: "→"; }

/* Blog Post Page Styles */
.post-page { padding: 100px 0 80px; box-sizing: border-box; }
.post-back { margin-bottom: 24px; }
.post-back a { color: var(--accent-primary); font-size: 0.95rem; }
.post-back a:hover { text-decoration: underline; }
.post-badge { 
  display: inline-block; 
  font-size: 0.75rem; 
  font-weight: 600; 
  padding: 4px 10px; 
  border-radius: 6px; 
  margin-bottom: 12px; 
  text-transform: uppercase; 
}
.post-badge-blog {
  background: rgba(59, 130, 246, 0.2); 
  color: var(--accent-secondary);
}
.post-badge-news {
  background: rgba(34, 197, 94, 0.2); 
  color: #6ee7b7;
}
.post-title { font-size: 2rem; margin-bottom: 12px; line-height: 1.3; }
.post-date { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }
.post-body { max-width: 100%; }
.post-body p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.65; }
.post-body h3 { font-size: 1.25rem; margin: 28px 0 12px; color: var(--text-primary); }
.post-body ul { margin: 0 0 1rem 1.25rem; color: var(--text-secondary); }
.post-body li { margin-bottom: 0.4rem; }
.post-body code { background: rgba(59, 130, 246, 0.12); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }

/* Похожие статьи */
.post-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}
.post-related h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.post-related-links a {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  color: var(--accent-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.post-related-links a:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Планшет и десктоп: одна широкая колонка, всё выровнено */
@media (min-width: 768px) {
  .post-page.container { max-width: 900px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
  .post-title { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .post-page.container { max-width: 1000px; padding-left: 32px; padding-right: 32px; }
  .post-title { font-size: 2.5rem; }
}
@media (min-width: 1280px) {
  .post-page.container { max-width: 1100px; }
}

/* Список записей блога */
@media (min-width: 768px) {
  .blog-list { max-width: 860px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1024px) {
  .blog-list { max-width: 960px; }
}
