/* ==========================================================
   1. ОБЩИ НАСТРОЙКИ И ШРИФТОВЕ
   ========================================================== */
html, body, p, div, span, button, a, li, .font-comic-neue, .font-display {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

p {
    line-height: 1.6 !important;
    font-size: 16px !important;
    color: #1e293b !important;
}

h1, h2, h3, h4, h5 {
    font-weight: 700 !important;
    color: #28296E !important;
    letter-spacing: -0.01em !important;
}

/* Фикс за голямото бяло заглавие в хедъра */
.text-5xl.tracking-tight {
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    color: #ffffff !important;
    text-fill-color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 3rem !important;
}

/* ==========================================================
   2. ЕЗИКОВ ПРЕВКЛЮЧВАТЕЛ (SLIDER)
   ========================================================== */
.lang-switcher-wrapper {
    position: relative;
    display: flex;
    width: 86px;
    height: 32px;
    padding: 2px;
    margin-right: 8px;
    background-color: #e5e7eb;
    border-radius: 10px;
    align-items: center;
}

.lang-switcher-wrapper::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 40px;
    height: 26px;
    background-color: #A51C30;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.25s ease;
    z-index: 0;
}

html[lang^="en"] .lang-switcher-wrapper::before {
    transform: translateX(42px);
}

.lang-switcher-wrapper a {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s ease;
}

html[lang^="bg"] .lang-switcher-wrapper a[href*="/bg"],
html[lang^="en"] .lang-switcher-wrapper a[href*="/en"] {
    color: #ffffff !important;
}

/* ==========================================================
   3. СТРАНИЦА ПУБЛИКУВАНЕ (ТАБОВЕ И СЪДЪРЖАНИЕ)
   ========================================================== */
.publish-tabs-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: flex-start;
}

.publish-nav {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
}

.pub-tab-btn {
    background: none !important;
    border: none !important;
    text-align: left !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    margin-bottom: 5px !important;
    transition: 0.2s;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.pub-tab-btn.active {
    background-color: #A51C30 !important;
    color: #ffffff !important;
}

.pub-tab-btn:hover:not(.active) {
    background-color: #fee2e2 !important;
    color: #A51C30 !important;
}

.publish-content {
    flex: 1;
    padding: 0 20px;
    min-height: 300px;
}

/* ==========================================================
   4. ГЛАВНИ БУТОНИ В ХЕДЪРА (OUTLINE СТИЛ)
   ========================================================== */
a[href*="submissions"].rounded-full, 
a[href*="archive"].rounded-full {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background-image: none !important;
    border: 2px solid #A51C30 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(4px);
}

a[href*="submissions"].rounded-full:hover, 
a[href*="archive"].rounded-full:hover {
    background-color: #A51C30 !important;
    border-color: #A51C30 !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px -5px rgba(165, 28, 48, 0.5) !important;
}

/* ==========================================================
   5. ГОРНА НАВИГАЦИЯ И МЕНЮТА
   ========================================================= */
.pkp_navigation_primary > li > a:hover, 
.pkp_navigation_primary > li > div > a:hover,
.pkp_navigation_user > li > div > a:hover {
    color: #A51C30 !important;
}

.pkp_navigation_search_wrapper a svg,
button[aria-label="Theme"] svg {
    fill: #475569 !important;
}

.pkp_navigation_search_wrapper a:hover svg,
button[aria-label="Theme"]:hover svg {
    fill: #A51C30 !important;
}

.absolute.right-0.z-10.mt-2.w-56.rounded-md.bg-white {
    border-top: 3px solid #A51C30 !important;
}

/* ==========================================================
   6. МОБИЛНА ВЕРСИЯ И АКОРДЕОН
   ========================================================== */
[x-cloak] { display: none !important; }

.archive_accordion_wrapper { font-size: 0; }
.archive_accordion_wrapper .archive_accordion { font-size: initial; }

@media (max-width: 768px) {
    .publish-tabs-wrapper { flex-direction: column !important; }
    .publish-nav {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        width: 100% !important;
        min-width: unset !important;
        gap: 8px !important;
        padding: 6px !important;
    }
    .pub-tab-btn {
        margin-bottom: 0 !important;
        padding: 10px 18px !important;
        font-size: 13px !important;
        flex: 0 0 auto !important;
    }
    .publish-content { padding: 20px 0 !important; }
}

/* more */

/* ==========================================================
   7. АКЦЕНТИ ЗА ПОДМЕНЮТАТА (DROPDOWNS)
   ========================================================== */

/* Ефект при посочване на елемент в падащото меню */
.absolute.right-0.z-10.mt-2.w-56.rounded-md.bg-white ul li a:hover {
    background-color: #fef2f2 !important; /* Много бледо червен фон */
    color: #A51C30 !important; /* Текстът става червен */
    padding-left: 20px !important; /* Леко "мръдване" надясно за динамика */
    transition: all 0.2s ease !important;
}

/* Ако искаш да оцветим и малките кръгчета/точки пред линковете в страничното меню (Information) */
.before\:bg-slate-300:hover::before,
.dark\:before\:bg-slate-700:hover::before {
    background-color: #A51C30 !important;
}

/* Активен елемент в страничното навигационно меню (дясно) */
nav[aria-labelledby="on-this-page-title"] a:hover {
    color: #A51C30 !important;
    border-left-color: #A51C30 !important;
}

/* more */

/* ==========================================================
   8. СТИЛИЗИРАНЕ НА СТРАНИЦИТЕ ЗА ВХОД И РЕГИСТРАЦИЯ
   ========================================================== */

/* Основен бутон за Вход / Регистрация */
.page_login button[type="submit"], 
.page_register button[type="submit"],
.buttons button {
    background-color: #A51C30 !important; /* Академично червено */
    color: #ffffff !important;
    border: 2px solid #A51C30 !important;
    transition: all 0.3s ease !important;
}

.page_login button[type="submit"]:hover, 
.page_register button[type="submit"]:hover,
.buttons button:hover {
    background-color: #821424 !important; /* По-тъмно при ховър */
    border-color: #821424 !important;
    box-shadow: 0 4px 12px rgba(165, 28, 48, 0.3) !important;
}

/* Корекция на полетата за въвеждане (Inputs) - да не светят в синьо */
.page_login input:focus, 
.page_register input:focus {
    border-color: #A51C30 !important;
    border-width: 2px !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(165, 28, 48, 0.1) !important;
}

/* Корекция на отметката (Checkbox) */
input[type="checkbox"]:checked {
    background-color: #A51C30 !important;
    border-color: #A51C30 !important;
}

/* Корекция на линка "Вход в системата" в трохите (breadcrumbs) */
.page_login .text-blue-500,
.page_register .text-blue-500 {
    color: #A51C30 !important;
}

/* Вход с Google - малко по-изчистен вид */
#openid-provider-google div:hover {
    border-color: #A51C30 !important;
    background-color: #fef2f2 !important;
}

/* more */

/* ==========================================================
   ФИКС ЗА СТРАНИЦА КОНТАКТИ, ВХОД И НАВИГАЦИЯ (BREADCRUMBS)
   ========================================================== */

/* 1. Оправяне на сините Breadcrumbs (Начална / Контакти / Вход) */
nav ol li.current, 
nav ol li.current span,
.text-blue-500 {
    color: #A51C30 !important; /* Сменяме синьото с червено */
}

/* 2. Изчистване на "дървения" имейл линк в текста */
a[href^="mailto:"] {
    background: transparent !important;
    color: #A51C30 !important;
    border: none !important;
    padding: 0 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

a[href^="mailto:"]:hover {
    text-decoration: underline !important;
}

/* 3. Бутонът "ИЗПРАТИ ИМЕЙЛ" в сивото каре (Контакти) */
.contact-form-placeholder a[style*="background: #28296E"], 
.contact-form-placeholder a[href*="subject=Inquiry"] {
    background-color: transparent !important;
    background: transparent !important; /* Премахва синьото от инлайн стила */
    border: 1px solid #A51C30 !important;
    color: #A51C30 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
}

.contact-form-placeholder a:hover {
    background-color: #A51C30 !important;
    color: #ffffff !important;
}

/* 4. Бутоните на страницата за ВХОД и РЕГИСТРАЦИЯ */
.page_login button[type="submit"], 
.page_register button[type="submit"],
.buttons button {
    background-color: transparent !important;
    border: 1px solid #A51C30 !important;
    color: #A51C30 !important;
    border-radius: 9999px !important;
    padding: 8px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.page_login button[type="submit"]:hover, 
.page_register button[type="submit"]:hover {
    background-color: #A51C30 !important;
    color: #ffffff !important;
}

/* 5. Премахване на сините фокури около полетата (Inputs) */
input:focus {
    border-color: #A51C30 !important;
    --tw-ring-color: rgba(165, 28, 48, 0.2) !important;
}


/* more page title color */

/* ==========================================================
   ФИКС ЗА ЗАГЛАВИЯТА И НАВИГАЦИЯТА (BREADCRUMBS)
   ========================================================== */

/* 1. Навигационен път (Breadcrumbs) - Махаме синьото */
.pkp_page_contact .current,
.pkp_page_about .current,
.pkp_page_user .current,
.current.text-blue-500,
nav [aria-current="page"],
.text-blue-500 {
    color: #A51C30 !important;
}

/* 2. Всички основни заглавия на страници (Contact, Call for papers и др.) */
main h1, 
.page_title,
.page h1,
article h1,
h1.text-2xl {
    color: #A51C30 !important;
}

/* 3. Подзаглавия в секциите (например в Контакт: "Главен редакционен контакт") */
.contact_section h2, 
.contact_section h3,
main h2, 
main h3 {
    color: #28296E !important; /* Тъмно синьо за по-добра четивност */
    margin-top: 1.5rem !important;
    font-weight: 600 !important;
}

/* 4. Махаме синия цвят от иконите в търсачката, ако са останали */
.fill-blue-400 {
    fill: #A51C30 !important;
}

/* more red line bellow page titles */

/* ==========================================================
   11. ЕЛЕГАНТНА ЧЕРВЕНА ЛИНИЯ ПОД ЗАГЛАВИЯТА
   ========================================================== */

main h1, 
.page_title, 
.page h1, 
article h1 {
    display: inline-block !important; /* Линията ще е дълга колкото текста */
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px !important;
    border-bottom: 3px solid #A51C30 !important; /* Самата червена черта */
}

/* Оправяне на контейнера, за да не се залепя текста до заглавието */
.page, article, .main-content {
    clear: both;
}

/* Ако искаш линията да е малко по-фина и раздалечена */
h1.page_title {
    letter-spacing: 0.02em;
}

/* more header red line */
/* ==========================================================
   12. РАЗДЕЛИТЕЛНА ЛИНИЯ МЕЖДУ ХЕДЪРА И СЪДЪРЖАНИЕТО
   ========================================================== */

header.sticky {
    border-bottom: 2px solid #A51C30 !important; /* Твоето академично червено */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important; /* Много лека сянка за обем */
}

/* Корекция за тъмния режим (Dark Mode), за да не свети твърде много */
.dark header.sticky {
    border-bottom-color: #821424 !important; /* Малко по-тъмно червено за тъмната тема */
}

/* more red contour buttons */
/* ==========================================================
   3. ГОРНА НАВИГАЦИЯ (НЕЖНО СИЯНИЕ И ФИКС ЗА ЛУПАТА)
   ========================================================== */

.pkp_navigation_primary > li > div > a, 
.pkp_navigation_user > li > div > a,
.pkp_navigation_search_wrapper a,
button[aria-label="Theme"] {
    border: 1px solid transparent !important;
    background-color: rgba(165, 28, 48, 0.04) !important;
    color: #475569 !important;
    font-weight: 500 !important;
    padding: 6px 14px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(165, 28, 48, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* ФИКС ЗА ЛУПАТА - За да не се чупи и да е подравнена */
.pkp_navigation_search_wrapper {
    display: flex !important;
    align-items: center !important;
}

.pkp_navigation_search_wrapper a {
    width: 34px !important; /* Фиксирана ширина за иконата */
    height: 32px !important; /* Фиксирана височина */
    padding: 0 !important;   /* Махаме падинга, за да не криви иконата */
}

.pkp_navigation_search_wrapper a svg {
    width: 16px !important;
    height: 16px !important;
}

/* МОДЕРНА АНИМАЦИЯ ПРИ ПОСОЧВАНЕ (HOVER) */
.pkp_navigation_primary > li > div > a:hover, 
.pkp_navigation_user > li > div > a:hover,
.pkp_navigation_search_wrapper a:hover,
button[aria-label="Theme"]:hover {
    color: #A51C30 !important;
    background-color: rgba(165, 28, 48, 0.08) !important;
    border: 1px solid rgba(165, 28, 48, 0.3) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 15px -3px rgba(165, 28, 48, 0.2) !important;
}

/* Специално за темата (луничката) - също да е квадратна */
button[aria-label="Theme"] {
    width: 34px !important;
    height: 32px !important;
    padding: 0 !important;
}

/* Езиков превключвател - лека корекция на височината */
.lang-switcher-wrapper {
    height: 32px !important;
    border: 1px solid transparent !important;
    box-shadow: 0 2px 8px rgba(165, 28, 48, 0.08) !important;
    background-color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.lang-switcher-wrapper:hover {
    border-color: rgba(165, 28, 48, 0.3) !important;
    box-shadow: 0 8px 15px -3px rgba(165, 28, 48, 0.15) !important;
    transform: translateY(-1px) !important;
}

/* more red issue view */

/* ==========================================================
   14. ФИКС ЗА СТРАНИЦАТА НА БРОЯ (ISSUE VIEW)
   ========================================================== */

/* Заглавия на секциите (Articles / Отзиви) */
.issue_sections .section_group h2 {
    color: #A51C30 !important; /* Червен текст */
    border-left-color: #A51C30 !important; /* Червена вертикална черта */
    background-color: rgba(165, 28, 48, 0.05) !important; /* Много бледо червен фон */
}

/* Бутонът "Резюме" (Abstract) */
.article_summary_wrapper button {
    color: #A51C30 !important;
}

.article_summary_wrapper button:hover {
    color: #821424 !important;
    text-decoration: underline !important;
}

/* Отвореното каре с резюмето (бордюр) */
.article_summary_wrapper div[x-show="openAbstract"] {
    border-left-color: #A51C30 !important;
}

/* Линковете на заглавията на статиите при посочване */
.issue_sections h3 a:hover {
    color: #A51C30 !important;
}

/* Навигационен път (Breadcrumbs) специфичен за тази страница */
.page_issue .current, 
.page_issue [aria-current="page"] {
    color: #A51C30 !important;
}

/* more search button red */

/* ==========================================================
   15. СТИЛИЗИРАНЕ НА СТРАНИЦАТА ЗА ТЪРСЕНЕ (SEARCH)
   ========================================================== */

/* Основен бутон "Търсене" */
.page_search button[type="submit"] {
    background-color: transparent !important;
    border: 1px solid #A51C30 !important;
    color: #A51C30 !important;
    border-radius: 9999px !important;
    padding: 8px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.page_search button[type="submit"]:hover {
    background-color: #A51C30 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(165, 28, 48, 0.2) !important;
}

/* Корекция на Breadcrumbs в търсенето */
.page_search .current.text-blue-500 {
    color: #A51C30 !important;
}

/* Корекция на синьото при фокус върху полетата за търсене и селектите */
.page_search input:focus, 
.page_search select:focus {
    border-color: #A51C30 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(165, 28, 48, 0.1) !important;
}

/* Стилизиране на Advanced Search легендата */
.search_advanced legend {
    color: #28296E !important;
    border-bottom: 1px solid #e2e8f0;
}

/* Изчистване на сините линкове в "Начална" в Breadcrumbs */
.page_search nav ol li a:hover {
    color: #A51C30 !important;
}

/* more - bigger buttons */

/* ==========================================================
   УВЕЛИЧАВАНЕ НА БУТОНИТЕ И ИКОНИТЕ В ХЕДЪРА
   ========================================================== */

/* 1. Главните бутони в менюто */
.pkp_navigation_primary > li > div > a, 
.pkp_navigation_user > li > div > a {
    font-size: 15px !important;    /* Увеличаваме текста от 12px на 15px */
    padding: 8px 18px !important;  /* Повече място вътре в бутона */
    font-weight: 700 !important;   /* По-плътни букви за по-добра четивност */
    border-radius: 12px !important;
}

/* 2. Бутонът за търсене (лупата) и бутонът за Dark Mode */
.pkp_navigation_search_wrapper a,
button[aria-label="Theme"] {
    width: 44px !important;  /* От 34px на 44px */
    height: 40px !important; /* От 32px на 40px */
}

/* Увеличаваме самите иконки вътре в бутоните */
.pkp_navigation_search_wrapper a svg,
button[aria-label="Theme"] svg {
    width: 20px !important;
    height: 20px !important;
}

/* 3. Езиковият превключвател (BG/EN) */
.lang-switcher-wrapper {
    height: 40px !important;   /* Да съвпада с височината на другите бутони */
    width: 100px !important;   /* Малко по-широк */
}

.lang-switcher-wrapper a {
    font-size: 13px !important; /* По-големи букви за езиците */
}

.lang-switcher-wrapper::before {
    height: 34px !important;    /* Червеният слайдер вътре */
    width: 46px !important;
}

/* more -article css */
/* Дизайн на PDF бутона в статията */
.pdf-btn-custom {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9999px !important;
    border: 2px solid #A51C30 !important;
    padding: 8px 24px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.3s ease-in-out !important;
    background-color: transparent !important;
    color: #A51C30 !important;
    margin-bottom: 2rem;
}

.pdf-btn-custom:hover {
    background-color: #A51C30 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(165, 28, 48, 0.3) !important;
}

/* Увеличаване на заглавията на метаданните */
.article-metadata-label {
    color: #28296E !important;
    font-size: 1.125rem !important; /* text-lg */
    font-weight: 700 !important;
    margin-bottom: 0.5rem;
}

.article-metadata-value {
    font-size: 1rem !important; /* text-base */
    color: #1e293b !important;
}

/* Стайлинг на метаданните в статията */
.article-metadata-label {
    color: #28296E !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
}

.article-metadata-value {
    color: #1e293b !important;
    font-size: 16px !important;
    line-height: 1.6;
}

/* Фикс за авторите да не са сини */
.authors_meta span.font-bold {
    color: #28296E !important;
}
