/* src/styles/pages/changelog.css */
/* === СТРАНИЦА РЕЛИЗ-НОТ === */
.changelog-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* === ШАПКА (как у гайдов) === */
.guide-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 40px;
}

.guide-header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.guide-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.btn-back {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* === ЗАПИСЬ === */
.changelog-entry {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #667eea;
}

.entry-date {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.entry-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.entry-content h3 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
  color: #3498db;
}

.entry-content p {
  color: #34495e;
  margin-bottom: 16px;
  line-height: 1.6;
}

.entry-content ul {
  margin: 12px 0 20px 24px;
  line-height: 1.6;
  color: #34495e;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content code {
  background: #f1f3f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: 'Courier New', monospace;
}

.entry-demo {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.btn-guide,
.btn-download {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-guide {
  background: #3498db;
  color: white;
}

.btn-guide:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

.btn-download {
  background: #27ae60;
  color: white;
}

.btn-download:hover {
  background: #219653;
  transform: translateY(-2px);
}

/* === CTA === */
.changelog-cta {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
  border: 1px dashed #3498db;
}

.changelog-cta h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: #2c3e50;
}

.changelog-cta p {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0;
}

.changelog-cta a {
  color: #3498db;
  font-weight: 600;
  text-decoration: underline;
}

.changelog-cta a:hover {
  color: #2980b9;
}

/* === НОВЫЕ СТИЛИ ДЛЯ КАРТЫ ПОКРЫТИЯ === */

/* Статистика покрытия */
.coverage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  border-radius: 12px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
}

/* Карта покрытия */
.coverage-map-wrapper {
  margin: 24px 0;
  text-align: center;
}

.coverage-map-thumb {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 3px solid transparent;
}

.coverage-map-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: #667eea;
}

.map-caption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #7f8c8d;
  font-style: italic;
}

/* === МОДАЛЬНОЕ ОКНО ДЛЯ ИЗОБРАЖЕНИЙ === */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.image-modal .modal-content {
  max-width: 95%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: modalZoom 0.3s;
}

@keyframes modalZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 48px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.modal-close:hover,
.modal-close:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.modal-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 20px;
  border-radius: 20px;
  max-width: 80%;
  text-align: center;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .coverage-stats {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .coverage-map-thumb {
    max-height: 300px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 36px;
    width: 40px;
    height: 40px;
  }

  .modal-caption {
    font-size: 0.9rem;
    padding: 6px 12px;
    bottom: 10px;
  }
}