/* ========================================
   СТИЛИ БЛОГА
   ======================================== */

.blog-header {
  text-align: center;
  margin: 30px 0;
}

.blog-intro {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  color: #666;
  font-size: 18px;
  line-height: 1.6;
}

/* Сетка блога */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
}

@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
  }
}
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
  }
}

.blog-post-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post-thumbnail {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-thumbnail img {
  transform: scale(1.05);
}

.blog-post-content {
  padding: 25px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.blog-post-date {
  background: #b0ff00;
  color: #2c2c2c;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.blog-post-category {
  color: #b0ff00;
  font-weight: bold;
}

.blog-post-title {
  margin-bottom: 15px;
}

.blog-post-title a {
  color: #2c2c2c;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  color: #b0ff00;
}

.blog-post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-post-readmore {
  color: #b0ff00;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-readmore:hover {
  color: #9ee600;
}

/* Детальная страница поста */
.single-post {
  max-width: 900px;
  margin: 0 auto;
}

.single-post-header {
  text-align: center;
  margin: 30px auto;
  padding: 40px;
  background: linear-gradient(135deg, #2c2c2c, #444);
  color: white;
  border-radius: 12px;
  max-width: 1000px;
}

.single-post-title {
  color: white;
  margin-bottom: 20px;
  font-size: 32px;
  line-height: 1.2;
}

.single-post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #f0f0f0;
  font-size: 16px;
}

.single-post-content {
  line-height: 1.8;
  font-size: 18px;
  color: #333;
  max-width: 900px;
  margin: 0 auto;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  color: #2c2c2c;
  margin: 30px 0 15px;
  border-bottom: 2px solid #b0ff00;
  padding-bottom: 10px;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content ul,
.single-post-content ol {
  margin: 20px 0;
  padding-left: 20px;
}

.single-post-content li {
  margin-bottom: 10px;
}

.single-post-content blockquote {
  background: #f9f9f9;
  border-left: 4px solid #b0ff00;
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #666;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* Навигация по постам */
.post-navigation {
  margin: 40px auto;
  padding: 30px;
  background: #f9f9f9;
  border-radius: 10px;
  max-width: 1000px;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  color: #2c2c2c;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.post-navigation a:hover {
  color: #b0ff00;
}

.post-navigation .nav-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

/* Комментарии */
.comments-section {
  margin: 40px auto;
  max-width: 900px;
}

.comment-list .comment {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.comment-reply-title {
  margin-bottom: 15px;
}
.comment-respond {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.comments-title {
  color: #2c2c2c;
  margin-bottom: 30px;
  border-bottom: 2px solid #b0ff00;
  padding-bottom: 10px;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comment-author {
  font-weight: bold;
  color: #2c2c2c;
  margin-bottom: 5px;
}

.comment-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.comment-content {
  color: #333;
  line-height: 1.6;
}

/* Форма комментариев */
.comment-respond {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-top: 30px;
}

.comment-reply-title {
  color: #2c2c2c;
  margin-bottom: 20px;
}

.comment-form {
  display: grid;
  gap: 20px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.comment-form-comment {
  grid-column: 1 / -1;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #b0ff00;
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  text-align: center;
}

.form-submit .button {
  background: #b0ff00;
  color: #2c2c2c;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit .button:hover {
  background: #9ee600;
  transform: translateY(-2px);
}

/* Пагинация */
.blog-pagination {
  text-align: center;
  margin: 40px 0;
}

.blog-pagination .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background: white;
  color: #2c2c2c;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: #b0ff00;
  color: #2c2c2c;
  transform: translateY(-2px);
}

/* Адаптивность для блога */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .single-post-title {
    font-size: 24px;
  }

  .single-post-meta {
    flex-direction: column;
    gap: 10px;
  }

  .post-navigation .nav-links {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .comment-form-author,
  .comment-form-email,
  .comment-form-url {
    grid-template-columns: 1fr;
  }
}

/* Комментарии - улучшенный вид */
.comment-list > li {
  list-style: none;
}
.comment {
  display: block;
}
.comment .comment-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  align-items: start;
}
.comment .comment-body .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.comment .comment-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.comment .comment-author {
  margin: 0;
  font-weight: 700;
  color: #2c2c2c;
}
.comment .comment-meta {
  margin: 0;
  font-size: 13px;
  color: #999;
}
.comment .reply {
  margin-top: 10px;
}
.comment .reply a {
  color: #b0ff00;
  font-weight: 600;
  text-decoration: none;
}
.comment .reply a:hover {
  text-decoration: underline;
}

/* Кнопка отправки формы по центру */
.comment-respond .form-submit {
  text-align: center;
}
.comment-respond .form-submit .submit {
  background: #b0ff00;
  color: #2c2c2c;
  border: none;
  padding: 12px 26px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.comment-respond .form-submit .submit:hover {
  background: #9ee600;
  transform: translateY(-1px);
}
