/* ============================================================
   СТАРЫЙ СТИЛЬ КНОПКИ ПОИСКА
   ============================================================ */

.cskt-search-modern {
    display: inline-flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #063462;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-form:focus-within {
    border-color: #07337a;
    box-shadow: 0 0 0 2px rgba(7, 51, 122, 0.15);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrapper input[type="search"] {
    border: none;
    outline: none;
    padding: 6px 12px;
    font-size: 14px;
    color: #333;
    background: transparent;
    flex: 1;
    min-width: 150px;
    height: 34px;
}

.search-input-wrapper input[type="search"]::placeholder {
    color: #999;
    font-size: 13px;
}

.search-submit-btn {
    background: #07337a;
    border: none;
    color: #fff;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 14px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border-radius: 0;
}

.search-submit-btn:hover {
    background: #0a4aad;
}

/* ============================================================
   AJAX ПОДСКАЗКИ
   ============================================================ */

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    border: 1px solid #e9ecef;
}

.search-suggestions.active {
    display: block;
}

.search-suggestions .suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-suggestions .suggestion-item:hover {
    background: #f5f8ff;
}

.search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestions .suggestion-icon {
    color: #07337a;
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.search-suggestions .suggestion-title {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.search-suggestions .suggestion-title mark {
    background: #ffeb3b;
    padding: 0 2px;
    border-radius: 2px;
}

.search-suggestions .suggestion-type {
    font-size: 10px;
    color: #fff;
    background: #6c757d;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    flex-shrink: 0;
}

.search-suggestions .suggestion-type.news {
    background: #28a745;
}

.search-suggestions .suggestion-type.anons {
    background: #ffc107;
    color: #333;
}

.search-suggestions .suggestion-empty {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 992px) {
    .search-input-wrapper input[type="search"] {
        min-width: 120px;
        padding: 5px 10px;
        font-size: 13px;
        height: 30px;
    }
    
    .search-submit-btn {
        padding: 5px 12px;
        font-size: 13px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .cskt-search-modern {
        width: 100%;
    }
    
    .search-form {
        width: 100%;
        border-radius: 4px;
    }
    
    .search-input-wrapper input[type="search"] {
        min-width: 80px;
        font-size: 14px;
        padding: 8px 12px;
        height: 38px;
    }
    
    .search-submit-btn {
        padding: 8px 14px;
        height: 38px;
        font-size: 14px;
    }
    
    .search-suggestions {
        max-height: 250px;
    }
    
    .search-suggestions .suggestion-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-input-wrapper input[type="search"] {
        font-size: 13px;
        padding: 6px 10px;
        height: 34px;
        min-width: 60px;
    }
    
    .search-submit-btn {
        padding: 6px 12px;
        height: 34px;
        font-size: 13px;
    }
}