/* ==========================================================
   Custom CSS для OJS — анимации кнопок
   Журнал: Educational Challenges

   КАК ПОДКЛЮЧИТЬ:
   1. Settings → Website → Appearance → кнопка "Advanced"
      рядом с "Journal Stylesheet (CSS)"
   2. Загрузить этот файл (или вставить его содержимое
      в уже существующий custom.css)
   3. В HTML нужных кнопок/карточек добавить соответствующий class
      (см. комментарии ниже; для карточек сайдбара — class="sidebar-card",
      а у стрелки/шеврона внутри — class="chevron")
   4. Очистить кеш: Settings → Website → Clear Data Caches
   ========================================================== */

/* --- Универсальный класс: плавная анимация для любой кнопки --- */
/* Добавь class="ojs-btn-animate" любой кнопке, если нет отдельного стиля ниже */
.ojs-btn-animate {
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.ojs-btn-animate:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

/* --- Карточки-ссылки в сайдбаре: языки, ISSN, статус, издатель,
   индексация, архивирование, политики, соцсети --- */
.sidebar-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(26, 45, 69, 0.18), 0 2px 4px rgba(26, 45, 69, 0.12);
}

.sidebar-card .chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}

.sidebar-card:hover .chevron {
  transform: translateX(3px);
}

/* --- Кнопка "SUBMISSION FORM" (синий градиент, со стрелкой) --- */
.submission-form-btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.submission-form-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* если стрелка — отдельный элемент внутри кнопки, например <span class="arrow">→</span> */
.submission-form-btn .arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.submission-form-btn:hover .arrow {
  transform: translateX(5px);
}

/* --- Кнопка "MANUSCRIPT TEMPLATE" (вторичная) --- */
.manuscript-template-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.manuscript-template-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* --- Кнопки профилей в редколлегии (ORCID, Web of Science, Scopus, Google Scholar) --- */
.profile-btn {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.profile-btn:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* --- Постоянная пульсация (опционально, чтобы кнопка сама привлекала внимание) --- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

/* =========================================================
   EDUCATIONAL CHALLENGES
   HEADER CSS
   Desktop + Mobile
   ========================================================= */


/* =========================================================
   1. HEADER — DESKTOP
   ========================================================= */

.pkp_structure_head {
    position: relative !important;

    background: linear-gradient(
        115deg,
        #e8f5f9 0%,
        #d1eaf1 30%,
        #8cc9da 65%,
        #52a9c3 100%
    ) !important;

    overflow: visible !important;
}


/* Убираем возможные фоновые слои темы */

.pkp_structure_head::before,
.pkp_structure_head::after {
    background: transparent !important;
}


/* =========================================================
   2. КОНТЕЙНЕР ЛОГОТИПА
   ========================================================= */

.pkp_site_name_wrapper {
    background: transparent !important;

    padding-top: 10px !important;
    padding-bottom: 10px !important;
}


.pkp_site_name {
    background: transparent !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


.pkp_site_name a {
    background: transparent !important;
}


/* ЛОГОТИП */

.pkp_site_name .is_img img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-height: 105px !important;
    max-width: 100% !important;

    object-fit: contain !important;
}


/* =========================================================
   3. USER MENU
   ========================================================= */

.pkp_navigation_user_wrapper {
    background: transparent !important;
}

.pkp_navigation_user {
    background: transparent !important;
}

.pkp_navigation_user > li > a,
.pkp_navigation_user > li > a:visited {
    color: #082f50 !important;
    font-weight: 600 !important;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    color: #006f8e !important;
}


/* =========================================================
   4. ОСНОВНОЕ МЕНЮ
   ========================================================= */

.pkp_navigation_primary_row {
    background: #0b426d !important;

    border-top: 1px solid rgba(255,255,255,0.12) !important;
    border-bottom: 1px solid rgba(0,0,0,0.15) !important;
}

.pkp_navigation_primary_wrapper {
    background: #0b426d !important;
}

.pkp_navigation_primary {
    background: transparent !important;
}


/* Пункты меню */

.pkp_navigation_primary > li > a,
.pkp_navigation_primary > li > a:visited {
    color: #ffffff !important;

    font-weight: 600 !important;

    text-decoration: none !important;
}


/* Hover */

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #ffffff !important;

    background: rgba(255,255,255,0.10) !important;
}


/* =========================================================
   5. DROPDOWN
   ========================================================= */

.pkp_navigation_primary .dropdown-menu {
    background: #ffffff !important;

    border: 1px solid #dce6eb !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,0.12) !important;
}

.pkp_navigation_primary .dropdown-menu a,
.pkp_navigation_primary .dropdown-menu a:visited {
    color: #173d5d !important;

    background: #ffffff !important;
}

.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary .dropdown-menu a:focus {
    color: #007f9e !important;

    background: #eef7fa !important;
}


/* =========================================================
   6. SEARCH
   ========================================================= */

/* =========================================================
   SEARCH — FINAL
   ========================================================= */
/* =========================================================
   SEARCH — ONLY COLOR + SPACING
   ========================================================= */

.pkp_search {
    background: transparent !important;
    padding: 0 !important;
}


/* Ссылка поиска */

.pkp_search a,
.pkp_search button {
    color: #ffffff !important;

    background: transparent !important;

    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;

    font-weight: 600 !important;

    text-decoration: none !important;

    /* расстояние между лупой и SEARCH */
    gap: 8px !important;
}


/* Текст SEARCH */

.pkp_search a,
.pkp_search a span,
.pkp_search a label,
.pkp_search a strong,
.pkp_search button,
.pkp_search button span,
.pkp_search button label,
.pkp_search button strong {
    color: #ffffff !important;
}


/* ЛУПА */

.pkp_search .fa,
.pkp_search .glyphicon,
.pkp_search i,
.pkp_search svg {
    color: #ffffff !important;

    fill: #ffffff !important;
    stroke: #ffffff !important;

    margin-right: 8px !important;

    vertical-align: middle !important;
}


/* Hover */

.pkp_search a:hover,
.pkp_search a:focus,
.pkp_search button:hover,
.pkp_search button:focus {
    color: #ffffff !important;

    background: rgba(255,255,255,0.10) !important;

    border: 0 !important;

    box-shadow: none !important;

    text-decoration: none !important;
}


/* =========================================================
   7. MOBILE BUTTON
   ========================================================= */

.pkp_site_nav_toggle {
    position: relative !important;

    z-index: 100 !important;

    color: #ffffff !important;

    background: #0b426d !important;

    border: 0 !important;

    box-shadow: none !important;
}

.pkp_site_nav_toggle:hover,
.pkp_site_nav_toggle:focus {
    color: #ffffff !important;

    background: #07527f !important;
}


/* =========================================================
   8. MOBILE HEADER
   ========================================================= */

@media (max-width: 991px) {

    .pkp_structure_head {
        background: linear-gradient(
            135deg,
            #e8f5f9 0%,
            #cde8f0 45%,
            #63b4ca 100%
        ) !important;

        overflow: visible !important;
    }


    .pkp_head_wrapper {
        background: transparent !important;
    }


    /* Логотипная область */

    .pkp_site_name_wrapper {
        min-height: 92px !important;

        padding-top: 10px !important;
        padding-bottom: 10px !important;

        padding-left: 55px !important;
        padding-right: 15px !important;

        background: transparent !important;
    }


    .pkp_site_name {
        margin: 0 !important;

        padding: 0 !important;

        background: transparent !important;
    }


    .pkp_site_name .is_img img {
        display: block !important;

        width: auto !important;
        height: auto !important;

        max-height: 72px !important;

        max-width: calc(100vw - 75px) !important;

        object-fit: contain !important;
    }


    /* USER MENU */

    .pkp_navigation_user_wrapper {
        background: transparent !important;
    }


    /* MOBILE NAVIGATION */

    .pkp_navigation_primary_row {
        background: #0b426d !important;

        border: 0 !important;
    }

    .pkp_navigation_primary_wrapper {
        background: #0b426d !important;
    }

    .pkp_navigation_primary {
        background: #0b426d !important;
    }


    /* MOBILE MENU ITEMS */

    .pkp_navigation_primary > li > a,
    .pkp_navigation_primary > li > a:visited {
        color: #ffffff !important;

        background: transparent !important;
    }

    .pkp_navigation_primary > li > a:hover,
    .pkp_navigation_primary > li > a:focus {
        color: #ffffff !important;

        background: rgba(255,255,255,0.10) !important;
    }


    /* SEARCH MOBILE */

    .pkp_search {
        background: #0b426d !important;

        padding: 0 !important;
    }

    .pkp_search a,
    .pkp_search button {
        width: 100% !important;

        min-height: 45px !important;

        justify-content: center !important;

        color: #ffffff !important;

        background: #0b426d !important;

        gap: 7px !important;
    }

    .pkp_search a *,
    .pkp_search button * {
        color: #ffffff !important;
    }

    .pkp_search .fa,
    .pkp_search .glyphicon,
    .pkp_search svg,
    .pkp_search i {
        color: #ffffff !important;
    }


    /* HAMBURGER */

    .pkp_site_nav_toggle {
        z-index: 1000 !important;

        color: #ffffff !important;

        background: #0b426d !important;
    }
}


/* =========================================================
   9. SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .pkp_site_name_wrapper {
        min-height: 82px !important;

        padding-top: 8px !important;
        padding-bottom: 8px !important;

        padding-left: 50px !important;
        padding-right: 10px !important;
    }


    .pkp_site_name .is_img img {
        max-height: 65px !important;

        max-width: calc(100vw - 65px) !important;
    }
}


/* =========================================================
   10. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .pkp_site_name_wrapper {
        min-height: 72px !important;

        padding-left: 45px !important;
    }


    .pkp_site_name .is_img img {
        max-height: 58px !important;

        max-width: calc(100vw - 55px) !important;
    }
}