@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Montserrat", Arial, sans-serif;
    background-color: #fff;
    color: #222;
    font-size: 19px;
}

.w1200 {
    max-width: 1200px;
}

.w1000 {
    max-width: 1000px;
}

.w800 {
    max-width: 800px;
}

.w600 {
    max-width: 600px;
}

.bolder {
    font-weight: bolder;
}


.post-full iframe {
    width: 100%;
	height: 450px;
}


.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Главное меню */
/* ========== Основные переменные ========== */
:root {
  --primary-green: #78BF9B;
  --primary-orange: #FD8D0D;
  --dark-green: #2E6D4D;
  --white: #fff;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* ========== Общие стили навигации ========== */
.main-navbar {
  background: var(--white) !important;
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  border-top: 5px solid var(--primary-green);
  position: relative;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}

/* ========== Логотип ========== */
.logo-wrapper {
  display: inline-block;
  position: relative;
  padding: 5px 10px;
}

.logo-letter {
  font: 700 38px/100% "Montserrat", Arial, sans-serif;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.logo-b,
.logo-t {
  color: var(--primary-orange);
}

.logo-g {
  color: var(--dark-green);
}

.logo-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-green);
  z-index: 1;
  transform: skewX(-15deg);
  opacity: 0.9;
  border-radius: 4px;
}

.navbar-brand:hover .logo-letter {
  transform: translateY(-2px);
}

/* ========== Мобильное меню ========== */
.animated-toggler {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.animated-toggler span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary-green);
  border-radius: 3px;
  transition: var(--transition);
}

.navbar-toggler[aria-expanded="true"] .animated-toggler span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .animated-toggler span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .animated-toggler span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========== Пункты меню ========== */
.menu-container {
  margin-left: auto;
  gap: 5px;
}

.menu-item {
  position: relative;
  padding: 10px 15px !important;
  margin: 0 5px;
  color: var(--dark-green) !important;
  font-weight: 500;
  transition: var(--transition);
}

.menu-item-text {
  position: relative;
  z-index: 2;
}

.menu-item-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease;
}

/* Активное состояние */
.menu-item.active,
.menu-item.current {
  color: var(--primary-orange) !important;
  font-weight: 600;
}

.menu-item.active .menu-item-hover,
.menu-item.current .menu-item-hover {
  background: var(--primary-green);
  transform: scaleX(1) !important;
}

.menu-item.active::after,
.menu-item.current::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  width: 6px;
  height: 6px;
  background: var(--primary-orange);
  border-radius: 50%;
  transform: translateY(-50%);
}

.menu-item:hover {
  color: var(--primary-orange) !important;
}

.menu-item:hover .menu-item-hover {
  transform: scaleX(1);
  transform-origin: left;
}

/* ========== Элементы управления ========== */
.theme-toggle {
  display: flex;
  align-items: center;
  padding: 10px 15px !important;
  margin-left: 10px;
}

.theme-icon {
  color: var(--primary-green);
  transition: var(--transition);
}

.theme-toggle:hover .theme-icon {
  color: var(--primary-orange);
  transform: rotate(30deg);
}

.admin-link {
  display: flex;
  align-items: center;
  margin-left: 15px;
}

.admin-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-weight: bold;
  transition: var(--transition);
}

.admin-link:hover .admin-icon {
  background: var(--primary-orange);
  transform: scale(1.1);
}

/* ========== Адаптивность ========== */
@media (max-width: 992px) {
  .menu-container {
    padding: 20px 0;
  }

  .menu-item {
    margin: 5px 0;
  }

  .menu-item.active,
  .menu-item.current {
    background: rgba(253, 141, 13, 0.1);
  }

  .menu-item.active::after,
  .menu-item.current::after {
    right: 15px;
  }

  .theme-toggle,
  .admin-link {
    margin-left: 0;
    margin-top: 10px;
  }
}
/* Главное меню */



/* index */
.hero-section {
    max-width: 1000px;
    margin: 2rem auto 0;
    padding: 0 20px;
  }

  .hero-title-container {
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    color: #333;
    line-height: 1.2;
    margin: 0;
    position: relative;
    display: inline-block;
    padding: 0 10px;
  }

  .ai-highlight {
    background: linear-gradient(135deg, #78BF9B 0%, #5FAF84 100%);
    color: white;
    padding: 0 12px;
    border-radius: 8px;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 0 4px 8px rgba(120, 191, 155, 0.3);
    position: relative;
    z-index: 1;
  }

  .hero-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(120, 191, 155, 0.2);
    z-index: -1; /* Важно: оставляем позади текста */
    border-radius: 20px;
    transform: translateY(20px); /* Смещаем ниже */
}

  .hero-subtitle-container {
    max-width: 800px;
    margin: 0 auto;
  }

  .hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    text-align: center;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    padding: 15px 20px;
    background: rgba(249, 250, 251, 0.7);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(229, 231, 235, 0.5);
  }

  .ai-helper {
    color: #78BF9B;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
  }

  /* Для мобильных устройств */
    @media (max-width: 768px) {
        .ai-helper {
            white-space: normal; /* разрешаем перенос */
            word-wrap: break-word; /* перенос длинных слов */
        }
    }

  .ai-helper::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #78BF9B, #5FAF84);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
  }

  .ai-helper:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  @media (max-width: 768px) {
    .hero-title {
      font-size: 2rem;
    }

    .hero-subtitle {
      font-size: 1.1rem;
      padding: 12px 15px;
    }

    .ai-highlight {
      padding: 0 8px;
    }
  }
/* index */




.green-bg {
    background-color: #78BF9B;
    padding: 0 10px;
}

h1 {
    font-size: 55px;
    font-weight: 700;
    line-height: 110%;
    color: #222;
}

@media (max-width: 768px) {
    h1 {
        font-size: 35px;
    }
}

h2 {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    line-height: 140%;
}

.center {
    margin: 0 auto;
}



/* Ссылки на соцсети по центру на главной */
.social-links-block {
    padding: 1rem;
    margin: 1rem 0;
}

.social-links-block .col-auto {
    display: flex;
    gap: 1.5rem; /* Расстояние между иконками */
    align-items: center;
}

.social-link {
    color: #2c3e50; /* Тёмный цвет текста */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: #78BF9B; /* Зелёный при наведении */
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}


.tg-social-links,
.yt-social-links,
.rt-social-links {
    width: 24px;
    -webkit-transition: -webkit-transform .8s ease-in-out;
    transition: transform .8s ease-in-out;
}

.tg-social-links:hover,
.yt-social-links:hover,
.rt-social-links:hover {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
}



/* куб */
.cube-container {
    perspective: 1000px;
}

.cube {
    transform-style: preserve-3d;
    position: relative;
    width: 300px;
    height: 300px;
    animation: rotate 40s ease-in-out infinite;
    transform-origin: center center;
}

.cube:hover {
    transform: scale(1.2); /* Увеличение куба до 120% от его изначального размера */
    transition: transform 0.3s ease-in-out; /* Плавное увеличение */
}


@keyframes rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(360deg) rotateY(360deg);
    }
    50% {
        transform: rotateX(0deg) rotateY(360deg);
    }
    75% {
        transform: rotateX(180deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(-360deg) rotateY(-360deg);
    }
}

.side {
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: #333;
    opacity: .95;
    background-size: cover;
    background-repeat: no-repeat;
}

.back-cube {
    background-image: url("/static/img/cube/1.webp");
    transform: translateZ(-172.5px) rotateX(180deg);
}

.left-cube {
    background-image: url("/static/img/cube/2.webp");
    transform: translate(-172.5px) rotateY(90deg);
}

.right-cube {
    background-image: url("/static/img/cube/3.webp");
    transform: translate(172.5px) rotateY(90deg);
}

.top-cube {
    background-image: url("/static/img/cube/4.webp");
    transform: translateY(-172.5px) rotateX(90deg);
}

.bottom-cube {
    background-image: url("/static/img/cube/5.webp");
    transform: translateY(172.5px) rotateX(270deg);
}

.front-cube {
    background-image: url("/static/img/cube/6.webp");
    transform: translateZ(173px);
}
/* куб */


/* карточки новостей на главной */
.news-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.news-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    overflow: hidden; /* Обрезаем выходящие за границы элементы */
    border-top: 4px solid #78BF9B;
}

.news-img-container {
    width: 100%;
    height: 180px; /* Фиксированная высота для изображений */
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение заполняет контейнер с сохранением пропорций */
    transition: transform 0.3s;
}

.news-content {
    padding: 15px;
}

.news-title {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.news-date {
    font-size: 0.85rem;
    color: #666;
}

/* Эффекты при наведении */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(120, 191, 155, 0.2);
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-card:hover .news-title {
    color: #78BF9B;
}
/* карточки новостей на главной */



/* последние комментарии на главной */
.last-comments {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.comments-title {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #78BF9B;
}

.comment-item {
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
}

.comment-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    padding: 5px;
    border-radius: 4px;
    width: 100%;
}

.comment-link:hover {
    background: rgba(120, 191, 155, 0.1);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #78BF9B;
    flex-shrink: 0;
}

.comment-text {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.publication-link {
    color: #78BF9B;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.publication-link:hover {
    color: #5FA882;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .comment-item {
        white-space: normal;
    }

    .comment-text {
        display: inline;
    }
}
/* последние комментарии на главной */



/* faq на главной */
.faq-block {
}

.faq-big-font {
    font-size: 30px;
    font-weight: 700;
    line-height: 110%;
    margin-bottom: 5px;
}

.faq-normal-font {
    font-size: 18px;
    font-weight: 400;
    color: #555;
    line-height: 140%;
    margin-bottom: 20px;
}

.contact-normal-font {
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
    margin-bottom: 20px;
}

.contact-normal-font span {
    color: #555;
    background-color: #F1F1F1;
    padding: 0 4px;
}




/* пояснение со звёздочкой */
.remark {
    color: #888;
    font-size: 0.6em;
}




/* Список игр */
.bg-back {
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    font-weight: 400;
}

.bg-back span {
    font-size: 2em;
    font-weight: 500;
    margin-right: 5px;

}

.bg-back:hover {
    background-color: #E9ECEF;
}

h1.bg-list  {
    font-weight: 500;
}

h2.bg-list  {
    font-size: 25px;
    color: #000;
    font-weight: 500;
}

ol.bg-list  {
    margin-left: 10px;
}

li.bg-list  {
    font-size: 20px;
}

@media (max-width: 768px) {
    h1.bg-list {
        font-size: 30px;
    }
}


/* picks список игр */
.game-results {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #EAEEF2;
    animation: fadeIn 0.3s ease-out;
}

.game-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-params {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-query {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.param-chip {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.param-chip.random {
    background: #FFF0F5;
    color: #D23669;
    border: 1px solid #FFD6E7;
}

.param-chip.type {
    background: #EEF2FF;
    color: #4F46E5;
}

.param-chip.theme {
    background: #ECFDF5;
    color: #059669;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #64748B;
}

.count-badge {
    background: #6366F1;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.emoji {
    font-size: 1.2rem;
}

.game-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #F8FAFC;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.game-item:hover {
    background: #F1F5F9;
    transform: translateX(4px);
}

.game-rank {
    color: #6366F1;
    font-weight: 600;
    margin-right: 12px;
    min-width: 20px;
}

.game-name {
    color: #334155;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



.search-history-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.sh-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.sh-icon {
    width: 20px;
    height: 20px;
    color: #6366f1;
}

.sh-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.sh-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sh-item {
    position: relative;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.sh-item-link {
    font-size: 0.95rem;
    color: #475569;
    text-decoration: none;
}

.sh-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.sh-item-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6366f1;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sh-item:hover .sh-item-hover {
    transform: scaleX(1);
}











/* footer подвал */
footer {
    border-top: solid 5px #78BF9B;
    height: 100px;
    margin-top: 40px;
}

footer a {
    color: #444;
    font-size: 0.75em;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
/* footer подвал */












/* Стили для бейджа категории на изображении */
.category-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
}

.category-link {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.category-link:hover {
    color: #ddd;
}

/* Стили для мета-информации */
.news-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
}

.news-category a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.news-category a:hover {
    color: #333;
}

/* Дополнительные стили для карточки */
.news-img-container {
    position: relative;
}








