/* glossary.css */

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Roboto:wght@300;400;700&display=swap');

/* Общие стили */
body {
    font-family: 'Merriweather', serif;
    background-color: #0c0c0c;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* Навигационное меню */
.navbar {
    background-color: rgba(15, 15, 15, 0.95);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.nav-logo {
    color: #b8860b;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #daa520;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.nav-links a:hover {
    color: #b8860b;
}

/* Общие стили для секций */
.section-title {
    font-size: 2.2em;
    color: #b8860b;
    border-bottom: 2px solid #b8860b;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 25px;
}

/* Стили для глоссария */
.glossary-intro {
    font-style: italic;
    font-size: 1.1em;
    color: #aaa;
}

.glossary-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.glossary-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 100px; /* Отступ от навигационного меню */
    align-self: flex-start;
}

.nav-button {
    background-color: #1a1a1a;
    border: 1px solid #b8860b;
    color: #e0e0e0;
    padding: 12px 20px;
    text-align: left;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-button:hover {
    background-color: #b8860b;
    color: #0c0c0c;
}

.nav-button.active {
    background-color: #b8860b;
    color: #0c0c0c;
    box-shadow: 0 0 10px rgba(184, 134, 11, 0.5);
}

.glossary-content {
    flex-grow: 1;
}

.glossary-category {
    display: none; /* Скрываем все категории по умолчанию */
}

.glossary-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #1a1a1a;
    border-left: 3px solid #b8860b;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.glossary-item h3 {
    margin-top: 0;
    color: #b8860b;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    background-color: #121212;
    margin-top: 0;
    font-size: 0.9em;
    color: #666;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 15px;
    }
    .nav-links a {
        margin: 0 10px;
    }
    .glossary-wrapper {
        flex-direction: column;
    }
    .glossary-nav {
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
    }
}