/* ArcaneWorld News Full Styles */
/* Использует тот же визуальный стиль, что и TinyMCE */

@import url('https://fonts.googleapis.com/css2?family=Philosopher:wght@400;700&display=swap');

.news-body {
  font-family: 'Philosopher', sans-serif;
  color: #f3e9d2;
  padding: 25px 30px;
  line-height: 1.7;
  font-size: 16px;
  text-align: left;
}

/* Заголовки */
.news-body h1, .news-body h2, .news-body h3, .news-body h4, .news-body h5, .news-body h6 {
  color: #facc15;
  margin: 1.5em 0 0.6em 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.news-body h1 { font-size: 2em; border-bottom: 1px solid rgba(255,215,128,0.3); padding-bottom: 5px; }
.news-body h2 { font-size: 1.7em; }
.news-body h3 { font-size: 1.4em; }
.news-body h4 { font-size: 1.2em; }

/* Текст */
.news-body p { margin-bottom: 1em; }
.news-body strong, .news-body b { color: #ffe08a; }
.news-body em, .news-body i { color: #e7cf9e; }
.news-body u { text-decoration-color: #facc15; }
.news-body mark {
  background-color: rgba(250, 204, 21, 0.2);
  color: #fff;
  padding: 0 4px;
  border-radius: 3px;
}

/* Ссылки */
.news-body a { color: #facc15; text-decoration: underline; transition: color 0.3s; }
.news-body a:hover { color: #fde68a; }

/* === Lists (ul / ol) === */
/* === Сброс обнуления и восстановление списков внутри .news-body === */
.news-body ul,
.news-body ol {
  margin: 1em 0 1em 2em;
  padding: 0;
  list-style-position: outside;
}

/* повышаем приоритет, чтобы перебить ul,ol,li */
.news-body ul,
.news-body ul li {
  list-style-type: disc;
  list-style: disc outside;
}

.news-body ol,
.news-body ol li {
  list-style-type: decimal;
  list-style: decimal outside;
}

/* дополнительные параметры */
.news-body li {
  display: list-item;
  text-align: left;
  line-height: 1.6;
  margin: 6px 0;
}

/* цвет маркеров */
.news-body ul li::marker {
  color: #facc15;
}
.news-body ol li::marker {
  color: #eab308;
}


/* Элементы с эмодзи / иконками */
.news-body li img {
  vertical-align: middle;
  margin-right: 6px;
  height: 1.3em;
  width: auto;
  display: inline-block;
  object-fit: contain;
}


/* Элементы с иконками (эмодзи или img) */
.news-body li img {
  vertical-align: middle;
  margin-right: 6px;
  height: 1.3em;
  width: auto;
}


/* Цитаты */
.news-body blockquote {
  border-left: 4px solid #facc15;
  background: rgba(250, 204, 21, 0.08);
  padding: 15px 25px;
  color: #f3e9d2;
  font-style: italic;
  border-radius: 8px;
  margin: 20px 0;
}

/* Обычные изображения по контентной ширине */
.news-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 15px auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Поддержка подписи TinyMCE: figure.image + figcaption */
.news-body figure.image {
  display: block;
  margin: 16px auto;
  max-width: 100%;
}
.news-body figure.image img {
  display: block;
  width: 100%;
  height: auto;
}
.news-body figure.image figcaption {
  text-align: center;
  font-size: .9em;
  color: #e7cf9e;
  margin-top: 6px;
  opacity: .9;
}

/* Таблицы */
.news-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid rgba(255,215,128,0.3);
}
.news-body th, .news-body td {
  padding: 10px 14px;
  border: 1px solid rgba(255,215,128,0.3);
  /* background: rgba(30,41,59,0.8); */
  color: #f3e9d2;
}
.news-body th {
  background: rgba(250,204,21,0.15);
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Код */
.news-body pre, .news-body code {
  font-family: Consolas, 'Courier New', monospace;
  background: rgba(30,41,59,0.9);
  border: 1px solid rgba(255,215,128,0.2);
  border-radius: 6px;
}
.news-body pre {
  padding: 15px;
  overflow-x: auto;
  color: #e2e8f0;
  line-height: 1.5;
}
.news-body code {
  padding: 2px 6px;
  color: #facc15;
}

/* Видео и медиа */
.news-body iframe, .news-body video {
  display: block;
  max-width: 100%;
  border-radius: 10px;
  margin: 20px 0;
}

/* Горизонтальные линии */
.news-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(255,215,128,0), rgba(255,215,128,0.4), rgba(255,215,128,0));
  margin: 30px 0;
}

/* Inline-бейджи */
.news-body .badge {
  display: inline-block;
  padding: 4px 10px;
  background: #facc15;
  color: #0f172a;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Адаптив */
@media (max-width: 768px) {
  .news-body {
    padding: 20px;
    font-size: 15px;
  }
  .news-body table, .news-body pre { font-size: 14px; }
}

/* .news-body li img,
.news-body span img,
.news-body p img {
  vertical-align: middle;
  margin: 0 4px 0 0;
  height: 1.3em;
  width: auto;
  display: inline-block;
  object-fit: contain;
} */

/* Инлайновые мини-иконки: навесь класс .emoji или .icon */
.news-body img.emoji,
.news-body img.icon {
  vertical-align: middle;
  margin: 0 4px 0 0;
  height: 1.3em;
  width: auto;
  display: inline-block;
  object-fit: contain;
}

/* редактор + фронт */
img.emoji { height: 1.3em; width: auto; vertical-align: middle; display: inline-block; object-fit: contain; margin: 0 4px 0 0; }


/* === SPOILER SYSTEM === */
.spoiler {
  filter: blur(3px);
  cursor: pointer;
  transition: filter 0.3s ease;
  user-select: none;
  display: inline;
  white-space: pre-wrap;
}

/* раскрыт */
.spoiler.revealed {
  filter: blur(0);
  transition: filter 0.25s ease;
}

/* === HIDE BLOCK FRONTEND === */
.hide-block {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin: 20px 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  transition: all 0.35s ease;
}

/* Заголовок */
.hide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  color: #facc15;
  user-select: none;
  font-size: 0.95em;
  letter-spacing: 0.3px;
  transition: color 0.25s ease, background 0.25s ease;
}

/* Иконка стрелки */
.hide-header::after {
  content: '▾';
  font-size: 1em;
  color: #facc15;
  transform: rotate(0);
  transition: transform 0.3s ease;
  opacity: 0.9;
}
.hide-block.active .hide-header::after {
  transform: rotate(180deg);
}

/* Hover эффект */
.hide-header:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fde68a;
}

/* Контент */
.hide-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 16px; /* статичный горизонтальный */
  line-height: 1.65;
  color: #e5e5e5;
  font-size: 0.95em;
  transition:
    max-height 0.6s cubic-bezier(0.25, 1, 0.3, 1),
    opacity 0.4s ease;
  position: relative;
}

/* Визуальная “прослойка” для плавности без прыжков */
.hide-content::before {
  content: '';
  display: block;
  height: 10px;
  transition: height 0.4s ease;
}
.hide-content::after {
  content: '';
  display: block;
  height: 14px;
  transition: height 0.4s ease;
}

/* Активное состояние */
.hide-block.active .hide-content {
  opacity: 1;
  max-height: 800px;
}
.hide-block.active .hide-content::before {
  height: 10px;
}
.hide-block.active .hide-content::after {
  height: 14px;
}

/* Мобильность */
@media (max-width: 768px) {
  .hide-header {
    font-size: 0.9em;
    padding: 10px 12px;
  }
  .hide-content {
    font-size: 0.9em;
    padding: 0 12px;
  }
}


/* инлайн-иконки поверх общих правил */
.news-body img.emoji,
.news-body p img.emoji,
.news-body span img.emoji,
.news-body li img.emoji {
  display: inline-block !important;
  height: 1.3em !important;
  width: auto !important;
  max-width: none !important;
  vertical-align: middle !important;
  margin: 0 4px 0 0 !important;
  object-fit: contain !important;
  float: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* figure с emoji делает строковым контейнером */
.news-body figure.image.emoji-figure {
  display: inline-block !important;
  width: auto !important;
  margin: 0 4px 0 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* внутри такого figure картинка тоже инлайн */
.news-body figure.image.emoji-figure img {
  display: inline-block !important;
  width: auto !important;
  max-width: none !important;
  height: 1.3em !important;
  vertical-align: middle !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

