@font-face {
    font-family: 'Sclate';
    src: url(fonts/Sclate.ttf);
}

/* Определяем переменные для светлой темы (по умолчанию) */
:root {
    --bg-color: #eeeeee;
    --bg-color-second: #cccccc;
    --text-color: #333333;
    --text-color-light: #595959;
    --accent-color: #007bff;
    --border-color: #333333;
}

/* Определяем переменные для тёмной темы */
[data-theme="dark"] {
    --bg-color: #333333;
    --bg-color-second: #555555;
    --text-color: #ffffff;
    --text-color-light: #afafaf;
    --accent-color: #66aaff;
    --border-color: #4c4c4c;
}

/* Применяем переменные к элементам */
body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s; /* Плавный переход */
    margin: 0;
    font-family: Verdana;
}

table {
    border-color: var(--text-color);
    color: var(--text-color);
}

.wp-block-code code {
    overflow-x: auto;
    white-space: pre;
}

.linkButton {
    border: none;
    background: transparent;
    color: var(--text-color);
    text-decoration: underline;
}

button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.logo-container {
    display: inline-block;
    text-align: center;
    padding: 1rem;
    font-family: Sclate;
    user-select: none;
}

.logo-main {
    font-size: 1.5rem;
    /*font-weight: bold;*/
    color: var(--text-color);
    /*letter-spacing: -10px;*/
    transition-duration: 0.5s;
}

.logo-main-white {
    font-size: 1.5rem;
    /*font-weight: bold;*/
    color: #fff;
    /*letter-spacing: 8px;*/
    transition-duration: 0.5s;
}


.logo-dot {
    color: #3498db;
    font-size: 1rem;
    vertical-align: middle;
    margin: 0 5px;
}

.logo-sub {
    font-size: 0.5rem;
    color: #7f8c8d;
    letter-spacing: 3px;
    margin-top: 1px;
    font-weight: 300;
}

/* Эффект при наведении */
.logo-container:hover .logo-main {
    color: var(--accent-color);
}

.logo-container:hover .logo-main-white {
    color: var(--accent-color);
}

.verticalLine {
    border-left: 1px solid var(--text-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.verticalLineContainer {
    display: flex;
    align-items: center;
}

.headerContainer {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.contentContainer {
    padding: 1rem;
}

.beatifulImageContainer {
    position: absolute;
    z-index: -500;
    width: 100%;
    background: #05172F;
}

.beatifulImage {
    width: 100%;
    mask-image: linear-gradient(to right,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 1) 100%
    );
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Стили для карточки */
.docs-card-link {
    text-decoration: none;
}

.docs-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.docs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.docs-card-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.docs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.docs-card:hover .docs-card-image img {
    transform: scale(1.05);
}

.docs-card-content {
    padding: 1.5rem;
}

.docs-card-title {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.docs-card-excerpt {
    margin: 0;
    color: var(--text-color-light);
    line-height: 1.5;
}

.footerContainer {
    background-color: #05172F;
    display: flex;
    border-top: 1px solid var(--border-color);
    align-items: center;
}

.docs-tree {
    margin: 20px 0;
    padding: 15px;
    padding-top: 0.1rem;
    background: var(--bg-color);
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.docs-tree ul {
    list-style: none;
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 0;
}

.docs-tree li {
    margin: 8px 0;
    position: relative;
}

.docs-tree li:before {
    content: "•";
    margin-right: 8px;
    color: #05172F;
}

.docs-tree a {
    text-decoration: none;
    color: var(--text-color);
}

.docs-tree a:hover {
    color: #05172F;
}

.docs-navigation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.docs-breadcrumbs {
    margin: 20px 0;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 4px;
}

.docs-child-hidden {
    display: none;
}

.doc-toggle {
    cursor: pointer;
    margin-right: 5px;
    display: inline-block;
    width: 16px;
    text-align: center;
    user-select: none;
}

.doc-item.has-children > .doc-toggle {
    visibility: visible;
}

.doc-item:not(.has-children) > .doc-toggle {
    visibility: hidden;
}

.tree-root {
    display: inline-block;
}

/* Опционально: стили для активного состояния */
.current-doc > a {
    font-weight: bold;
    color: #05172F;
}

code {
    background-color: var(--bg-color-second);
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#mainContentContainer {
    margin-top: 10rem;
}

#doubleFooter {
    display: none;
}

#documentationContainer {
    flex-direction: row;
}

#innerDocContent {
    margin-left: 3rem;
    width: calc(100% - 25rem)
}

@media (max-width: 575.98px) {
    .logo-main {
        font-size: 1.5rem;
    }

    .logo-main-white {
        font-size: 1.5rem;
    }

    .logo-sub {
        font-size: 0.5rem;
        letter-spacing: 3px;
        margin-top: 1px;
        font-weight: 300;
    }

    #themeToggle {
        display: none;
    }

    .beatifulImageContainer{
        width: 100%;
        overflow: hidden;
    }

    .beatifulImage {
        width: 340%;
    }

    #imageHeaderContainer {
        padding-top: 0px;
    }

    #mpHeader1 {
        font-size: 1.8rem;
    }

    #mpHeader2 {
        font-size: 1.0rem;
    }

    #confidential {
        display: none;
    }

    #mainContentContainer {
        margin-top: 0.2rem;
    }

    #copyright {
        font-size: 0.6rem;
        text-align: right;
    }

    #confidential2 {
        font-size: 0.8rem;
    }

    #doubleFooter {
        display: flex;
    }

    #documentationContainer {
        flex-direction: column;
        align-items: center;
    }

    #innerDocContent {
        margin-left: 0px;
        width: 100%;
    }
}