/* ============================================
   BLOG DETAIL PAGE
   ============================================ */

/* ============================================
   Sidebar ("Популярное") — normalize to match /blog/
   ============================================ */
.blog-sidebar .card-body.bg-color-black {
  padding: 20px;
  border-radius: 12px;
  background: rgba(0,0,0,0.42) !important;
  border: 1px solid rgba(255,255,255,0.12);
}

html[data-theme="light"] .blog-sidebar .card-body.bg-color-black,
html[data-theme="light_japan"] .blog-sidebar .card-body.bg-color-black {
  background: rgba(255,255,255,0.98) !important;
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.blog-sidebar .popular-blogs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-sidebar .popular-blogs li {
  margin-bottom: 12px;
}
.blog-sidebar .popular-blogs li:last-child {
  margin-bottom: 0;
}

.blog-sidebar .popular-blogs a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  padding: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.blog-sidebar .popular-blogs a:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

html[data-theme="light"] .blog-sidebar .popular-blogs a:hover,
html[data-theme="light_japan"] .blog-sidebar .popular-blogs a:hover {
  background: rgba(15, 23, 42, 0.04);
}

.blog-sidebar .popular-blogs a:focus-visible {
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-secondary, var(--color-primary, #32b8c6)) 65%, transparent);
}

.blog-sidebar .popular-blogs img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/12;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.12);
}

html[data-theme="light"] .blog-sidebar .popular-blogs img,
html[data-theme="light_japan"] .blog-sidebar .popular-blogs img {
  border-color: rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.04);
}

.blog-sidebar .popular-blogs .date {
  font-size: 12px;
  opacity: 0.65;
  margin: 0 0 4px 0;
}

.blog-sidebar .popular-blogs h6 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-sidebar .popular-blogs a:hover h6 {
  color: var(--accent-primary, var(--color-primary, #32b8c6));
}

/* --- Заголовок поста --- */
.blog-post-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

html[data-theme="light"] .blog-post-header,
html[data-theme="light_japan"] .blog-post-header {
  border-bottom-color: rgba(0,0,0,0.1);
}

.blog-title {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px 0;
  color: var(--text-primary, #fff);
}

html[data-theme="light"] .blog-title,
html[data-theme="light_japan"] .blog-title {
  color: var(--text-primary, #1a1a1a);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
  opacity: 0.8;
}

.blog-category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary, #c9182b);
}

.blog-date {
  opacity: 0.7;
}

.blog-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0;
}

/* --- Содержимое поста --- */
.blog-content {
  font-size: 1rem;
  line-height: 1.75;
}

.blog-content :where(p, ul, ol, li) {
  color: inherit;
}

.blog-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-content hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 22px 0;
}

html[data-theme="light"] .blog-content hr,
html[data-theme="light_japan"] .blog-content hr {
  border-top-color: rgba(0,0,0,0.12);
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 10px;
}
.blog-content th,
.blog-content td {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  vertical-align: top;
}
.blog-content thead th {
  font-weight: 800;
  background: rgba(255,255,255,0.06);
}
html[data-theme="light"] .blog-content th,
html[data-theme="light"] .blog-content td,
html[data-theme="light_japan"] .blog-content th,
html[data-theme="light_japan"] .blog-content td {
  border-color: rgba(0,0,0,0.12);
}
html[data-theme="light"] .blog-content thead th,
html[data-theme="light_japan"] .blog-content thead th {
  background: rgba(0,0,0,0.04);
}

.blog-content p {
  margin-bottom: 1.2em;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin: 1.5em 0 0.8em 0;
  font-weight: 700;
}

.blog-content h2 { font-size: 1.5rem; }
.blog-content h3 { font-size: 1.25rem; }
.blog-content h4 { font-size: 1.1rem; }

/* --- Картинки в содержимом: позиционирование --- */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

/* Картинка по центру */
.blog-content img.img-center,
.blog-content img.align-center,
.blog-content img[style*="margin-left: auto"],
.blog-content img[style*="display: block"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Картинка слева с обтеканием */
.blog-content img.img-left,
.blog-content img.align-left,
.blog-content img[style*="float: left"],
.blog-content img[align="left"] {
  float: left;
  margin: 8px 20px 12px 0;
  max-width: 45%;
}

/* Картинка справа с обтеканием */
.blog-content img.img-right,
.blog-content img.align-right,
.blog-content img[style*="float: right"],
.blog-content img[align="right"] {
  float: right;
  margin: 8px 0 12px 20px;
  max-width: 45%;
}

/* Картинка на всю ширину */
.blog-content img.align-full {
  width: 100%;
  max-width: 100%;
}

/* Очистка float после секции */
.blog-content::after {
  content: "";
  display: table;
  clear: both;
}

/* Маленькие картинки */
.blog-content img.img-small,
.blog-content img[width="200"],
.blog-content img[width="250"],
.blog-content img[width="300"] {
  max-width: 300px;
}

/* Средние картинки */
.blog-content img.img-medium,
.blog-content img[width="400"],
.blog-content img[width="450"],
.blog-content img[width="500"] {
  max-width: 500px;
}

/* Блок-обёртка для картинки с подписью */
.blog-content figure {
  margin: 20px 0;
  text-align: center;
}

.blog-content figure img {
  margin-bottom: 8px;
}

.blog-content figcaption {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

/* --- Адаптив для мобильных --- */
@media (max-width: 768px) {
  .blog-title {
    font-size: 1.95rem;
  }
  
  .blog-content img.img-left,
  .blog-content img.img-right,
  .blog-content img[style*="float: left"],
  .blog-content img[style*="float: right"],
  .blog-content img[align="left"],
  .blog-content img[align="right"] {
    float: none;
    display: block;
    max-width: 100%;
    margin: 16px auto;
  }
}

/* ============================================
   BLOG DETAIL: Комментарии к посту
   Стиль "как соцсети": аватар, ник/бейджи, действия.
   Без тяжёлого фона — только мягкие разделители.
   Работает во всех темах (html[data-theme="..."]).
   ============================================ */

.blog-comments__title {
  font-weight: 800;
  margin: 0 0 12px 0;
}

.blog-comments__disabled,
.blog-comments__error,
.blog-comments__empty,
.blog-comments__login {
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

html[data-theme="light"] .blog-comments__disabled,
html[data-theme="light"] .blog-comments__error,
html[data-theme="light"] .blog-comments__empty,
html[data-theme="light"] .blog-comments__login {
  border-color: rgba(0,0,0,0.18);
  color: rgba(0,0,0,0.78);
}

.blog-comments__form {
  margin-bottom: 16px;
}

.blog-comments__replying {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
}

html[data-theme="light"] .blog-comments__replying {
  border-color: rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.03);
}

.blog-comments__replying-cancel {
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.8;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Компактная форма комментария (как на странице сериала) */
.blog-comments__compose {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  position: relative;
}

.blog-comments__textarea {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  color: inherit;
  outline: none;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  line-height: 1.4;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.blog-comments__textarea:focus {
  border-color: var(--color-primary, #2d87f3);
}

.blog-comments__send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary, #2d87f3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.1s ease;
}

.blog-comments__send:hover {
  background: var(--color-primary-hover, #1e6fd1);
  transform: scale(1.05);
}

.blog-comments__send i {
  font-size: 16px;
}

html[data-theme="light"] .blog-comments__textarea {
  border-color: rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.02);
}

/* Удаляем старый блок actions, так как кнопка теперь внутри compose */
.blog-comments__actions {
  display: none;
}

.blog-comment {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

html[data-theme="light"] .blog-comment {
  border-bottom-color: rgba(0,0,0,0.10);
}

.blog-comment__avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

html[data-theme="light"] .blog-comment__avatar {
  border-color: rgba(0,0,0,0.16);
  background: rgba(0,0,0,0.04);
}

.blog-comment__avatar--sm {
  width: 34px;
  height: 34px;
}

.blog-comment__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-comment__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  align-items: baseline;
}

.blog-comment__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-comment__who {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-comment__name {
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--text-primary, rgba(255,255,255,0.95));
}

html[data-theme="light"] .blog-comment__name {
  color: var(--text-primary, rgba(0,0,0,0.90));
}

.blog-comment__name--premium {
  text-decoration: underline;
  text-decoration-color: rgba(var(--primary-rgb, 255, 255, 255), 0.75);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.blog-comment__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
}

html[data-theme="light"] .blog-comment__badge {
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.82);
}

.blog-comment__badge--premium {
  border-color: rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.12);
}

.blog-comment__date {
  opacity: 0.7;
  font-size: 12px;
}

.blog-comment__replyto {
  margin: 2px 0 6px;
  font-size: 12px;
  opacity: 0.85;
}

.blog-comment__replyto-user {
  font-weight: 800;
  opacity: 0.95;
}

.blog-comment__menu {
  position: relative;
}

.blog-comment__menu-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: inherit;
  cursor: pointer;
  line-height: 1;
  font-size: 18px;
  padding: 0;
  opacity: 0.85;
}

html[data-theme="light"] .blog-comment__menu-btn {
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
}

.blog-comment__menu-btn:hover {
  opacity: 1;
}

.blog-comment__menu-popover {
  position: absolute;
  right: 0;
  top: 34px;
  min-width: 190px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
  padding: 6px;
  z-index: 10;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

html[data-theme="light"] .blog-comment__menu-popover {
  border-color: rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.blog-comment__menu-item {
  width: 100%;
  display: block;
  text-align: left;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 13px;
  opacity: 0.92;
  text-decoration: none;
}

.blog-comment__menu-item:hover {
  background: rgba(255,255,255,0.08);
  opacity: 1;
}

html[data-theme="light"] .blog-comment__menu-item:hover {
  background: rgba(0,0,0,0.06);
}

.blog-comment__menu-item--danger {
  color: rgba(255, 120, 120, 0.95);
}

.blog-comment--highlight {
  background: rgba(var(--primary-rgb, 180, 60, 255), 0.10);
  border-radius: 14px;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: -10px;
  margin-right: -10px;
}

.blog-comment__text {
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Кнопки действий под комментарием */
.blog-comment__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.blog-comment__action-btn {
  background: none;
  border: none;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

html[data-theme="light"] .blog-comment__action-btn,
html[data-theme="light_japan"] .blog-comment__action-btn {
  color: rgba(0,0,0,0.5);
}

.blog-comment__like:hover {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.blog-comment__like.liked {
  color: #4caf50;
}

.blog-comment__dislike:hover {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.blog-comment__dislike.disliked {
  color: #f44336;
}

.blog-comment__reply-btn:hover {
  background: rgba(50, 184, 198, 0.15);
  color: var(--accent-primary, #32b8c6);
}

/* Старые inline-кнопки под комментом больше не используем —
   заменили на меню "⋯" справа в шапке. */

.blog-comment__replies {
  margin-top: 10px;
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid rgba(255,255,255,0.14);
}

html[data-theme="light"] .blog-comment__replies {
  border-left-color: rgba(0,0,0,0.14);
}

.blog-comment--reply {
  border-bottom: none;
  padding: 10px 0;
}

/* === INLINE ФОРМА ОТВЕТА (как у сериалов) === */
.blog-comment__inline-reply {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
}

html[data-theme="light"] .blog-comment__inline-reply,
html[data-theme="light_japan"] .blog-comment__inline-reply {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.1);
}

.blog-comment__inline-reply-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary, rgba(255,255,255,0.7));
}

.blog-comment__inline-reply-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.blog-comment__inline-reply-close:hover {
  opacity: 1;
}

/* Компактная inline-reply форма (textarea + кнопка в ряд) */
.blog-comment__inline-reply-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.blog-comment__inline-reply textarea {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.2);
  color: inherit;
  resize: none;
  font-size: 13px;
  outline: none;
  min-height: 36px;
  max-height: 80px;
  line-height: 1.4;
}

html[data-theme="light"] .blog-comment__inline-reply textarea,
html[data-theme="light_japan"] .blog-comment__inline-reply textarea {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.12);
}

.blog-comment__inline-reply-send {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--accent-primary, #32b8c6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.1s ease;
}

.blog-comment__inline-reply-send:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.blog-comment__inline-reply-send i {
  font-size: 14px;
}

/* Скрываем старые actions */
.blog-comment__inline-reply-actions {
  display: none;
}

.blog-comment__inline-reply-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: inherit;
  display: none;
}

html[data-theme="light"] .blog-comment__inline-reply-cancel,
html[data-theme="light_japan"] .blog-comment__inline-reply-cancel {
  border-color: rgba(0,0,0,0.15);
}

/* Улучшенная древовидность */
.blog-comment__replies {
  margin-top: 12px;
  margin-left: 20px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

html[data-theme="light"] .blog-comment__replies,
html[data-theme="light_japan"] .blog-comment__replies {
  border-left-color: rgba(0,0,0,0.08);
}

/* Подсветка комментария при переходе по ссылке */
.blog-comment--highlight {
  animation: blogCommentHighlight 2s ease-out;
}

@keyframes blogCommentHighlight {
  0% { background: rgba(50, 184, 198, 0.2); }
  100% { background: transparent; }
}

/* ============================================
   NEON THEME - Blog Detail
   ============================================ */
html[data-theme="neon"] .blog-detail {
  background: transparent;
}

html[data-theme="neon"] .blog-post-header {
  border-bottom-color: rgba(0, 240, 255, 0.15);
}

html[data-theme="neon"] .blog-title {
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

html[data-theme="neon"] .blog-category {
  color: var(--color-primary, #00f3ff);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

html[data-theme="neon"] .blog-date {
  color: rgba(155, 155, 181, 0.8);
}

html[data-theme="neon"] .blog-excerpt {
  color: rgba(228, 250, 255, 0.8);
}

html[data-theme="neon"] .blog-content {
  color: rgba(245, 245, 245, 0.92);
}

/* Fix editor inline styles in dark themes:
   sometimes content has black text / white backgrounds from WYSIWYG. */
html[data-theme="neon"] .blog-content :where(p, span, div, section, article, ul, ol, li, table, thead, tbody, tr, td, th) {
  background: transparent !important;
  color: inherit !important;
}

html[data-theme="neon"] .blog-content h2,
html[data-theme="neon"] .blog-content h3,
html[data-theme="neon"] .blog-content h4 {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

html[data-theme="neon"] .blog-content a {
  color: var(--color-primary, #00f3ff);
  text-decoration: none;
  transition: all 0.2s ease;
}

html[data-theme="neon"] .blog-content a:hover {
  color: var(--color-purple, #bc13fe);
  text-shadow: 0 0 10px rgba(188, 19, 254, 0.4);
}

html[data-theme="neon"] .blog-content blockquote {
  border-left: 3px solid var(--color-primary, #00f3ff);
  background: rgba(0, 240, 255, 0.05);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

html[data-theme="neon"] .blog-content code {
  background: rgba(0, 240, 255, 0.1);
  color: var(--color-primary, #00f3ff);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

html[data-theme="neon"] .blog-content pre {
  background: rgba(10, 10, 20, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
}

html[data-theme="neon"] .blog-sidebar .card-body.bg-color-black {
  background: rgba(16, 19, 31, 0.92) !important;
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 12px;
}

html[data-theme="neon"] .blog-sidebar h5 {
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="neon"] .tags li span {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--color-primary, #00f3ff);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  transition: all 0.2s ease;
}

html[data-theme="neon"] .tags li span:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Neon theme - Comments */
html[data-theme="neon"] .blog-comments__title {
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="neon"] .blog-comment__name {
  color: var(--color-primary, #00f3ff);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

html[data-theme="neon"] .blog-comment__badge {
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.08);
  color: var(--color-primary, #00f3ff);
}

html[data-theme="neon"] .blog-comment__badge--admin {
  border-color: rgba(255, 0, 127, 0.4);
  background: rgba(255, 0, 127, 0.1);
  color: #ff007f;
}

html[data-theme="neon"] .blog-comment__badge--premium {
  border-color: rgba(188, 19, 254, 0.4);
  background: rgba(188, 19, 254, 0.12);
  color: #bc13fe;
}

html[data-theme="neon"] .blog-comment {
  border-bottom-color: rgba(0, 240, 255, 0.1);
}

html[data-theme="neon"] .blog-comment__avatar {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.06);
}

html[data-theme="neon"] .blog-comment__menu-btn {
  border-color: rgba(0, 240, 255, 0.2);
  background: rgba(0, 240, 255, 0.05);
  color: var(--color-primary, #00f3ff);
}

html[data-theme="neon"] .blog-comment__menu-popover {
  background: rgba(10, 10, 20, 0.95);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.2), 0 10px 30px rgba(0,0,0,0.5);
}

html[data-theme="neon"] .blog-comment__menu-item:hover {
  background: rgba(0, 240, 255, 0.12);
}

html[data-theme="neon"] .blog-comment__replies {
  border-left-color: rgba(0, 240, 255, 0.15);
}

html[data-theme="neon"] .blog-comment__inline-reply {
  background: rgba(0, 240, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.15);
}

html[data-theme="neon"] .blog-comment__inline-reply textarea {
  background: rgba(10, 10, 20, 0.6);
  border-color: rgba(0, 240, 255, 0.2);
}

html[data-theme="neon"] .blog-comment__inline-reply-send {
  background: var(--color-primary, #00f3ff);
  color: #000;
}

html[data-theme="neon"] .blog-comment__inline-reply-send:hover {
  background: var(--color-purple, #bc13fe);
  color: #fff;
}

/* ============================================
   HARD JAPAN THEME - Blog Detail
   ============================================ */
html[data-theme="hard_japan"] .blog-detail {
  background: transparent;
}

html[data-theme="hard_japan"] .blog-post-header {
  border-bottom-color: rgba(212, 175, 55, 0.15);
}

html[data-theme="hard_japan"] .blog-title {
  color: rgba(255, 255, 255, 0.98);
}

html[data-theme="hard_japan"] .blog-category {
  color: var(--accent-secondary, #d4af37);
}

html[data-theme="hard_japan"] .blog-date {
  color: rgba(176, 176, 176, 0.8);
}

html[data-theme="hard_japan"] .blog-excerpt {
  color: rgba(255, 255, 255, 0.8);
}

html[data-theme="hard_japan"] .blog-content {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="hard_japan"] .blog-content :where(p, span, div, section, article, ul, ol, li, table, thead, tbody, tr, td, th) {
  background: transparent !important;
  color: inherit !important;
}

html[data-theme="hard_japan"] .blog-content h2,
html[data-theme="hard_japan"] .blog-content h3,
html[data-theme="hard_japan"] .blog-content h4 {
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="hard_japan"] .blog-content a {
  color: var(--accent-secondary, #d4af37);
  text-decoration: none;
  transition: all 0.2s ease;
}

html[data-theme="hard_japan"] .blog-content a:hover {
  color: var(--accent-primary, #c9182b);
}

html[data-theme="hard_japan"] .blog-content blockquote {
  border-left: 3px solid var(--accent-secondary, #d4af37);
  background: rgba(212, 175, 55, 0.05);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

html[data-theme="hard_japan"] .blog-content code {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-secondary, #d4af37);
  padding: 2px 6px;
  border-radius: 4px;
}

html[data-theme="hard_japan"] .blog-content pre {
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 16px;
}

html[data-theme="hard_japan"] .blog-sidebar .card-body.bg-color-black {
  background: rgba(18, 18, 18, 0.95) !important;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 12px;
}

html[data-theme="hard_japan"] .blog-sidebar h5 {
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="hard_japan"] .tags li span {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--accent-secondary, #d4af37);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  transition: all 0.2s ease;
}

html[data-theme="hard_japan"] .tags li span:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Hard Japan theme - Comments */
html[data-theme="hard_japan"] .blog-comments__title {
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="hard_japan"] .blog-comment__name {
  color: var(--accent-secondary, #d4af37);
}

html[data-theme="hard_japan"] .blog-comment__badge {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.08);
  color: var(--accent-secondary, #d4af37);
}

html[data-theme="hard_japan"] .blog-comment__badge--admin {
  border-color: rgba(244, 67, 54, 0.4);
  background: rgba(244, 67, 54, 0.1);
  color: #ff5252;
}

html[data-theme="hard_japan"] .blog-comment__badge--premium {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
}

html[data-theme="hard_japan"] .blog-comment {
  border-bottom-color: rgba(212, 175, 55, 0.1);
}

html[data-theme="hard_japan"] .blog-comment__avatar {
  border-color: rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.05);
}

html[data-theme="hard_japan"] .blog-comment__menu-btn {
  border-color: rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.05);
  color: var(--accent-secondary, #d4af37);
}

html[data-theme="hard_japan"] .blog-comment__menu-popover {
  background: rgba(18, 18, 18, 0.98);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.1), 0 10px 30px rgba(0,0,0,0.5);
}

html[data-theme="hard_japan"] .blog-comment__menu-item:hover {
  background: rgba(212, 175, 55, 0.1);
}

html[data-theme="hard_japan"] .blog-comment__replies {
  border-left-color: rgba(212, 175, 55, 0.12);
}

html[data-theme="hard_japan"] .blog-comment__inline-reply {
  background: rgba(212, 175, 55, 0.03);
  border-color: rgba(212, 175, 55, 0.12);
}

html[data-theme="hard_japan"] .blog-comment__inline-reply textarea {
  background: rgba(10, 10, 10, 0.6);
  border-color: rgba(212, 175, 55, 0.15);
}

html[data-theme="hard_japan"] .blog-comment__inline-reply-send {
  background: var(--accent-secondary, #d4af37);
  color: #000;
}

html[data-theme="hard_japan"] .blog-comment__inline-reply-send:hover {
  background: var(--accent-primary, #c9182b);
  color: #fff;
}

/* ============================================
   LIGHT JAPAN THEME - Blog Detail
   ============================================ */
html[data-theme="light_japan"] .blog-detail {
  background: transparent;
}

html[data-theme="light_japan"] .blog-post-header {
  border-bottom-color: rgba(31, 107, 78, 0.12);
}

html[data-theme="light_japan"] .blog-title {
  color: var(--text-primary, #0f172a);
}

html[data-theme="light_japan"] .blog-category {
  color: var(--accent-secondary, #7a1c1c);
  font-weight: 800;
}

html[data-theme="light_japan"] .blog-date {
  color: var(--text-muted, #64748b);
}

html[data-theme="light_japan"] .blog-excerpt {
  color: var(--text-secondary, #334155);
}

html[data-theme="light_japan"] .blog-content {
  color: var(--text-primary, #0f172a);
  line-height: 1.85;
}

html[data-theme="light_japan"] .blog-content h2,
html[data-theme="light_japan"] .blog-content h3,
html[data-theme="light_japan"] .blog-content h4 {
  color: var(--text-primary, #0f172a);
}

html[data-theme="light_japan"] .blog-content a {
  color: var(--accent-primary, #1f6b4e);
  text-decoration: none;
  transition: all 0.2s ease;
}

html[data-theme="light_japan"] .blog-content a:hover {
  color: var(--accent-secondary, #7a1c1c);
  text-decoration: underline;
}

html[data-theme="light_japan"] .blog-content blockquote {
  border-left: 3px solid var(--accent-primary, #1f6b4e);
  background: rgba(31, 107, 78, 0.04);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary, #334155);
}

html[data-theme="light_japan"] .blog-content code {
  background: rgba(31, 107, 78, 0.08);
  color: var(--accent-primary, #1f6b4e);
  padding: 2px 6px;
  border-radius: 4px;
}

html[data-theme="light_japan"] .blog-content pre {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  padding: 16px;
  color: var(--text-primary, #0f172a);
}

html[data-theme="light_japan"] .blog-sidebar .card-body.bg-color-black {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

html[data-theme="light_japan"] .blog-sidebar h5 {
  color: var(--text-primary, #0f172a);
}

html[data-theme="light_japan"] .tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-theme="light_japan"] .tags li span {
  background: rgba(31, 107, 78, 0.06);
  border: 1px solid rgba(31, 107, 78, 0.18);
  color: var(--accent-primary, #1f6b4e);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

html[data-theme="light_japan"] .tags li span:hover {
  background: rgba(31, 107, 78, 0.12);
  border-color: rgba(31, 107, 78, 0.3);
  color: var(--accent-secondary, #7a1c1c);
}

/* Light Japan theme - Comments */
html[data-theme="light_japan"] .blog-comments__title {
  color: var(--text-primary, #0f172a);
}

html[data-theme="light_japan"] .blog-comments__disabled,
html[data-theme="light_japan"] .blog-comments__error,
html[data-theme="light_japan"] .blog-comments__empty,
html[data-theme="light_japan"] .blog-comments__login {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-secondary, #334155);
  background: rgba(31, 107, 78, 0.03);
}

html[data-theme="light_japan"] .blog-comments__textarea {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary, #0f172a);
}

html[data-theme="light_japan"] .blog-comments__textarea:focus {
  border-color: rgba(31, 107, 78, 0.4);
  box-shadow: 0 0 8px rgba(31, 107, 78, 0.1);
}

html[data-theme="light_japan"] .blog-comment__name {
  color: var(--accent-primary, #1f6b4e);
}

html[data-theme="light_japan"] .blog-comment__badge {
  border-color: rgba(31, 107, 78, 0.2);
  background: rgba(31, 107, 78, 0.06);
  color: var(--accent-primary, #1f6b4e);
}

html[data-theme="light_japan"] .blog-comment__badge--admin {
  border-color: rgba(211, 47, 47, 0.3);
  background: rgba(211, 47, 47, 0.06);
  color: #d32f2f;
}

html[data-theme="light_japan"] .blog-comment__badge--premium {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  color: #b8860b;
}

html[data-theme="light_japan"] .blog-comment {
  border-bottom-color: rgba(31, 107, 78, 0.08);
}

html[data-theme="light_japan"] .blog-comment__text {
  color: var(--text-primary, #0f172a);
}

html[data-theme="light_japan"] .blog-comment__date {
  color: var(--text-muted, #64748b);
}

html[data-theme="light_japan"] .blog-comment__avatar {
  border-color: rgba(31, 107, 78, 0.15);
  background: rgba(31, 107, 78, 0.04);
}

html[data-theme="light_japan"] .blog-comment__menu-btn {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-secondary, #334155);
}

html[data-theme="light_japan"] .blog-comment__menu-btn:hover {
  background: rgba(31, 107, 78, 0.08);
}

html[data-theme="light_japan"] .blog-comment__menu-popover {
  background: rgba(255, 255, 255, 0.99);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

html[data-theme="light_japan"] .blog-comment__menu-item {
  color: var(--text-primary, #0f172a);
}

html[data-theme="light_japan"] .blog-comment__menu-item:hover {
  background: rgba(31, 107, 78, 0.08);
}

html[data-theme="light_japan"] .blog-comment__menu-item--danger {
  color: var(--accent-secondary, #7a1c1c);
}

html[data-theme="light_japan"] .blog-comment__action-btn {
  color: var(--text-muted, #64748b);
}

html[data-theme="light_japan"] .blog-comment__replies {
  border-left-color: rgba(31, 107, 78, 0.1);
}

html[data-theme="light_japan"] .blog-comment__inline-reply {
  background: rgba(31, 107, 78, 0.03);
  border-color: rgba(31, 107, 78, 0.1);
}

html[data-theme="light_japan"] .blog-comment__inline-reply-header {
  color: var(--text-secondary, #334155);
}

html[data-theme="light_japan"] .blog-comment__inline-reply textarea {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
  color: var(--text-primary, #0f172a);
}

html[data-theme="light_japan"] .blog-comment__inline-reply-send {
  background: var(--accent-primary, #1f6b4e);
  color: #fff;
}

html[data-theme="light_japan"] .blog-comment__inline-reply-send:hover {
  background: var(--accent-secondary, #7a1c1c);
}

html[data-theme="light_japan"] .blog-comment__inline-reply-cancel {
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--text-secondary, #334155);
}


