/* ============================================
   СТИЛИ ДЛЯ СТАТЕЙ БЛОГА
   AI Собеседник
   ============================================ */

/* ===== КОНТЕЙНЕР СТАТЬИ ===== */
.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.post-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 8px;
  row-gap: 4px;
  margin: 0 0 28px;
  padding: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
  text-align: left;
}

.post-breadcrumbs .breadcrumb-link {
  color: #0000ff;
  text-decoration: none;
  white-space: nowrap;
}

.post-breadcrumbs .breadcrumb-link:hover {
  text-decoration: underline;
}

.post-breadcrumbs .breadcrumb-sep {
  color: #94a3b8;
  flex-shrink: 0;
  user-select: none;
}

.post-breadcrumbs .breadcrumb-current {
  color: #334155;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===== ШАПКА СТАТЬИ ===== */
.post-header {
  margin-bottom: 40px;
  text-align: center;
}

.post-category {
  display: inline-block;
  background: #eef2ff;
  color: #0000ff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.post-header h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1b1f24;
  line-height: 1.3;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: #646b75;
  font-size: 15px;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== СОДЕРЖАНИЕ СТАТЬИ ===== */
.post-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1e293b;
}

.post-content h2 {
  font-size: 28px;
  font-weight: 650;
  color: #1b1f24;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef2ff;
}

.post-content h3 {
  font-size: 22px;
  font-weight: 650;
  color: #1b1f24;
  margin: 30px 0 15px;
}

.post-content p {
  margin-bottom: 25px;
}

.post-content ul,
.post-content ol {
  margin: 20px 0 30px 30px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content strong {
  color: #0000ff;
  font-weight: 650;
}

.post-content a {
  color: #0000ff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 255, 0.3);
}

.post-content a:hover {
  border-bottom: 2px solid #0000ff;
}

.post-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: #f6f8ff;
  border-left: 4px solid #0000ff;
  border-radius: 16px;
  font-style: italic;
  color: #1b1f24;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 20px 0;
}

/* ===== ОБЛОЖКА СТАТЬИ (hero) ===== */
.post-image {
  margin: 40px 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}

.post-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

/* Изображения в теле статьи (CMS) */
.post-content .post-figure,
.post-content figure.post-figure {
  margin: 1.5em 0;
  max-width: 100%;
  padding: 0;
  border: none;
}

.post-content .post-figure img,
.post-content figure.post-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.post-content .post-figure[data-align="left"] img,
.post-content .post-figure.post-figure--left img {
  margin-left: 0;
  margin-right: auto;
}

.post-content .post-figure[data-align="center"] img,
.post-content .post-figure.post-figure--center img {
  margin-left: auto;
  margin-right: auto;
}

.post-content .post-figure[data-align="right"] img,
.post-content .post-figure.post-figure--right img {
  margin-left: auto;
  margin-right: 0;
}

/* Высокие иллюстрации: текст слева, картинка справа (обтекание) */
.post-content .post-figure.post-figure--right[data-float="side"],
.post-content .post-figure.post-figure--right.post-figure--side {
  float: right;
  width: min(42%, 340px);
  max-width: 42%;
  margin: 0.15em 0 1.25em 1.5em;
  clear: right;
}

.post-content .post-figure.post-figure--right.post-figure--side img,
.post-content .post-figure.post-figure--right[data-float="side"] img {
  width: 100% !important;
  margin: 0;
}

.post-content .post-figure figcaption {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #64748b;
  text-align: center;
}

/* ===== БЛОК С ПРИЗЫВОМ К ДЕЙСТВИЮ ===== */
.cta-box {
  background: linear-gradient(145deg, #f6f8ff 0%, #eef2ff 100%);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  margin: 40px 0;
  border: 1px solid rgba(0, 0, 255, 0.08);
}

.cta-box h3 {
  font-size: 24px;
  font-weight: 650;
  color: #1b1f24;
  margin-bottom: 16px;
}

.cta-box p {
  margin-bottom: 24px;
  color: #646b75;
  font-size: 16px;
}

.cta-box .btn-primary {
  background: #0000ff;
  color: white;
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 14px rgba(0, 0, 255, 0.18);
  transition: all 0.15s ease;
  border: none;
}

.cta-box .btn-primary:hover {
  background: #0000d6;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 255, 0.24);
}

/* ===== ИНФОРМАЦИОННЫЕ БЛОКИ ===== */
.info-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  padding: 24px;
  margin: 30px 0;
}

.info-box h4 {
  color: #0369a1;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 650;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.tip-box {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 20px;
  padding: 24px;
  margin: 30px 0;
}

.tip-box h4 {
  color: #854d0e;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 650;
}

.warning-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 24px;
  margin: 30px 0;
}

.warning-box h4 {
  color: #c2410c;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 650;
}

/* ===== SVG-ИКОНКИ В СТАТЬЯХ ===== */
.post-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
  vertical-align: -0.15em;
}

.post-icon svg {
  display: block;
}

.post-icon--xs svg {
  width: 14px;
  height: 14px;
}

.post-icon--sm svg {
  width: 16px;
  height: 16px;
}

.post-icon--md svg {
  width: 20px;
  height: 20px;
}

.post-icon--lg svg {
  width: 28px;
  height: 28px;
}

.post-icon--xl svg {
  width: 36px;
  height: 36px;
}

.post-content h3 .post-icon,
.post-content h4 .post-icon,
.post-content h5 .post-icon,
.related-title .post-icon,
.security-badge .post-icon {
  margin-right: 8px;
}

.workflow-arrow,
.schema-arrow,
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex-shrink: 0;
}

.workflow-arrow .post-icon svg,
.schema-arrow .post-icon svg,
.flow-arrow .post-icon svg {
  width: 24px;
  height: 24px;
}

.workflow-box,
.schema-box,
.flow-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.workflow-box .post-icon,
.schema-box .post-icon,
.flow-box .post-icon {
  display: block;
  margin: 0;
  color: inherit;
}

.tip-icon .post-icon,
.mode-icon .post-icon,
.metric-value .post-icon {
  color: inherit;
}

.tip-icon .post-icon svg,
.mode-icon .post-icon svg {
  width: 32px;
  height: 32px;
}

.metric-value .post-icon svg {
  width: 40px;
  height: 40px;
}

.author-avatar .post-icon {
  color: white;
}

.author-avatar .post-icon svg {
  width: 36px;
  height: 36px;
}

.share-btn .post-icon svg {
  width: 22px;
  height: 22px;
}

.share-btn--max:hover {
  border-color: #7c5cff;
  color: #5b4bff;
}

.checklist-text .post-icon {
  color: #0000ff;
  margin-right: 4px;
}

.checklist-checkbox.checked:after,
.data-card.green .data-list li:before,
.mode-features li:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.data-card.red .data-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-color: #ef4444;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.data-card.green .data-list li:before {
  color: #22c55e;
  left: 0;
  transform: translateY(-50%);
}

/* ===== ССЫЛКА ВОЗВРАТА ===== */
.back-to-blog,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #646b75;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 30px;
  transition: color 0.15s ease;
}

.back-to-blog:hover {
  color: #0000ff;
}

/* ===== ПОДВАЛ СТАТЬИ ===== */
.post-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #eef2ff;
}

.author-box {
  display: flex;
  gap: 24px;
  align-items: center;
  background: #f6f8ff;
  padding: 28px;
  border-radius: 24px;
  margin-bottom: 40px;
}

.author-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, #0000ff 0%, #3b82f6 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 18px;
  font-weight: 650;
  color: #1b1f24;
  margin-bottom: 8px;
}

.author-info p {
  color: #646b75;
  line-height: 1.6;
  margin: 0;
}

/* ===== КНОПКИ ПОДЕЛИТЬСЯ ===== */
.share-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.share-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: white;
  border: 1.5px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b1f24;
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-btn:hover {
  border-color: #0000ff;
  background: #f6f8ff;
  transform: translateY(-2px);
}

/* ===== ПОХОЖИЕ СТАТЬИ ===== */
.related-posts {
  margin-top: 60px;
}

.related-title {
  font-size: 24px;
  font-weight: 650;
  color: #1b1f24;
  margin-bottom: 28px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #eef2ff;
  transition: all 0.15s ease;
}

.related-card:hover {
  border-color: #0000ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 255, 0.12);
}

.related-card h4 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 10px;
  line-height: 1.4;
}

.related-card a {
  color: #1b1f24;
  text-decoration: none;
}

.related-card a:hover {
  color: #0000ff;
}

.related-date {
  font-size: 13px;
  color: #9ca3b0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .post-header h1 {
    font-size: 32px;
  }

  .post-meta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .post-content {
    font-size: 16px;
  }

  .post-content h2 {
    font-size: 24px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .post-container {
    padding: 20px 16px 40px;
  }

  .cta-box {
    padding: 24px 20px;
  }

  .cta-box h3 {
    font-size: 20px;
  }
}

/* ===== LAYOUT BLOCKS (CMS / shared) ===== */

.blog-columns,
.comparison-grid,
.comparison-mini,
.mode-grid,
.modes-comparison,
.data-comparison,
.metrics-grid,
.example-pair {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

.blog-columns--equal,
.comparison-grid,
.comparison-mini,
.mode-grid,
.modes-comparison,
.data-comparison,
.example-pair {
  grid-template-columns: 1fr 1fr;
}

.blog-columns[data-columns="3"],
.metrics-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-column,
.blog-card,
.comparison-card,
.mode-card,
.data-card,
.metric-card,
.example-pair-item,
.example-before,
.example-after {
  border-radius: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid #eef2ff;
}

.comparison-card.before,
.comparison-mini-item.bad,
.data-card.red {
  border: 2px solid #fecaca;
  background: #fef2f2;
}

.comparison-card.after,
.comparison-mini-item.good,
.data-card.green {
  border: 2px solid #bbf7d0;
  background: #f0fdf4;
}

.comparison-card.before h4,
.comparison-mini-item.bad h5,
.data-card.red h4 {
  color: #b91c1c;
}

.comparison-card.after h4,
.comparison-mini-item.good h5,
.data-card.green h4 {
  color: #166534;
}

.comparison-mini-item {
  padding: 20px;
  border-radius: 16px;
}

.mode-card--quiet {
  border-left: 4px solid #94a3b8;
}

.mode-card--aloud {
  border-left: 4px solid #0000ff;
  background: linear-gradient(145deg, #f8faff 0%, #ffffff 100%);
}

.mode-card.conversation {
  border: 2px solid #0000ff;
}

.mode-card.thought {
  border: 2px solid #8b5cf6;
}

.mode-card.conversation h4 {
  color: #0000ff;
}

.mode-card.thought h4 {
  color: #8b5cf6;
}

.mode-icon {
  margin-bottom: 16px;
}

.mode-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.mode-features li {
  padding: 8px 0 8px 28px;
  position: relative;
}

.mode-features li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mode-card.conversation .mode-features li:before {
  color: #0000ff;
}

.mode-card.thought .mode-features li:before {
  color: #8b5cf6;
}

.metric-card {
  text-align: center;
  border: 1px solid #eef2ff;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #0000ff;
  margin-bottom: 8px;
}

.metric-label {
  color: #646b75;
  font-size: 15px;
}

.example-before {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.example-after {
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  color: #1b1f24;
}

.tip-card,
.step-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px;
  margin: 30px 0;
  position: relative;
}

.tip-card:hover,
.step-card:hover {
  border-color: #0000ff;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 255, 0.15);
}

.tip-number,
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0000ff;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 30px;
  border: 3px solid white;
  margin-bottom: 0;
}

.step-card > *:first-child {
  margin-top: 8px;
}

.tip-example {
  background: #f8fafc;
  border-left: 4px solid #94a3b8;
  padding: 15px 20px;
  margin-top: 20px;
  border-radius: 12px;
  font-style: italic;
}

.stat-highlight {
  background: #f0f4ff;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
  border-left: 4px solid #0000ff;
}

.benefit-list,
.tips-list,
.tool-list {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
}

.benefit-list li,
.tips-list li,
.tool-list li {
  padding: 16px 20px;
  margin-bottom: 10px;
  background: white;
  border: 1px solid #eef2ff;
  border-radius: 16px;
}

.tool-list li strong {
  display: block;
  margin-bottom: 6px;
}

.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.data-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.data-list li:last-child {
  border-bottom: none;
}

.data-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-color: currentColor;
}

.checklist-list,
.checklist {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px 28px;
  margin: 32px 0;
  list-style: none;
}

.checklist-list li,
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.checklist-list li:last-child,
.checklist-item:last-child {
  border-bottom: none;
}

.checklist-list li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.data-flow {
  background: #0f172a;
  color: white;
  border-radius: 24px;
  padding: 30px;
  margin: 40px 0;
}

.data-flow-title {
  color: #94a3b8;
  margin: 0 0 20px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 650;
}

.data-flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.flow-box,
.blog-flow-item {
  flex: 1;
  min-width: 120px;
  background: #1e293b;
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid #334155;
  text-align: center;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
  padding: 0 4px;
}

@media (max-width: 768px) {
  .blog-columns--equal,
  .comparison-grid,
  .comparison-mini,
  .mode-grid,
  .modes-comparison,
  .data-comparison,
  .example-pair,
  .blog-columns[data-columns="3"],
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .post-content .post-figure.post-figure--right.post-figure--side,
  .post-content .post-figure.post-figure--right[data-float="side"] {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
  }

  .data-flow-row {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }
}