/* Fixed repeating background */
body {
    background-image: url("../images/bg.jpg");
    background-repeat: repeat;
    background-position: left top;
    background-attachment: fixed;
    background-size: auto;
}


/* ERtis Oniri — sidebar */
.eo-sidebar {
    min-width: 0;
}

.eo-sidebar-video {
    overflow: hidden;
    border-radius: 7px;
    background: #111;
    line-height: 0;
}

.eo-sidebar-video iframe {
    display: block;
    width: 100%;
    border: 0;
}

.eo-sidebar-news {
    margin-top: 16px;
    border-radius: 7px;
}

/* Sticky sidebar on desktop */
@media (min-width: 960px) {
    .eo-sidebar {
        position: sticky;
        top: 20px;
        align-self: flex-start;
    }
}

@media (max-width: 959px) {
    .eo-sidebar {
        position: static;
    }
}

/* Latest news in sidebar */
.eo-latest-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.eo-latest-item:last-child {
    border-bottom: 0;
}

.eo-latest-link {
    color: inherit;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.eo-latest-link:hover {
    color: #E5097F;
    text-decoration: none;
}



/* Переключатель темы */
.eo-theme-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 7px;
    background: #E5097F;
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.eo-theme-toggle:hover {
    background: #c9006c;
}


/* ===== ТЁМНАЯ ТЕМА ERTIS ONIRI ===== */

html[data-theme="dark"] {
    background: #17191f;
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background-color: rgba(0, 0, 0, 0.36);
    background-blend-mode: multiply;
}

/* Основные карточки */
html[data-theme="dark"] .uk-card-default {
    background: #252832;
    color: #e5e5e5;
}

/* Шапка */
html[data-theme="dark"] .uk-navbar-container {
    background: #252832;
}

html[data-theme="dark"] .uk-navbar-nav > li > a {
    color: #e5e5e5;
}

html[data-theme="dark"] .uk-navbar-nav > li:hover > a,
html[data-theme="dark"] .uk-navbar-nav > li.uk-active > a {
    color: #E5097F;
}

/* Выпадающее меню */
html[data-theme="dark"] .uk-navbar-dropdown {
    background: #252832;
}

html[data-theme="dark"] .uk-navbar-dropdown-nav > li > a {
    color: #e5e5e5;
}

html[data-theme="dark"] .uk-navbar-dropdown-nav > li > a:hover {
    color: #E5097F;
}

/* Общий текст и ссылки */
html[data-theme="dark"] .uk-card-default a {
    color: #e5e5e5;
}

html[data-theme="dark"] .uk-card-default a:hover {
    color: #E5097F;
}

html[data-theme="dark"] .uk-text-muted {
    color: #a5a8b1 !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #f0f0f0;
}

html[data-theme="dark"] hr,
html[data-theme="dark"] .uk-heading-divider {
    border-color: #414550;
}

/* Поля ввода */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background: #252832;
    color: #e5e5e5;
    border-color: #414550;
}

/* Розовый акцент */
html[data-theme="dark"] a:hover {
    color: #E5097F;
}

/* Шапка всегда светлая */
html[data-theme="dark"] .uk-navbar-container {
    background: #fff;
}

html[data-theme="dark"] .uk-navbar-nav > li > a {
    color: #333;
}

html[data-theme="dark"] .uk-navbar-nav > li:hover > a,
html[data-theme="dark"] .uk-navbar-nav > li.uk-active > a {
    color: #E5097F;
}

html[data-theme="dark"] .uk-navbar-dropdown {
    background: #fff;
}

html[data-theme="dark"] .uk-navbar-dropdown-nav > li > a {
    color: #333;
}

html[data-theme="dark"] .uk-navbar-dropdown-nav > li > a:hover {
    color: #E5097F;
}