/* Modern Single Post Styles 2025 */
:root {
  --primary-bg: #0A0A0F;
  --card-bg: #1A1A1A;
  --accent: #D1FE6A;
  --accent-secondary: #F6EB61;
  --text-primary: #F0F0F0;
  --text-secondary: #B3B3B3;
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Кнопка "Посмотреть все посты" */
.aetherion-pro .all-posts-button {
	
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.aetherion-pro .aetherion-button {
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    padding: 15px 31px;
    border-radius: 12px;
    background-color: #D1FE6A;
    color: #0A0A0F;
    font-family: 'Unbounded', sans-serif;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
	margin-bottom: 20px;
}

.aetherion-pro .aetherion-button:hover {
    background-color: #F6EB61;
    transform: translateY(-2px);
}

/* Адаптивные стили для кнопки */
@media (max-width: 768px) {
    .aetherion-pro .all-posts-button {
        margin-top: 30px;
        margin-bottom: 15px;
    }
    
    .aetherion-pro .aetherion-button {
        font-size: 14px;
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .aetherion-pro .all-posts-button {
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .aetherion-pro .aetherion-button {
        font-size: 12px;
        padding: 7px 16px;
    }
}

/* Base Styles */
.anton-single-post {
  padding: clamp(60px, 6vw, 120px) 0;
  background: var(--primary-bg);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.xai-custom-container {
  max-width: min(1200px, 90%);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Post Content - Glassmorphism Effect */
.xai-custom-container .post-content {
  background: rgb(26 26 26);
  border-radius: var(--border-radius);
  padding: 10px 50px 10px 50px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content {
  padding: 15px;
}

.xai-custom-container .post-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  background: transparent;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
  transition: var(--transition);
}

/* Контейнер для изображения с оверлеем */
.post-thumbnail-overlay {
  position: relative;
  margin-top: 40px;
  border-radius: var(--border-radius);
  overflow: hidden;
	
}

/* Затемнённый оверлей */
.thumbnail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 85%);
  z-index: 1;
  transition: background 0.9s ease;
}

.post-thumbnail-overlay:hover .thumbnail-overlay {
  background: rgb(0 0 0 / 75%); /* Осветление до 65% при наведении */
}

/* Контейнер для заголовка и мета */
.post-header-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

/* Стили для заголовка внутри изображения */
.xai-custom-container .post-header-content .post-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(20px, 5vw, 46px);
  font-weight: 500;
  color: #FFF;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Убираем подчёркивание для заголовка внутри изображения */
.xai-custom-container .post-header-content .post-title::after {
  display: none;
}

/* Стили для мета внутри изображения */
.xai-custom-container .post-header-content .post-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Стили для случая без изображения */
.post-header-content.no-image {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  padding: 20px 0;
  text-align: center;
}

/* Typography */
.xai-custom-container .post-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 5vw, 46px);
  font-weight: 500;
  color: #f9f9f9;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  padding: 0 15px;
}

.xai-custom-container .post-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 15px;
  width: calc(100% - 30px);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.xai-custom-container .post-title:hover::after {
  transform: scaleX(1);
}

/* Meta Info - Modern Chip Style */
.xai-custom-container .post-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.xai-custom-container .post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  color: var(--text-secondary);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.xai-custom-container .post-meta span:hover {
  background: rgba(209, 254, 106, 0.1);
  color: var(--accent);
}

.xai-custom-container .post-meta i {
  font-size: 14px;
  color: var(--accent);
}

/* Featured Image - Parallax Effect */
.xai-custom-container .post-thumbnail {
  margin: 0px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.xai-custom-container .post-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
  transform-origin: center;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Post Content Styling */
.xai-custom-container .post-body {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.1px;
	margin-top: 50px;
}

.xai-custom-container .post-body p {
  margin-bottom: 1.8em;
  opacity: 0.95;
}

/* Headings */
.xai-custom-container .post-body .wp-block-heading {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-primary);
  margin: 2.5em 0 1.2em;
  line-height: 1.3;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}

.xai-custom-container .post-body .wp-block-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

/* Lists */
.xai-custom-container .post-body .wp-block-list {
  margin: 2em 0;
  padding-left: 1.2em;
}

.xai-custom-container .post-body .wp-block-list li {
  margin-bottom: 0.8em;
  position: relative;
  padding-left: 1.8em;
}

/* Убираем стандартный маркер */
.xai-custom-container .post-body .wp-block-list li {
  list-style: none; /* Отключаем стандартный маркер */
  position: relative;
  padding-left: 1.5em; /* Отступ для кастомного маркера */
}

/* Создаем кастомный маркер */
.xai-custom-container .post-body .wp-block-list li::before {
  font-family: 'Arial', sans-serif;
  content: '●'; /* Начальный символ */
  color: #d1fe6a;
  position: absolute;
  left: 0px;
  bottom: 0px;
  top: 0px;
  font-size: 1em;
  transition: opacity 0.8s ease, transform 0.3s ease;
}

/* Меняем символ и стиль при наведении */
.xai-custom-container .post-body .wp-block-list li:hover::before {
  content: '●'; /* Новый символ */
  color: #63f7a6;
  transform: scale(1.05); /* Увеличение */
  left: 0px;
  bottom: 0px;
  top: 0px;
}

/* Images */
.xai-custom-container .post-body .wp-block-image {
  margin: 3em 0;
  border-radius: var(--border-radius);
  position: relative;
}

.xai-custom-container .post-body .wp-block-image img {
  transition: var(--transition);
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  transition: filter 0.8s ease, transform 0.6s ease;
}

.xai-custom-container .post-body .wp-block-image:hover img {
  filter: brightness(110%);
  transform: scale(1.01);
}

/* Gallery */
.xai-custom-container .post-body .wp-block-gallery {
  margin: 3em 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Tags - Modern Pill Style */
.xai-custom-container .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  justify-content: center;
}

.xai-custom-container .post-tags a {
  color: var(--accent);
  text-decoration: none;
  background: rgba(209, 254, 106, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid rgba(209, 254, 106, 0.2);
}

.xai-custom-container .post-tags a:hover {
  background: rgba(209, 254, 106, 0.2);
  transform: translateY(-2px);
}

/* Comments Section */
.xai-custom-container .post-comments {
  background: rgba(10, 10, 20, 0.7);
  border-radius: var(--border-radius);
  margin-top: 80px;
  border: 1px solid rgba(209, 254, 106, 0.15);
  padding: min(5vw, 40px);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.xai-custom-container .post-comments::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(209, 254, 106, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.xai-custom-container .comments-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text-primary);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.xai-custom-container .comments-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
}

/* Comment Form */
.xai-custom-container .comment-form input,
.xai-custom-container .comment-form textarea {
  width: 100%;
  background: rgba(15, 15, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 14px;
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.xai-custom-container .comment-form input:focus,
.xai-custom-container .comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(209, 254, 106, 0.2);
}

.xai-custom-container .comment-form input[type="submit"] {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: var(--primary-bg);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  width: auto;
  display: inline-block;
}

.xai-custom-container .comment-form input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(209, 254, 106, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.xai-custom-container .post-header {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.xai-custom-container .post-thumbnail {
  animation: fadeInUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.xai-custom-container .post-content {
  animation: fadeInUp 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.xai-custom-container .post-comments {
  animation: fadeInUp 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hover Effects */
.xai-custom-container .post-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .xai-custom-container .post-content {
    padding: 10px 10px;
  }
  
	
	
  .xai-custom-container .post-meta {
    flex-direction: column;
    align-items: center;align-content
  }
  
  .xai-custom-container .post-meta span {
    width: 90%;
    justify-content: center;
  }
  
  .xai-custom-container .post-body .wp-block-gallery {
    grid-template-columns: 1fr;
  }
  
  .post-header-content {
    width: 95%;
  }
  
  .xai-custom-container .post-header-content .post-meta span {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .xai-custom-container .post-body {
    font-size: 16px;
  }

  .wp-block-media-text.is-stacked-on-mobile>.wp-block-media-text__content {
    padding: 0px;
  }  
  
	.xai-custom-container .post-header-content .post-title { margin-top: 40px;}
	
	
	.xai-custom-container .post-header-content .post-author {display: none !important;}
	
	
  .xai-custom-container .post-comments {
    margin-top: 50px;
    padding: 25px 15px;
  }
}

/* Performance Optimizations */
.xai-custom-container img {
  max-width: 100%;
  height: auto;
  loading: lazy;
}

.xai-custom-container .post-image {
  will-change: transform;
}

/* ################################################## */
/* СТИЛИ ДЛЯ СТАТЬИ И МЕДИА-БЛОКОВ (2025) */
/* ################################################## */

/* Modern Media & Text Block - Visual Enhancements Only */
.wp-block-media-text {
  position: relative;
  isolation: isolate;
  margin: 4rem 0;
}

.wp-block-media-text__media {
  border-radius: 16px;
  overflow: hidden;
  transform: translateZ(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Image/Video Styling */
.wp-block-media-text__media img,
.wp-block-media-text__media video {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

/* Hover Effects */
.wp-block-media-text__media:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.wp-block-media-text__media:hover img,
.wp-block-media-text__media:hover video {
  transform: scale(1.03);
}

.wp-block-media-text__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: filter 0.3s ease;
}

.wp-block-media-text__media {
  position: relative;
  overflow: hidden;
  transition: filter 0.3s ease;
}

.wp-block-media-text__media:hover {
  filter: brightness(1.05);
}

.wp-block-media-text__media:hover::after {
  border-color: var(--accent);
}

/* Content Side Styling */
.wp-block-media-text__content {
  position: relative;
}

/* Mobile - Only Visual Tweaks */
@media (max-width: 782px) {
  .wp-block-media-text__media {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

/* Special for Video */
.wp-block-media-text__media video {
  background: #000;
}

.wp-block-media-text__media video::-webkit-media-controls-panel {
  backgroundhower: linear-gradient(transparent, rgba(0,0,0,0.7)) !important;
}