/* Единые стили шапки для всех страниц */

.header {
    background: linear-gradient(135deg, #22009f, #000000, #d10000) !important; /* Градиент как на главной странице */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo {
    font-family: 'Teko', sans-serif !important;
    font-size: 28px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #fff !important;
}

.highlight-w {
    font-size: 38px !important;
    color: #ff0000 !important;
    text-shadow: 0 0 5px #fff,
        0 0 10px #ff0000,
        0 0 15px #ff0000 !important;
}

.logo-link {
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-link .highlight-w {
    font-size: 38px !important;
    color: #ff0000 !important;
    text-shadow: 0 0 5px #fff,
        0 0 10px #ff0000,
        0 0 15px #ff0000 !important;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative; /* Для правильного позиционирования dropdown */
}

/* Переключатель языка на десктопе */
.nav-menu .language-switcher {
    position: relative !important;
    display: inline-block !important;
}

.nav-menu .language-switcher .language-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    z-index: 10001 !important; /* Выше чем header (1000) */
    display: none !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    min-width: 80px !important;
    padding: 5px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-menu .language-switcher .language-dropdown.show {
    display: block !important;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
}

.dropdown-toggle {
    color: #ffffff !important;
    background: transparent !important;
    border: none !important;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.dropdown {
    position: relative !important;
    z-index: 1000 !important;
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 9999 !important;
    position: absolute !important;
}

.dropdown-item {
    color: #ffffff !important;
    background: transparent !important;
}

.navbar-nav .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Bootstrap dropdown override */
.dropdown-menu.show {
    z-index: 99999 !important;
    position: absolute !important;
    display: block !important;
}

.dropdown-menu[data-bs-popper] {
    z-index: 99999 !important;
}

.signup {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signup:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Стили для кнопок в шапке */
.btn-primary, .btn-success {
    display: inline-block;
    margin: 0;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    min-width: 120px;
    background: #d10000;
    color: #fff;
    white-space: nowrap;
}

.btn-success {
    background: #0a7d1a;
}

.btn-primary:hover { background: #a80000; }
.btn-success:hover { background: #055c12; }

/* Убираем старые Bootstrap стили */
.navbar-nav, .navbar-collapse, .container-fluid {
    display: none !important;
}

.global-search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px; /* Немного правее для лучшего отступа */
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.global-search-input {
    width: 100%;
    padding: 10px 45px 10px 50px; /* Увеличен отступ слева для иконки */
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    text-indent: 0; /* Убираем отступ текста */
}

.global-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.global-search-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: 500px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    margin-top: 5px;
}

.search-section {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-section:last-child {
    border-bottom: none;
}

.search-section-title {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-section-title i {
    font-size: 14px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    flex-shrink: 0;
    color: #666;
    font-size: 18px;
}

.search-result-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-loading,
.search-error,
.search-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.search-loading i,
.search-error i,
.search-empty i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: #999;
}

.search-loading span,
.search-error span,
.search-empty span {
    display: block;
    font-size: 14px;
}

/* Мобильные стили перенесены в mobile-fixes-final.css */
