/* Шапка блога */
.header {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.header h1 {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* Контейнер статьи */
.article {
  max-width: 900px;
  margin: 50px auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 60px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.7s ease;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px 24px 0 0;
}

.article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

/* Заголовок статьи */
.article h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #1a202c;
  line-height: 1.3;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Метаданные статьи */
.article em {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #718096;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f7fafc;
  font-style: normal;
  align-items: center;
}

.article em::before {
  content: '📅';
  font-size: 16px;
}

/* Подзаголовки */
.article h3 {
  font-size: 26px;
  font-weight: 700;
  color: #2d3748;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 20px;
  border-left: 5px solid #667eea;
  line-height: 1.4;
}

/* Параграфы */
.article p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #4a5568;
  font-weight: 400;
}

.article p strong {
  color: #2d3748;
  font-weight: 700;
}

/* Списки */
.article ul {
  padding-left: 30px;
  margin-bottom: 24px;
}

.article ul li {
  margin-bottom: 12px;
  list-style: none;
  position: relative;
  font-size: 17px;
  line-height: 1.7;
  color: #4a5568;
  padding-left: 10px;
}

.article ul li::before {
  content: '▸';
  position: absolute;
  left: -20px;
  color: #667eea;
  font-weight: bold;
  font-size: 18px;
}

/* Таблицы */
.article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article table th,
.article table td {
  padding: 16px 20px;
  border: none;
  font-size: 16px;
  text-align: left;
}

.article table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.article table tbody tr {
  background: #ffffff;
  transition: all 0.2s ease;
}

.article table tbody tr:nth-child(even) {
  background: #f7fafc;
}

.article table tbody tr:hover {
  background: #edf2f7;
  transform: scale(1.01);
}

.article table td {
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
}

/* Цитаты */
.article blockquote {
  margin: 30px 0;
  padding: 25px 30px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-left: 6px solid #667eea;
  border-radius: 8px;
  font-style: italic;
  color: #2d3748;
  font-size: 18px;
  line-height: 1.7;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article blockquote::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 60px;
  color: rgba(102, 126, 234, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}
/* Разделитель между статьями */
hr {
  margin: 80px auto;
  max-width: 100px;
  height: 4px;
  border: none;
  background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
  border-radius: 4px;
  position: relative;
}

hr::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 0 15px;
  color: #667eea;
  font-size: 20px;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Контейнер для статей блога */
#blog-articles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Индикатор загрузки */
.loading-spinner {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 24px;
  margin: 40px auto;
  max-width: 600px;
}

.loading-spinner i {
  font-size: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: spin 1.5s linear infinite;
  display: inline-block;
}

.loading-spinner p {
  margin-top: 20px;
  font-size: 18px;
  color: #4a5568;
  font-weight: 600;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Пустое состояние */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 24px;
  margin: 40px auto;
  max-width: 700px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.empty-state i {
  font-size: 80px;
  background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  display: inline-block;
}

.empty-state h3 {
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
}

.empty-state p {
  color: #718096;
  font-size: 16px;
  line-height: 1.6;
}

/* Стили для метаданных статьи */
.article em strong {
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Бейджи категорий */
.article em::after {
  content: attr(data-category);
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .header {
    padding: 60px 20px 40px;
  }

  .header h1 {
    font-size: 32px;
  }

  .header p {
    font-size: 16px;
  }

  .article {
    margin: 30px 16px;
    padding: 30px 24px;
    border-radius: 16px;
  }

  .article h2 {
    font-size: 28px;
  }

  .article h3 {
    font-size: 22px;
    margin-top: 30px;
    padding-left: 15px;
  }

  .article p {
    font-size: 16px;
    line-height: 1.7;
  }

  .article ul li {
    font-size: 16px;
  }

  .article table th,
  .article table td {
    padding: 12px 10px;
    font-size: 14px;
  }

  .article blockquote {
    padding: 20px;
    font-size: 16px;
  }

  .article blockquote::before {
    font-size: 40px;
  }

  #comparison {
    padding: 24px;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  #blog-articles-container {
    padding: 10px;
  }

  hr {
    margin: 60px auto;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .header h1 {
    font-size: 28px;
  }

  .header p {
    font-size: 15px;
  }

  .article {
    padding: 24px 20px;
  }

  .article h2 {
    font-size: 24px;
  }

  .article h3 {
    font-size: 20px;
  }

  .article p {
    font-size: 15px;
  }
}