/* Базовые настройки темы Setanta */
*, ::after, ::before { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #0b0c10;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: inherit; }

/* ФОНОВЫЙ СЛАЙДЕР НА ВЕСЬ ЭКРАН */
.bg-slider-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

/* Наложение темного полупрозрачного фильтра */
.bg-slider-overlay {
    position: absolute;
    inset: 0;
    /* Ультра-прозрачный градиент для сочной и яркой картинки заднего плана */
    background-image: linear-gradient(to bottom, rgba(11, 12, 16, 0.1) 0%, rgba(15, 17, 26, 0.45) 100%);
    z-index: 2;
}

/* Стили для фоновых картинок */
.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.bg-slide.active { opacity: 1; }

/* СТИЛИ НАВИГАЦИОННОЙ ПАНЕЛИ (РАСТЯНУТА НА ВСЮ ШИРИНУ) */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 80px;
    padding: 0 40px; /* Отступы от краев экрана */

    /* Распределяем логотип, меню и иконки по всей ширине */
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Полностью прозрачный фон с эффектом размытия под ним */
    background-color: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Минималистичная тонкая разделительная черта снизу */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 140px;
}

.logo-top {
    background-color: #ffcc00;
    color: black;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 900;
    border-radius: 2px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
}

.logo-bottom {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    color: #9ca3af;
    margin-top: 4px;
    line-height: 1;
}

/* Мобильное состояние: скрываем центральные ссылки */
.nav-menu {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #d1d5db;
}

.icon-btn {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #d1d5db;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.icon-btn:hover { color: #ffffff; }

.main-content {
    padding-top: 80px;
    width: 100%;
}

/* ПК версия: ссылки становятся большими блоками */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        align-items: center;

        /* Занимаем свободное пространство и выравниваем по высоте шапки */
        flex: 1;
        height: 100%;
        justify-content: space-evenly;

        max-width: 65%;
        margin: 0 auto;
    }

    /* Настройка внешнего вида ссылок как блоков с увеличенными буквами */
    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0 24px;

        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #ffffff;
        transition: all 0.2s ease-in-out;
    }

    /* Эффект при наведении на блок-кнопку */
    .nav-menu a:hover {
        color: #ffcc00;
        background-color: rgba(255, 255, 255, 0.05);
    }
}

/* СТИЛИЗАЦИЯ И ПОВЫШЕНИЕ ЧИТАЕМОСТИ ПОИСКОВОЙ СТРОКИ */
.main-navbar form input[type="text"] {
    color: #ffffff !important; /* Цвет вводимого пользователем текста (белый) */
}

/* Настройка контрастной белой подсказки "Поиск новостей..." */
.main-navbar form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
}

.main-navbar form input[type="text"]::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
}

.main-navbar form input[type="text"]::-moz-placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    opacity: 1;
}
