/* Blog Page Styles - High Specificity */
body.blog-page,
body.blog-page * {
  box-sizing: border-box;
}

body.blog-page {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  background: #f8fafc;
}

/* Blog Hero Section */
body.blog-page .blog-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 80px 20px;
  text-align: center;
  color: white;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.blog-page .blog-hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 2.75rem;
  margin: 0 0 16px 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  text-align: center;
  width: 100%;
}

body.blog-page .blog-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: white;
  text-align: center;
  width: 100%;
}

/* Blog Container */
body.blog-page .blog-container {
  max-width: 1200px !important;
  margin: 0 auto;
  padding: 50px 20px;
  display: flex;
  gap: 40px;
  width: 100%;
}

/* Sidebar */
body.blog-page .blog-sidebar {
  width: 300px;
  flex-shrink: 0;
}

body.blog-page .blog-sidebar-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
  border: 1px solid #e2e8f0;
}

body.blog-page .blog-search {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 28px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  transition: all 0.3s ease;
}

body.blog-page .blog-search:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

body.blog-page .categories-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.blog-page .category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.blog-page .category-list li {
  margin-bottom: 6px;
}

body.blog-page .category-list button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-weight: 500;
}

body.blog-page .category-list button:hover {
  background: #f1f5f9;
  color: #1e293b;
}

body.blog-page .category-list button.active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

/* Articles Section */
body.blog-page .blog-content {
  flex: 1;
  min-width: 0;
}

body.blog-page .articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

body.blog-page .article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

body.blog-page .article-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
  border-color: #cbd5e1;
}

body.blog-page .article-image {
  height: 200px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

body.blog-page .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

body.blog-page .article-card:hover .article-image img {
  transform: scale(1.05);
}

body.blog-page .article-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.blog-page .article-category {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 14px;
  width: fit-content;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.blog-page .article-category.fz152 { background: #dbeafe; color: #1d4ed8; }
body.blog-page .article-category.fz149 { background: #e0e7ff; color: #4338ca; }
body.blog-page .article-category.cookie { background: #dcfce7; color: #15803d; }
body.blog-page .article-category.policy { background: #cffafe; color: #0891b2; }
body.blog-page .article-category.audit { background: #f3e8ff; color: #7c3aed; }
body.blog-page .article-category.rkn { background: #fee2e2; color: #dc2626; }
body.blog-page .article-category.fines { background: #fef3c7; color: #d97706; }
body.blog-page .article-category.cases { background: #d1fae5; color: #059669; }
body.blog-page .article-category.news { background: #f1f5f9; color: #475569; }
body.blog-page .article-category.guides { background: #ffedd5; color: #ea580c; }

body.blog-page .article-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

body.blog-page .article-description {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1;
}

body.blog-page .article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: #94a3b8;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

body.blog-page .article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Empty State */
body.blog-page .empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}

body.blog-page .empty-state h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #475569;
  font-weight: 700;
}

body.blog-page .empty-state p {
  font-size: 1rem;
  color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 900px) {
  body.blog-page .blog-hero {
    padding: 60px 20px;
  }
  
  body.blog-page .blog-hero h1 {
    font-size: 2.25rem;
  }
  
  body.blog-page .blog-container {
    flex-direction: column;
    padding: 40px 20px;
  }
  
  body.blog-page .blog-sidebar {
    width: 100%;
  }
  
  body.blog-page .blog-sidebar-card {
    position: static;
    top: 0;
  }
  
  body.blog-page .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  body.blog-page .category-list li {
    margin: 0;
  }
  
  body.blog-page .category-list button {
    padding: 10px 16px;
    white-space: nowrap;
  }
  
  body.blog-page .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 600px) {
  body.blog-page .blog-hero {
    padding: 50px 20px;
  }
  
  body.blog-page .blog-hero h1 {
    font-size: 1.875rem;
  }
  
  body.blog-page .blog-hero p {
    font-size: 1.1rem;
  }
  
  body.blog-page .articles-grid {
    grid-template-columns: 1fr;
  }
  
  body.blog-page .blog-sidebar-card {
    padding: 20px;
  }
  
  body.blog-page .article-body {
    padding: 20px;
  }
}

/* Loading State */
body.blog-page .articles-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.blog-page .article-card {
  animation: fadeIn 0.4s ease-out;
}
