/* 1. Глобальные настройки и Фон */
:root { 
  /* Цвет акцента (заменяем Vue-зеленый на твой темно-зеленый или золото) */
  --theme-color: #2D4F1E;
  --gold: #D4AF37;
  --gold-bright: #f1c40f;
  --bg-dark: #112508;
  --paper: #fdfaf3; /* Цвет дорогой бумаги */
  --text-main: #3a3a3a; /* Мягкий черный, чтобы не "резал" бумагу */
}

/* Применяем ко всему сайту */
body, .sidebar {
  background-color: var(--paper) !important;
  color: var(--text-main) !important;
}

/* Единый блок кода без эффекта "рамки" */
.markdown-section pre {
  background-color: #f5f1e8 !important; /* Цвет "плотной бумаги" */
  border: 1px solid #e2ddd2 !important;
  padding: 1.2em;
  border-radius: 6px;
  overflow: auto;
}

/* Убираем фон у вложенного кода, чтобы он не перекрывал фон pre */
.markdown-section pre code {
  background-color: transparent !important; 
  color: #3e4b39 !important; /* Твой глубокий серо-зеленый */
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}


::selection {
  background: rgba(45, 79, 30, 0.1);
}

blockquote {
  border-left: 4px solid var(--theme-color) !important;
  background: #f6f7ed !important; /* Очень легкий зеленый отлив */
}

/* Уменьшаем отступ между текстом и следующим за ним списком */
.markdown-section p + ul, 
.markdown-section p + ol {
  margin-top: -15px !important;
}

/* 2. Таблицы (Чередующиеся строки) */
/* В теме Vue это обычно селектор tr:nth-child(2n) */
.markdown-section tr:nth-child(2n) {
  background-color: #f5f1e8 !important; /* Тот же цвет, что у кода для единства */
}

/* Шапка таблицы */
.markdown-section th {
  background-color: #eee9dd !important; /* Еще чуть темнее, чтобы выделить заголовок */
  border: 1px solid #dcd7ca !important;
}

.markdown-section td {
  border: 1px solid #eee9dd !important;
}

/* 3. Инлайновый код (внутри текста) `вот такой` */
.markdown-section code:not(pre code) {
  background-color: rgba(23, 50, 11, 0.05) !important; /* Легкий зеленый оттенок */
  color: var(--accent-green) !important;
  padding: 2px 4px;
  border-radius: 3px;
}



/* Контейнер верхнего меню */
.app-nav {
  position: fixed;
  margin: 0 !important;
  background-color: var(--paper); /* Твоя бумага #fdfaf3 */
  border-bottom: 1px solid rgba(45, 79, 30, 0.1); /* Тонкая зеленая линия */
  width: 100%;
  left: 0;
  top: 0;
  padding: 10px 20px;
  z-index: 100;
  text-align: right; /* Пункты меню справа */
}

/* Пункты меню в одну строку */
.app-nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  list-style: none;
  margin: 0;
}

.app-nav li a {
  color: var(--theme-color) !important; /* Твой зеленый #2D4F1E */
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.3s;
}

.app-nav li a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Сдвигаем основной контент вниз, чтобы меню его не перекрывало */
section.content {
  padding-top: 80px !important;
}

/* Прячем кнопку бургера, так как сайдбара больше нет */
.sidebar-toggle {
  display: none !important;
}

/* Прячем верхнее меню только на обложке */
section.cover.show + main .app-nav {
  display: none;
}


.hero-text-block {
  margin: 0 auto 30px;
  max-width: 600px;
  padding: 0 20px;
}

.hero-icon {
  width: 80px !important;
  margin-bottom: 20px !important;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-title {
  color: var(--gold-bright) !important;
  font-size: 2.8rem !important;
  font-weight: 800;
  text-transform: lowercase;
  margin-bottom: 10px !important;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hero-slogan {
  color: #fff !important;
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.hero-lore {
  color: #a0a0a0 !important;
  font-style: italic;
  line-height: 1.8;
}

/* 3. Навигация (Кнопки-ссылки) */
.hero-buttons {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.hero-buttons a {
  color: #a0a0a0 !important;
  font-weight: 300 !important;
  text-transform: lowercase;
  letter-spacing: 2px;
  text-decoration: none !important;
  position: relative;
  transition: all 0.4s ease;
  padding: 5px 10px;
}

.hero-buttons a:hover {
  color: var(--gold) !important;
  letter-spacing: 3px;
}

.hero-buttons a::after {
  content: ''; position: absolute; width: 0; height: 1px;
  bottom: 0; left: 50%; background: var(--gold);
  transition: 0.4s; transform: translateX(-50%);
}

.hero-buttons a:hover::after { width: 60%; }


/* Мобильная адаптация */
@media screen and (max-width: 767px) {
  .hero-title { font-size: 2rem !important; }
  .hero-icon { width: 64px !important; }
  .sidebar-toggle { background: rgba(23, 50, 11, 0.8) !important; backdrop-filter: blur(4px); }
}