/* Основные стили для сайта о морально-этических принципах в Израиле */

:root {
  --primary-color: #8b6b3d; /* Песочный/золотистый цвет для античности */
  --secondary-color: #1e3f66; /* Глубокий синий для иудейской символики */
  --accent-color: #a63c06; /* Терракотовый для древних артефактов */
  --light-color: #f5e6c9; /* Светлый пергаментный цвет */
  --dark-color: #2c2416; /* Темный древесный цвет */
  --text-color: #333333;
  --background-color: #f9f5eb;
  --column-color: #d9c7a7;
}

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=EB+Garamond:ital,wght@0,400;0,700;1,400&display=swap');

/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'EB Garamond', serif;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image: url('../images/parchment-bg.jpg');
  background-attachment: fixed;
  line-height: 1.6;
}

/* Стилизация для создания эффекта античных колонн по бокам */
.container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

.column-left, .column-right {
  position: fixed;
  top: 0;
  width: 80px;
  height: 100vh;
  background-image: url('../images/column.png');
  background-repeat: repeat-y;
  background-size: contain;
  z-index: -1;
  opacity: 0.8;
}

.column-left {
  left: 0;
}

.column-right {
  right: 0;
}

/* Заголовки в античном стиле */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

h2 {
  font-size: 2rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

/* Параграфы в стиле древних текстов */
p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  text-align: justify;
  line-height: 1.8;
}

/* Стилизация ссылок */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Навигационное меню в стиле древнего свитка */
.header {
  background: linear-gradient(to bottom, var(--light-color), var(--background-color));
  border-bottom: 3px solid var(--primary-color);
  padding: 1rem 0;
  position: relative;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.site-title {
  text-align: center;
  margin-bottom: 1rem;
}

.site-title h1 {
  margin-top: 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0.5rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  border: 1px solid var(--primary-color);
}

.nav li {
  margin: 0 0.5rem;
}

.nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 80%;
}

/* Основной контент */
.main-content {
  padding: 2rem 0;
  position: relative;
  z-index: 1;
}

/* Секции с древним оформлением */
.section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), transparent, var(--primary-color));
}

/* Стилизация списков */
ul, ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Декоративные элементы */
.symbol {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.symbol img {
  max-width: 100px;
  opacity: 0.8;
}

/* Подвал сайта */
.footer {
  background: linear-gradient(to top, var(--light-color), var(--background-color));
  border-top: 3px solid var(--primary-color);
  padding: 2rem 0;
  text-align: center;
  position: relative;
}

.footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
}

/* Языковое переключение */
.language-switcher {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.language-switcher a {
  margin: 0 0.5rem;
  padding: 0.3rem 0.6rem;
  background-color: var(--light-color);
  border: 1px solid var(--primary-color);
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-weight: bold;
}

.language-switcher a.active {
  background-color: var(--primary-color);
  color: var(--light-color);
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
  .column-left, .column-right {
    display: none;
  }
  
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .nav {
    flex-direction: column;
    align-items: center;
  }
  
  .nav li {
    margin: 0.3rem 0;
  }
  
  .section {
    padding: 1.5rem;
  }
}

/* Специальные стили для символов и декоративных элементов */
.star-of-david {
  width: 60px;
  height: 60px;
  position: relative;
  margin: 0 auto;
}

.star-of-david::before,
.star-of-david::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
}

.star-of-david::before {
  border-bottom: 52px solid rgba(0, 56, 168, 0.5);
  top: -26px;
}

.star-of-david::after {
  border-top: 52px solid rgba(0, 56, 168, 0.5);
  top: 26px;
}

.menorah {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 80px;
  margin: 0 auto;
}

.menorah-branch {
  width: 5px;
  background-color: var(--primary-color);
  margin: 0 10px;
  position: relative;
}

.menorah-branch::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.menorah-branch:nth-child(1) { height: 60px; }
.menorah-branch:nth-child(2) { height: 70px; }
.menorah-branch:nth-child(3) { height: 80px; }
.menorah-branch:nth-child(4) { height: 90px; }
.menorah-branch:nth-child(5) { height: 80px; }
.menorah-branch:nth-child(6) { height: 70px; }
.menorah-branch:nth-child(7) { height: 60px; }

/* Стили для цитат и выделенного текста */
blockquote {
  font-style: italic;
  border-left: 3px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: var(--dark-color);
}

.highlight {
  background-color: rgba(139, 107, 61, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

/* Стили для кнопок */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-color);
  text-decoration: none;
  color: white;
}

/* Стили для изображений */
.img-container {
  text-align: center;
  margin: 1.5rem 0;
}

.img-container img {
  max-width: 100%;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.img-caption {
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--dark-color);
}

/* Анимация для интерактивных элементов */
@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(139, 107, 61, 0.5); }
  50% { box-shadow: 0 0 20px rgba(139, 107, 61, 0.8); }
  100% { box-shadow: 0 0 5px rgba(139, 107, 61, 0.5); }
}

.interactive-element:hover {
  animation: glow 2s infinite;
}
