
/* Фоновое изображение */
body {
  background-image: url('/static/img/pot.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
/* Общие настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
}

/* Шапка */
.header {
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  flex: 1;
}

.logo {
  height: 50px;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

/* Меню навигации */
.main-nav {
  flex: 2;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #4CAF50;
  border-bottom-color: #4CAF50;
}

/* Действия в шапке */
.header-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  align-items: center;
}

.auth-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.auth-link:hover {
  color: #4CAF50;
}

/* Языковое меню */
.lang-menu {
  position: relative;
}

.lang-btn {
  background: none;
  border: none;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.lang-btn:hover {
  color: #4CAF50;
}

.lang-dropdown {
  position: absolute;
  top: 140%;
  right: 0;
  background-color: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 1000;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 0.7rem 1rem;
  color: #e0e0e0;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.lang-dropdown a:hover {
  background-color: #3a3a3a;
  color: #4CAF50;
}

/* Основной контент */
.main-content {
  padding: 2rem 5%;
  min-height: calc(100vh - 120px); /* Высота без шапки и футера */
}

/* Футер */
.footer {
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  padding: 2rem 5%;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #888;
  margin: 0 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #4CAF50;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .main-nav {
    width: 100%;
    margin-top: 1rem;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 1rem;
  }


  .lang-btn,
  .auth-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.8rem 3%;
  }

  .nav-list {
    gap: 0.8rem;
  }

  .lang-btn,
  .auth-link {
    font-size: 0.8rem;
  }
}

/* Стили для блоков контента в блоге */
.post-card {
  background-color: #222;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  color: #fff;
}

.post-card time {
  display: block;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-card p {
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.read-more {
  display: inline-block;
  color: #4CAF50;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.read-more::after {
  content: ' →';
  margin-left: 0.3rem;
}

.read-more:hover {
  color: #2e7d32;
}

/* Детальная страница поста */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
}

.post-header h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.post-date {
  color: #888;
  font-size: 1rem;
}

/* Видео-секция */
.video-section {
  margin: 2rem 0;
  text-align: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.no-video {
  color: #888;
  font-style: italic;
}

/* Секция контента поста */
.post-content {
  line-height: 1.7;
  color: #e0e0e0;
  margin: 2rem 0;
}

.post-content p {
  margin-bottom: 1.2rem;
}

.post-content ul,
.post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

/* Галерея фотографий */
.photo-gallery {
  margin: 2rem 0;
}

.photo-gallery h2 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.photo-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.photo-item:hover .photo-img {
  transform: scale(1.05);
}

.photo-caption {
  padding: 0.6rem;
  background-color: #1a1a1a;
  color: #bbb;
  font-size: 0.85rem;
}

.no-photos {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

/* Футер-ссылка */
.back-link {
  display: inline-flex;
  align-items: center;
  color: #4CAF50;
  text-decoration: none;
  font-weight: 500;
  margin-top: 2rem;
}

.back-link::before {
  content: '←';
  margin-right: 0.5rem;
  font-weight: bold;
}

.back-link:hover {
  color: #2e7d32;
}

/* Рейтинг и комментарии */
.rating-section,
.comments-section {
  margin: 3rem 0;
  padding: 1.5rem;
  background-color: #222;
  border-radius: 12px;
}

.rating-section h3,
.comments-section h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.avg-rating {
  color: #ffd700; /* Золотой цвет для звёзд */
  font-weight: bold;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-warning {
  background-color: #ff9800;
  color: white;
}

.btn-success {
  background-color: #4CAF50;
  color: white;
}

/* Форма рейтинга и комментариев */
.rating-form,
.comment-form {
  margin-top: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #bbb;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #4CAF50;
}

.submit-btn {
  background-color: #4CAF50;
  color: white;
  margin-top: 1rem;
}

.submit-btn:hover {
  background-color: #2e7d32;
}


/* Пагинация */
.pagination {
display: flex;
justify-content: center;
gap: 0.5rem;
margin: 2rem 0;
}

.pagination a,
.pagination span {
padding: 0.6rem 1rem;
border: 1px solid #444;
border-radius: 4px;
color: #bbb;
text-decoration: none;
transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
background-color: #333;
color: #e0e0e0;
}

.pagination .current {
background-color: #4CAF50;
color: white;
border-color: transparent;
font-weight: bold;
}

/* Мобильная версия для форм */
@media (max-width: 600px) {
.rating-form,
.comment-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  width: 100%;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
}
}

/* Специальные стили для админ-панели (если нужно) */
.admin-link {
position: fixed;
bottom: 20px;
right: 20px;
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border-radius: 5px;
text-decoration: none;
z-index: 1000;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: background-color 0.3s;
}

.admin-link:hover {
background-color: #2e7d32;
}

/* Анимации */
@keyframes fadeIn {
from {
  opacity: 0;
  transform: translateY(10px);
}
to {
  opacity: 1;
  transform: translateY(0);
}
}

.animated {
animation: fadeIn 0.6s ease-out;
}

/* Утилиты */
.text-center {
text-align: center;
}

.mt-2 {
margin-top: 2rem;
}

.mb-2 {
margin-bottom: 2rem;
}

.p-1 {
padding: 1rem;
}

/* Скрытые элементы */
.hidden {
display: none !important;
}

/* Печать */
@media print {
body {
  background-color: white;
  color: black;
}

.header,
.footer,
.lang-menu,
.auth-link {
  display: none;
}

.main-content {
  padding: 0;
}

a[href]:after {
  content: " (" attr(href) ")";
  font-size: 90%;
  color: gray;
}
}
