/* ===== СТРАНИЦА БЛОГА ===== */
.blog-page {
  background: var(--white);
  min-height: 100vh;
}

/* Хедер блога */
.blog-header {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: var(--white);
  margin-bottom: 40px;
}

.blog-header h1 {
  font-size: 48px;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.blog-header p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Сетка статей */
.blog-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Карточка статьи */
.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

/* Изображение статьи */
.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  position: relative;
  overflow: hidden;
}

.blog-card-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

/* Контент карточки */
.blog-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 15px;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-category {
  background: var(--light);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

.blog-card-date {
  opacity: 0.8;
}

.blog-card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  border: none;
}

.blog-card-read-more:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.blog-card-read-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.blog-card-read-more:hover svg {
  transform: translateX(3px);
}

.blog-card-stats {
  display: flex;
  gap: 15px;
  color: #999;
  font-size: 13px;
}

.blog-card-stats span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Пустой блог */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--light);
  border-radius: 20px;
  grid-column: 1 / -1;
}

.blog-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.blog-empty h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 10px;
}

.blog-empty p {
  color: var(--text);
  opacity: 0.8;
}

/* Подвал блога */
.blog-footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #f0f0f0;
  color: var(--text);
  opacity: 0.8;
  font-size: 14px;
}

/* Адаптация */
@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 36px;
  }
  
  .blog-header p {
    font-size: 16px;
    padding: 0 20px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 15px 40px;
  }
  
  .blog-card-image {
    height: 180px;
  }
  
  .blog-card-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .blog-header {
    padding: 40px 15px 30px;
  }
  
  .blog-header h1 {
    font-size: 28px;
  }
  
  .blog-card-content {
    padding: 20px;
  }
  
  .blog-card-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .blog-card-stats {
    width: 100%;
    justify-content: flex-start;
  }
}